Skip to content

Commit e06a5c6

Browse files
committed
keep the existing serverless user policies until after cdk migration
1 parent 82c0351 commit e06a5c6

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

terraform/main.tf

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,32 @@ module "serverless-user" {
1111
source = "silinternational/serverless-user/aws"
1212
version = "~> 0.4.2"
1313

14-
app_name = "${var.app_name}-${var.app_env}"
15-
policy_override = jsonencode({
14+
app_name = "${var.app_name}-${var.app_env}"
15+
aws_region_policy = "*"
16+
enable_api_gateway = true
17+
extra_policies = [jsonencode({
1618
Version = "2012-10-17"
1719
Statement = [
1820
{
1921
Effect = "Allow"
2022
Action = [
2123
"sts:AssumeRole",
2224
]
23-
Resource = [
24-
"arn:aws:iam::*:role/cdk-*"
25+
Resource = "arn:aws:iam::*:role/cdk-*"
26+
},
27+
{
28+
Effect = "Allow"
29+
Action = [
30+
"ec2:CreateTags",
31+
"ec2:DeleteTags",
32+
"iam:getRolePolicy",
33+
"logs:FilterLogEvents",
34+
"apigateway:UpdateRestApiPolicy",
2535
]
36+
Resource = "*"
2637
}
27-
],
28-
})
38+
]
39+
})]
2940
}
3041

3142
// Set up custom domain name for easier fail-over.

0 commit comments

Comments
 (0)