Skip to content

String for DestinationBucketParameter

0

I am using the AWS stack template to transfer data from S3 Glacier to a S3 bucket. The template asks for the DestinationBucketParameter. I have tried the name I gave it and the ARN and I get the following: Parameter 'DestinationBucketParameter' must match pattern (?!(^xn--|^sthree-|.+-s3alias$|.+--ol-s3$))^[a-zA-Z0-9][a-zA-Z0-9-._]{1,253}[a-zA-Z0-9]$. Is the bucket name in this format somewhere? I can't find it in properties. Thank you.

1 Answer
1
Accepted Answer

The error message you're encountering is related to the naming conventions for S3 buckets. The pattern provided in the error message is a specific requirement for the DestinationBucketParameter in your AWS stack template. This pattern ensures that the bucket name adheres to Amazon S3 naming rules.

To comply with this pattern, your bucket name should:

  1. Start and end with a letter or number
  2. Be between 3 and 63 characters long
  3. Contain only lowercase letters, numbers, hyphens (-), and periods (.)
  4. Not start with "xn--" or "sthree-"
  5. Not end with "-s3alias" or "--ol-s3"

The bucket name you use for the DestinationBucketParameter should be just the bucket name itself, not the full ARN. For example, if your bucket is named "my-destination-bucket-2023", you would use that as the parameter value.

If you've already created the bucket and are trying to reference it, make sure you're using the exact bucket name as it appears in your S3 console. If you're creating a new bucket as part of this stack, ensure the name you choose follows these rules.

Remember that S3 bucket names must be globally unique across all AWS accounts, so you might need to add some unique identifiers to your bucket name if a simpler name is already taken.
Sources
Can we have a bucket name: \b-ds.n | AWS re:Post
RetrievalFlowNodeS3Configuration - Amazon Bedrock
S3Object - Migration Hub Strategy Recommendations

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Relevant content