-
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
[cloudfront] generates "Comment" automatically which can be too long. #10211
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
language/python
Related to Python bindings
p1
Comments
Anyone? Hello? |
No problem. Truncating the comment seems a sensible solution. |
njlynch
added a commit
that referenced
this issue
Sep 9, 2020
The OAI gets a comment that includes the name of the origin it is attached to. With longer distribution and origin names, this comment can overflow the (undocumented) 128-character limit. This fix truncates the comment. I also updated `oai.test.ts` from using the `nodeunitshim` to actually be written as Jest tests. fixes #10211
njlynch
added a commit
that referenced
this issue
Sep 9, 2020
The OAI gets a comment that includes the name of the origin it is attached to. With longer distribution and origin names, this comment can overflow the (undocumented) 128-character limit. This fix truncates the comment. I also updated `oai.test.ts` from using the `nodeunitshim` to actually be written as Jest tests. fixes #10211
mergify bot
pushed a commit
that referenced
this issue
Sep 10, 2020
The OAI gets a comment that includes the name of the origin it is attached to. With longer distribution and origin names, this comment can overflow the (undocumented) 128-character limit. This fix truncates the comment. I also updated `oai.test.ts` from using the `nodeunitshim` to actually be written as Jest tests. fixes #10211 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
language/python
Related to Python bindings
p1
When creating a distribution with Distribution (from aws_cdk.aws_cloudfront import Distribution) an Origin access identity is being created with a Comment attribute which can be to long (in fact - for me it is too long and I can not deploy the distribution). I get the following error from CloudFormation:
The parameter Comment is too big. (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidArgument; Request ID: 138149ac-0858-4ecb-abf7-17d90f671ce1)
Reproduction Steps
cdk deploy
What did you expect to happen?
Distribution created.
What actually happened?
The parameter Comment is too big. (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidArgument; Request ID: 138149ac-0858-4ecb-abf7-17d90f671ce1)
Environment
Other
The cdk generates the following template (snippet):
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: