-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(Amazon.CDK.AWS.CloudFront.Experimental): Stack fails to publish when edge function is included #16832
Comments
The error message you're getting kind of spells out the issue, but certainly not as clearly as it could:
The SSM parameter name is being built off of a well-defined prefix, plus the construct path to the EdgeFunction (e.g. 'StackName/Work Remote Cloudfront distribution/AWS MarketplaceRedirect'). That name can only contain letters, numbers, and the above symbols, but not spaces. The quick work-around is to remove the spaces from your construct IDs (e.g., |
The EdgeFunction uses a SSM string parameter under the hood to pass the Function ARN between the different regions. The name of the parameter is derived from the node path; this path may contain characters (e.g., spaces) that are invalid as SSM parameter names. Two fixes here: introduce new validation for SSM parameter names, and sanitize the path prior to passing to SSM. fixes #16832
…ces (#16845) The EdgeFunction uses a SSM string parameter under the hood to pass the Function ARN between the different regions. The name of the parameter is derived from the node path; this path may contain characters (e.g., spaces) that are invalid as SSM parameter names. Two fixes here: introduce new validation for SSM parameter names, and sanitize the path prior to passing to SSM. fixes #16832 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…ces (#16845) The EdgeFunction uses a SSM string parameter under the hood to pass the Function ARN between the different regions. The name of the parameter is derived from the node path; this path may contain characters (e.g., spaces) that are invalid as SSM parameter names. Two fixes here: introduce new validation for SSM parameter names, and sanitize the path prior to passing to SSM. fixes #16832 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…ces (aws#16845) The EdgeFunction uses a SSM string parameter under the hood to pass the Function ARN between the different regions. The name of the parameter is derived from the node path; this path may contain characters (e.g., spaces) that are invalid as SSM parameter names. Two fixes here: introduce new validation for SSM parameter names, and sanitize the path prior to passing to SSM. fixes aws#16832 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
What is the problem?
When I try to publish my stack with an EdgeFunction it is failing on the outputted ssm parameter. Nothing I have tried makes any difference.
Reproduction Steps
What did you expect to happen?
I would expect the stack to publish and for a lambda edge to be set up with CloudFront.
What actually happened?
CDK CLI Version
1.126.0
Framework Version
No response
Node.js Version
v14.17.1
OS
Mac OS 11.6
Language
.NET
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: