Created
November 7, 2017 16:21
-
-
Save pagameba/0f5c9c6992d516a6acb0187846784f55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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