Skip to content

Commit b6db3ea

Browse files
authored
Create custom_iam_policy.tf (#16)
1 parent 0fbb041 commit b6db3ea

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

examples/test/custom_iam_policy.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ecs_task_execution_role_custom_policies = [
2+
jsonencode(
3+
{
4+
"Version": "2012-10-17",
5+
"Statement": [
6+
{
7+
"Effect": "Allow",
8+
"Action": [
9+
"secretsmanager:GetSecretValue"
10+
],
11+
"Resource": [
12+
"arn:aws:secretsmanager:AWS_REGION:AWS_ACC:secret:SECRET_NAME"
13+
]
14+
}
15+
]
16+
}
17+
)
18+
]
19+
20+
#This also works
21+
22+
ecs_task_execution_role_custom_policies = [
23+
"{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"secretsmanager:GetSecretValue\"],\"Resource\":[\"arn:aws:secretsmanager:AWS_REGION:AWS_ACC:secret:SECRET_NAME\"]}]}"
24+
]

0 commit comments

Comments
 (0)