Skip to content

Commit dcaef9b

Browse files
committed
[PRM-562] ProductionSupport IAM policy for targeted Admin access
1 parent a409e87 commit dcaef9b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

infrastructure/policies.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,27 @@ resource "aws_iam_policy" "read_only_role_extra_permissions" {
4040
Workspace = "core"
4141
}
4242
}
43+
44+
resource "aws_iam_policy" "production_support" {
45+
count = local.is_production ? 1 : 0
46+
name = "ProductionSupport"
47+
policy = jsonencode({
48+
Version = "2012-10-17",
49+
Statement = [
50+
{
51+
Sid = "AWS Transfer Family",
52+
Effect = "Allow",
53+
Action = [
54+
"transfer:CreateUser"
55+
],
56+
Resource = [
57+
"*"
58+
]
59+
}
60+
]
61+
})
62+
tags = {
63+
Name = "ProductionSupport"
64+
Workspace = "core"
65+
}
66+
}

0 commit comments

Comments
 (0)