Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generates AssetBucketDeployment layer id that is too long #361

Open
schnipseljagd opened this issue Feb 20, 2024 · 0 comments
Open

Generates AssetBucketDeployment layer id that is too long #361

schnipseljagd opened this issue Feb 20, 2024 · 0 comments

Comments

@schnipseljagd
Copy link

schnipseljagd commented Feb 20, 2024

2:12:54 PM | CREATE_FAILED        | AWS::Lambda::Function         | CustomCDKBucketDep...CC9EB8756C81C01536
Resource handler returned message: "1 validation error detected: Value '[arn:aws:lambda:eu-central-1:xxxxxxxxxxxx:layer:ManagementCdkStackDeployTestStackTestStackSetStackE0B29806AssetBucketDeployment0AwsCliLayer499ADD6C:1]' at 'layers' failed to satisfy
constraint: Member must satisfy constraint: [Member must have length less than or equal to 140, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-
z]+-\d{1}:\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+)|(arn:[a-zA-Z0-9-]+:lambda:::awslayer:[a-zA-Z0-9-_]+), Member must not be null] (Service: Lambda, Status Code: 400, Request ID: 273604b1-26f2-44b3-a6b0-b082f14cd8e8)" (RequestToken: d8015927-6da1-4275-a604-569
7b0a6a224, HandlerErrorCode: InvalidRequest)

Shortening the stack id manually fixes the issue for me.

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

No branches or pull requests

1 participant