aws / aws/chalice

ManagedLayer : 'layerName' failed to satisfy constraint for nestedstack

Open
#1,985 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

Hello,

Create Nestedstack by using chalice (api gateway/cdk/psycopg2) cause an issue regarding the creation of layer for packages/modules in vendor/ and chalicelib/

The issue:
1 validation error detected: Value 'xxxxxx-xxxxxx-development-backend/xxxxxxapp-managed-layer' at 'layerName' failed to satisfy constraint: Member must satisfy regular expression pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+ (Service: AWSLambdaInternal; Status Code: 400; Error Code: ValidationException; Request ID: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx; Proxy: null)

Any way to setup the value of layerName ? Or fix the issue ?

Regards.

Contributor guide

Open the contributing guide

Research direction

Start by examining how Chalice creates the managed layer for packages in vendor/ and chalicelib/ when deploying a nested stack. Reproduce the AWS Lambda validation error and trace the generated layerName value. Done means the nested stack deploys successfully with a layerName accepted by the reported constraint.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.