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

feat(cfn-include): allow passing Parameters to the included template #9543

Merged
merged 81 commits into from Aug 13, 2020

Conversation

comcalvi
Copy link
Contributor

@comcalvi comcalvi commented Aug 8, 2020


Closes #4994

Cfn-Include can now be passed a mapping of parameters and their values. Specified parameters will have all references to them replaced with the passed value at build time, and their definitions will be removed from the template. Unspecified parameters and references to them will not be modified.

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

comcalvi and others added 30 commits June 4, 2020 17:44
Co-authored-by: Adam Ruka <adamruka85@gmail.com>
…::And, Fn::Not, and Fn::Or, including unit tests.
…ied the return type of transform to IResolvable, and updated transform docs
@comcalvi comcalvi requested a review from skinny85 August 11, 2020 20:47
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick first look.

packages/@aws-cdk/cloudformation-include/README.md Outdated Show resolved Hide resolved
packages/@aws-cdk/cloudformation-include/README.md Outdated Show resolved Hide resolved
tools/cfn2ts/lib/codegen.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/from-cfn.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-parse.ts Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-parse.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final round of comments, now that I had some more time to look at the code.

@comcalvi comcalvi requested a review from skinny85 August 12, 2020 22:30
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're this close 👌 to merging this one. There are just a few simplifications I want to make first. But this is great!

packages/@aws-cdk/cloudformation-include/README.md Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-parse.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/index.ts Outdated Show resolved Hide resolved
tools/cfn2ts/lib/codegen.ts Outdated Show resolved Hide resolved
@comcalvi comcalvi requested a review from skinny85 August 12, 2020 23:28
@skinny85 skinny85 added the pr/do-not-merge This PR should not be merged at this time. label Aug 13, 2020
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Some cosmetic comments. After you've addressed them, remove the do-not-merge label, and the PR will be automatically merged in.

packages/@aws-cdk/core/lib/cfn-parse.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-parse.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-parse.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-parse.ts Show resolved Hide resolved
tools/cfn2ts/lib/codegen.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-parse.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-parse.ts Outdated Show resolved Hide resolved
@comcalvi comcalvi removed the pr/do-not-merge This PR should not be merged at this time. label Aug 13, 2020
@mergify
Copy link
Contributor

mergify bot commented Aug 13, 2020

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).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: d281c23
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Aug 13, 2020

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 cb6de0a into aws:master Aug 13, 2020
@joekiller
Copy link

Thanks for making this clear! @skinny85

@joekiller
Copy link

also thanks @comcalvi

@skinny85
Copy link
Contributor

You're welcome @joekiller ! If you have any feedback about using cloudformation-include (bugs, feature requests, etc.), please, let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass parameters to CfnInclude
4 participants