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): add support for retrieving Output objects from the template #8821

Merged
merged 51 commits into from
Jul 2, 2020

Conversation

comcalvi
Copy link
Contributor

Closes #8820


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
@skinny85 skinny85 changed the title feat(cloudformation-include): add support for modifying retrieved output objects feat(cfn-include): add support for modifying retrieved output objects Jun 30, 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.

Nice work! Some minor comments below.

packages/@aws-cdk/core/lib/cfn-output.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-output.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-output.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-output.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/core/lib/cfn-output.ts Outdated Show resolved Hide resolved
@mergify mergify bot dismissed skinny85’s stale review July 1, 2020 01:42

Pull request has been modified.

@skinny85 skinny85 changed the title feat(cfn-include): add support for modifying retrieved output objects feat(cfn-include): add support for retrieving Output objects from the template Jul 1, 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.

Nice work! We're getting very close, mostly just documentation and test changes.

I feel like we're also missing some negative tests (what happens when a Condition an Output uses a GetAtt / Ref whose target doesn't exist? What if it uses a Condition that doesn't exist? etc.).

@skinny85
Copy link
Contributor

skinny85 commented Jul 1, 2020

@eladb @rix0rrr this change contains modifications to the CfnOutput class to make it mutable, like all L1s, and CfnCondition, for example. Let us know if you have any objections to this.

@mergify mergify bot dismissed skinny85’s stale review July 1, 2020 21:47

Pull request has been modified.

@comcalvi comcalvi requested a review from skinny85 July 1, 2020 21:50
@skinny85 skinny85 added the pr/do-not-merge This PR should not be merged at this time. label Jul 1, 2020
skinny85
skinny85 previously approved these changes Jul 1, 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 great! Added 'do-not-merge' so that @eladb and @rix0rrr have a chance to weigh in if they want to.

@mergify mergify bot dismissed skinny85’s stale review July 1, 2020 22:23

Pull request has been modified.

@skinny85 skinny85 requested review from eladb and rix0rrr July 2, 2020 03:43
@skinny85 skinny85 removed the pr/do-not-merge This PR should not be merged at this time. label Jul 2, 2020
@mergify
Copy link
Contributor

mergify bot commented Jul 2, 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: 18caef0
  • 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 Jul 2, 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 0b09bbb into aws:master Jul 2, 2020
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.

[cloudformation-include] Add support for retrieving and modifying output objects from templates
3 participants