Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Member must satisfy regular expression pattern: ^[0-9A-Za-z\.\-_]*(?<!\.) #32

Closed
cloudoutloud opened this issue Sep 12, 2018 · 3 comments

Comments

@cloudoutloud
Copy link

Not sure why I getting this error below when running primary account template

1 validation error detected: Value '%%BUCKET_NAME%%-eu-west-2' at 'code.s3Bucket' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[0-9A-Za-z.-_]*(?<!.)$ (Service: AWSLambda; Status Code: 400; Error Code: ValidationException; Request ID: ec97d612-b5e2-11e8-b4a9-d703702ca31d)

@hnishar
Copy link

hnishar commented Sep 12, 2018

Are you passing the bucket-name when running build-s3-dist.sh? The script will replace %%BUCKET_NAME%% with the user provided bucket name.

./build-s3-dist.sh source-bucket-base-name

Alternatively, the solution can be deployed from https://docs.aws.amazon.com/solutions/latest/cisco-based-transit-vpc/step2.html

@cloudoutloud
Copy link
Author

Thanks, hnishar
By understanding was the template create a bucket with random name.
Why do we have to define a source bucket base name?

@hnishar
Copy link

hnishar commented Sep 12, 2018

./build-s3-dist.sh is the build script for this project. It does two things

1 - Build the lambda ZIP files (transit-vpc-poller.zip & transit-vpc-push-cisco-config.zip), that you need to host inside your S3 bucket i.e. my-bucket under my-bucket/transit-vpc/latest/ folder
2 - Replaces %%BUCKET_NAME%% in the Cloudformation templates with your S3 bucket name i.e. my-bucket, so it can source the Lambdas deployed from Step 1

I'd recommend you take a look at the Implementation Guide for this solution and follow the steps under Deployment section

https://docs.aws.amazon.com/solutions/latest/cisco-based-transit-vpc/welcome.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants