Skip to content

Commit

Permalink
GitHub Actions: Refactor: Automated formatting of terraform code (#89)
Browse files Browse the repository at this point in the history
Co-authored-by: dnillovna <[email protected]>
  • Loading branch information
github-actions[bot] and dnillovna authored Apr 11, 2024
1 parent 32c1140 commit eb85732
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions aws/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1169,46 +1169,46 @@ resource "aws_iam_role" "grok_spawner_task" {
content {
name = "${local.ecs_name}_grok_spawner_kaniko"
policy = jsonencode({
"Version" = "2012-10-17",
"Statement" = [
{
"Effect" = "Allow",
"Action" : [
"ecs:RunTask"
],
"Condition" = {
"ArnEquals" : {
"ecs:cluster" : module.ecs.cluster_arn
"Version" = "2012-10-17",
"Statement" = [
{
"Effect" = "Allow",
"Action" : [
"ecs:RunTask"
],
"Condition" = {
"ArnEquals" : {
"ecs:cluster" : module.ecs.cluster_arn
}
},
"Resource" : [
aws_ecs_task_definition.grok_spawner_kaniko.arn
]
},
{
"Effect" = "Allow",
"Action" : [
"iam:PassRole"
],
"Condition" = {
# "StringEquals" : {
# "iam:PassedToService" : "ecs-tasks.amazonaws.com"
# },
# "ArnLike" : {
# "iam:AssociatedResourceARN" : [
# "arn:aws:ecs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:task/${module.ecs.cluster_name}/*",
# "arn:aws:ecs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:service/${module.ecs.cluster_name}/*"
# ]
# }
},
"Resource" : [
aws_iam_role.grok_spawner_kaniko_task.arn,
aws_iam_role.exec.arn,
aws_iam_role.grok_spawner_exec.arn
]
}
},
"Resource" : [
aws_ecs_task_definition.grok_spawner_kaniko.arn
]
},
{
"Effect" = "Allow",
"Action" : [
"iam:PassRole"
],
"Condition" = {
# "StringEquals" : {
# "iam:PassedToService" : "ecs-tasks.amazonaws.com"
# },
# "ArnLike" : {
# "iam:AssociatedResourceARN" : [
# "arn:aws:ecs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:task/${module.ecs.cluster_name}/*",
# "arn:aws:ecs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:service/${module.ecs.cluster_name}/*"
# ]
# }
},
"Resource" : [
aws_iam_role.grok_spawner_kaniko_task.arn,
aws_iam_role.exec.arn,
aws_iam_role.grok_spawner_exec.arn
]
}
]
})
})
}

}
Expand Down

0 comments on commit eb85732

Please sign in to comment.