Skip to content

Instantly share code, notes, and snippets.

@pagameba
Created November 7, 2017 16:21
Show Gist options
  • Save pagameba/0f5c9c6992d516a6acb0187846784f55 to your computer and use it in GitHub Desktop.
Save pagameba/0f5c9c6992d516a6acb0187846784f55 to your computer and use it in GitHub Desktop.
resource "aws_iam_role" "ecs_service_role" {
name = "ecs-service-role-${var.name}"
assume_role_policy = <<EOT
{
"Version": "2008-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": [
"ecs.amazonaws.com",
"ec2.amazonaws.com"
]
},
"Effect": "Allow"
}
]
}
EOT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment