S3 Bucket Creation Restrict to Specific Name Pattern

0 votes
1

Is there a way to specify a bucket creation policy so that the a user with the assigned role can only create buckets with a specified name pattern such as company-dbbackup-* and no other name patterns?

For example, the user would be allowed to create bucket with names company-dbbackup-March2017 and company-dbbackup-fullarchive but not test-bucketname-invalid.
Mar 4, 2022 in Others by Edureka
• 13,690 points
843 views

1 answer to this question.

0 votes
For naming buckets in Amazon S3, the following requirements apply:
Bucket names must be three (minimum) to sixty-three (maximum) characters long.
Lowercase letters, numerals, dots (.) and hyphens are the only characters allowed in bucket names (-).
A letter or number must appear at the start and end of each bucket name.
The names of buckets must not be formatted in the form of an IP address (for example, 192.168.5.4).
The prefix xn— can't be used in bucket names.
The suffix -s3alias can't be used in bucket names. This suffix is only used in alias names for access points. Use a bucket-style alias for your access point for more details. Within a partition, bucket names have to be unique. A partition is a set of Regions that have been grouped together. AWS has three partitions at the moment: aws (Standard Regions), aws-cn (China Regions), and aws-us-gov (U.S. Government).
answered Mar 4, 2022 by gaurav
• 23,260 points

Related Questions In Others

0 votes
1 answer

How can I restrict access to an S3 website to Cloudfront?

Make a CloudFront access identity for origin ...READ MORE

answered Mar 24, 2022 in Others by Edureka
• 13,690 points
2,583 views
0 votes
0 answers
0 votes
0 answers

How to change storage class of object in s3 bucket?

How can I change the storage class ...READ MORE

Apr 11, 2022 in Others by Kichu
• 19,040 points
1,289 views
0 votes
0 answers

How to setup Filezilla Pro to access to my s3 bucket?

I have Filezilla Pro that supports Amazon ...READ MORE

Apr 11, 2022 in Others by Kichu
• 19,040 points
921 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,020 points
5,958 views
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,020 points
5,204 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,820 points
2,868 views
0 votes
2 answers
0 votes
1 answer

How to add S3 BucketPolicy with AWS CDK?

In AWS CDK, there are two ways ...READ MORE

answered Mar 9, 2022 in Others by gaurav
• 23,260 points
3,271 views
0 votes
1 answer

how do i to forward domain.com to www.domain.com at godaddy for s3 hosted site?

Go to GoDaddy.com and enter your username ...READ MORE

answered Mar 10, 2022 in Others by gaurav
• 23,260 points
629 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP