From e8fa2b38a4dc4112826c33e846ee64af93932286 Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Fri, 19 Apr 2024 18:58:01 -0300 Subject: [PATCH] iam role --- .../email_form_fill/state_machine.tf | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/state_machines/email_form_fill/state_machine.tf b/state_machines/email_form_fill/state_machine.tf index d10ed5f..6bfc3c5 100644 --- a/state_machines/email_form_fill/state_machine.tf +++ b/state_machines/email_form_fill/state_machine.tf @@ -20,20 +20,17 @@ resource "aws_iam_role" "iam_for_sfn" { "Resource": "*" }, { - "Effect": "Allow", - "Action": [ - "s3:PutObject", - "s3:GetObject", - "s3:AbortMultipartUpload", - "s3:ListBucket", - "s3:DeleteObject", - "s3:GetObjectVersion", - "s3:ListMultipartUploadParts" - ], - "Resource": [ - "arn:aws:s3:::example-bucket/*", - "arn:aws:s3:::example-bucket" - ] + "Effect": "Allow", + "Action": [ + "s3:PutObject", + "s3:GetObject", + "s3:AbortMultipartUpload", + "s3:ListBucket", + "s3:DeleteObject", + "s3:GetObjectVersion", + "s3:ListMultipartUploadParts" + ], + "Resource": "*" } ] }