S3 bucket name is not configured while creating stack through CloudFormation template.

0

In my use case we are creating S3 bucket in the user's account through CloudFormation template. The concern is while creating stack in user's account, S3 bucket physical Id is not getting generated but while verifying the CloudWatch logs, the name is getting generated, even S3 bucket is not creating in the user's account & the user account gets onboarded into the database when the S3 bucket is showing in creation progress. Another issue is while deleting the stack, S3 bucket deletion is showing successfully even though the bucket was not created.

Also, I've tried to onboard the account with different AWS accounts & different regions and it's onboarding successfully. Is this a glitch from the AWS side?

1 個回答
0

Hello sp018,

I understand that you are trying to create an S3 bucket using a CloudFormation template but are unable to create it or get its physical id.

Could you please provide the name of the bucket from the CloudWatch logs you mentioned, so we can verify its creation.

The issue could be related to the permissions of the IAM user. Are you getting any "access denied" messages?. If so, make sure the user account has access to the bucket.

Also check if you getting an error related to the bucket name. It could have already been taken. https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html

Resources: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南