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(cloudfront): EdgeFunction fails with newStyleStackSynthesis #12356

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

njlynch
Copy link
Contributor

@njlynch njlynch commented Jan 5, 2021

The EdgeFunction construct copied some patterns from CodePipelines to enable
cross-environment interaction. One key difference is that for Lambda@Edge,
CDK assets are created in the cross-environment support stack. This isn't
supported by the BootstraplessSynthesizer, so this custom logic (copied from
CodePipelines) needs to be removed.

The EdgeFunction support stack will now use whatever synthesizer is default for
the current stack.

fixes #12172


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

@njlynch njlynch requested review from rix0rrr and a team January 5, 2021 15:11
@njlynch njlynch self-assigned this Jan 5, 2021
@gitpod-io
Copy link

gitpod-io bot commented Jan 5, 2021

@github-actions github-actions bot added the @aws-cdk/aws-cloudfront Related to Amazon CloudFront label Jan 5, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 5, 2021
The EdgeFunction construct copied some patterns from CodePipelines to enable
cross-environment interaction. One key difference is that for Lambda@Edge,
CDK assets are created in the cross-environment support stack. This isn't
supported by the BootstraplessSynthesizer, so this custom logic (copied from
CodePipelines) needs to be removed.

The EdgeFunction support stack will now use whatever synthesizer is default for
the current stack.

fixes #12172
@rix0rrr rix0rrr added the pr/do-not-merge This PR should not be merged at this time. label Jan 5, 2021
packages/@aws-cdk/aws-cloudfront/README.md Outdated Show resolved Hide resolved
Fixing typo.

Co-authored-by: Rico Huijbers <rix0rrr@gmail.com>
@njlynch njlynch removed the pr/do-not-merge This PR should not be merged at this time. label Jan 5, 2021
@mergify
Copy link
Contributor

mergify bot commented Jan 5, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Jan 5, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit fb02736 into master Jan 5, 2021
@mergify mergify bot deleted the njlynch/edge-synthesis-fix branch January 5, 2021 18:49
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 contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(cloudfront): Lamda@Edge synth fails with newStyleStackSynthesis
2 participants