Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed Apr 19, 2024
1 parent 3f3a519 commit ad6e064
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions state_machines/email_form_fill/state_machine.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ resource "aws_iam_role" "iam_for_sfn" {
},
"Effect": "Allow",
"Sid": ""
},
}
]
}
EOF
Expand All @@ -23,25 +22,26 @@ resource "aws_iam_role_policy" "sfn_lambda_s3_access" {
role = aws_iam_role.iam_for_sfn.id

policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"lambda:InvokeFunction",
"s3:PutObject",
"s3:GetObject",
"s3:AbortMultipartUpload",
"s3:ListBucket",
"s3:DeleteObject",
"s3:GetObjectVersion",
"s3:ListMultipartUploadParts"
],
"Resource": "*"
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:AbortMultipartUpload",
"s3:ListBucket",
"s3:DeleteObject",
"s3:GetObjectVersion",
"s3:ListMultipartUploadParts"
],
"Resource": [
"arn:aws:s3:::*/*",
]
}
]
}
EOF
}

Expand Down

0 comments on commit ad6e064

Please sign in to comment.