Skip to content

Commit 0e246a5

Browse files
feat: Updating default ECS policies to allow for Tagging (#130)
1 parent dd05652 commit 0e246a5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

examples/with-schedules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Note that this example may create resources which cost money. Run `terraform des
2828

2929
| Name | Version |
3030
|------|---------|
31-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.27 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.53 |
3232
| <a name="provider_null"></a> [null](#provider\_null) | >= 2.0 |
3333
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.0 |
3434

iam.tf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,12 @@ data "aws_iam_policy_document" "ecs" {
232232
count = local.create_role && var.attach_ecs_policy ? 1 : 0
233233

234234
statement {
235-
sid = "ECSAccess"
236-
effect = "Allow"
237-
actions = ["ecs:RunTask"]
235+
sid = "ECSAccess"
236+
effect = "Allow"
237+
actions = [
238+
"ecs:RunTask",
239+
"ecs:TagResource"
240+
]
238241
resources = [for arn in var.ecs_target_arns : replace(arn, "/:\\d+$/", ":*")]
239242
}
240243

iam_pipes.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ locals {
260260

261261
ecs = {
262262
actions = [
263-
"ecs:RunTask"
263+
"ecs:RunTask",
264+
"ecs:TagResource"
264265
]
265266
}
266267

0 commit comments

Comments
 (0)