Skip to content

Commit

Permalink
add iam role app_execution
Browse files Browse the repository at this point in the history
  • Loading branch information
roncitrus committed Feb 2, 2024
1 parent 2ebb6eb commit 15bf2ff
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions terraform/environments/cdpt-ifs/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,27 @@ EOF
)
}

resource "aws_iam_role_policy" "app_execution" {
name = "execution-${var.networking[0].application}"
role = aws_iam_role.app_execution.id

policy = <<-EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"ecr:*",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"logs:DescribeLogStreams",
"secretsmanager:GetSecretValue"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
EOF
}

0 comments on commit 15bf2ff

Please sign in to comment.