From 017a4da8fda3e6fc5f7327dd6c0a1aa55aa807b3 Mon Sep 17 00:00:00 2001 From: Madan Date: Fri, 11 Aug 2023 09:41:05 +0530 Subject: [PATCH] bucket creation was not happening,updated it --- aws-event-triggering/s3-notification-triggers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-event-triggering/s3-notification-triggers.sh b/aws-event-triggering/s3-notification-triggers.sh index 1c293f6..6e320e7 100755 --- a/aws-event-triggering/s3-notification-triggers.sh +++ b/aws-event-triggering/s3-notification-triggers.sh @@ -42,7 +42,7 @@ aws iam attach-role-policy --role-name $role_name --policy-arn arn:aws:iam::aws: aws iam attach-role-policy --role-name $role_name --policy-arn arn:aws:iam::aws:policy/AmazonSNSFullAccess # Create the S3 bucket and capture the output in a variable -bucket_output=$(aws s3api create-bucket --bucket "$bucket_name" --region "$aws_region") +bucket_output=$(aws s3api create-bucket --bucket "$bucket_name" --region "$aws_region" --create-bucket-configuration LocationConstraint=$aws_region) # Print the output from the variable echo "Bucket creation output: $bucket_output"