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.
What I have right now:
{
"Sid": "Stmt1493212897117",
"Action": [
"s3:CreateBucket",
"s3:ListAllMyBuckets"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::*"
}
But this allows me to create buckets with any name.