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"