File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
7072EOF
@@ -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}
101105EOF
@@ -139,7 +143,7 @@ resource "aws_elasticache_cluster" "my-redis" {
139143
140144resource "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"
You can’t perform that action at this time.
0 commit comments