Skip to content

Commit ad1d68a

Browse files
committed
terraform-resources
1 parent 95f3ab5 commit ad1d68a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

terraform-resources/test.tf

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ resource "aws_iam_role" "invocation_role" {
6363
"Version": "2012-10-17",
6464
"Statement": {
6565
"Effect": "Allow",
66-
"Action": "s3:ListBucket",
67-
"Resource": "arn:aws:s3:::test-bucket"
66+
"Principal": {
67+
"Service": "apigateway.amazonaws.com"
68+
},
69+
"Action": "sts:AssumeRole"
6870
}
6971
}
7072
EOF
@@ -94,8 +96,10 @@ resource "aws_iam_role" "lambda" {
9496
"Version": "2012-10-17",
9597
"Statement": {
9698
"Effect": "Allow",
97-
"Action": "s3:ListBucket",
98-
"Resource": "arn:aws:s3:::example_bucket"
99+
"Principal": {
100+
"Service": "lambda.amazonaws.com"
101+
},
102+
"Action": "sts:AssumeRole"
99103
}
100104
}
101105
EOF
@@ -139,7 +143,7 @@ resource "aws_elasticache_cluster" "my-redis" {
139143

140144
resource "aws_db_parameter_group" "default" {
141145
name = "rds-pg"
142-
family = "mysql5.6"
146+
family = "mysql8.0"
143147

144148
parameter {
145149
name = "character_set_server"

0 commit comments

Comments
 (0)