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

fix: golden snapshot is unstable due to CF function name generation #171

Merged
merged 10 commits into from
Jul 15, 2021

Conversation

iliapolo
Copy link
Contributor

@iliapolo iliapolo commented Jul 13, 2021

Explicitly set the CloudFront function name so snapshot is stable (see aws/aws-cdk#15523).

This also requires updating the logical ID of the AWS::CloudFront::Function resource because it seems like there's a bug in the resource provider that won't allow changing the function name. So changing the logical ID would effectively replace the resource.

Re-enable the snapshot test.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@iliapolo iliapolo requested a review from a team July 13, 2021 12:11
@iliapolo iliapolo marked this pull request as draft July 13, 2021 12:23
src/webapp/index.ts Outdated Show resolved Hide resolved
mergify bot pushed a commit that referenced this pull request Jul 14, 2021
We need to free up the build while we investigate #171 

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@eladb eladb self-requested a review July 15, 2021 08:02
@eladb eladb enabled auto-merge (squash) July 15, 2021 08:04
@eladb eladb changed the title chore: solve snapshots fix: golden snapshot is unstable due to CF function name generation Jul 15, 2021
src/webapp/index.ts Outdated Show resolved Hide resolved
@eladb eladb merged commit 2776880 into main Jul 15, 2021
@eladb eladb deleted the epolon/fix-snapshots branch July 15, 2021 08:15
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

Successfully merging this pull request may close these issues.

2 participants