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(core): cloudformation resource metadata #9063

Merged
merged 3 commits into from
Jul 15, 2020
Merged

Conversation

njlynch
Copy link
Contributor

@njlynch njlynch commented Jul 14, 2020

Exposes a mechanism to add metadata to CloudFormation resources by key name. This can be used for internal usage like setting the CDK metadata path, or for other metadata like CfnInit use cases.

This is a prerequisite of #8788, where it will be used to add CfnInit metadata.


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

This is a prerequisite of #8788, where it will be used to add CfnInit metadata.
@njlynch njlynch requested a review from nija-at July 14, 2020 16:30
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 14, 2020
@njlynch njlynch added the pr-linter/exempt-readme The PR linter will not require README changes label Jul 14, 2020
@nija-at nija-at changed the title feat(core): Expose CfnResource metadata feat(core): expose CfnResource metadata Jul 15, 2020
@nija-at nija-at added the pr/do-not-merge This PR should not be merged at this time. label Jul 15, 2020
@nija-at nija-at changed the title feat(core): expose CfnResource metadata feat(core): cloudformation resource metadata Jul 15, 2020
Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

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

Provisional approval. Added do-not-merge label. Remove this once these comments are addressed.

I've changed the title to what I think is a little more appropriate. Feel free to revert if you feel otherwise.

In the PR description, summarize this feature and the motivation, besides linking to the PR.

packages/@aws-cdk/core/lib/cfn-resource.ts Show resolved Hide resolved
@njlynch njlynch removed the pr/do-not-merge This PR should not be merged at this time. label Jul 15, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 36a14a7
  • 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 15, 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 b0f8729 into master Jul 15, 2020
@mergify mergify bot deleted the njlynch/core-metadata branch July 15, 2020 13:57
curtiseppel pushed a commit to curtiseppel/aws-cdk that referenced this pull request Aug 11, 2020
Exposes a mechanism to add metadata to CloudFormation resources by key name. This can be used for internal usage like setting the CDK metadata path, or for other metadata like CfnInit use cases.

This is a prerequisite of aws#8788, where it will be used to add CfnInit metadata.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot pushed a commit that referenced this pull request Aug 13, 2020
> NOTE: This is a reduced version of #8788, which is the full
CloudFormation-init support. This has been reduced down to only support
instances (not ASGs), and to only support the InitCommand and InitService init
elements, rather than the full set. This is to reduce the PR size and encourage
a more thorough review. A follow-up review will add the remainder of the
elements and auto-scaling group support.

Add CloudFormation-init support.

The CloudFormation-init metadata is encapsulated in a CloudFormationInit object,
and using it automatically renders the UserData to apply it and send a signal to
the appropriate CloudFormation resource and adds the permissions required to use
cfn-init, cfn-signal and any S3 files/assets to the instance role.

On an Instance, using CloudFormation-init automatically adds a ResourceSignal
with a default timeout to the instance.

Note this currently also includes the same changes as #9063, as this relies on it. #9063 can be independently shipped.

----

*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
contribution/core This is a PR that came from AWS. pr-linter/exempt-readme The PR linter will not require README changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants