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(aws-ec2): userdata cfn-signal signal resource which is different than the attached resource #16264

Merged
merged 11 commits into from
Sep 29, 2021

Conversation

assafkamil
Copy link
Contributor

When using cfn-init in EC2 UserData with a LaunchTemplate and an AutoScalingGroup the attached resource (used with cfn-init) is the LaunchTemplate but the signal (cfn-signal) should call the AutoScalingGroup.

CloudFormationInit::attach method supports only a single resource for both init and signal - blocking the usage of LaunchTemplate and AutoScalingGroup scenario.
The commit avoids a breaking change in the function signature, by adding an optional signalResource to the AttachInitOptions parameters argument


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

@gitpod-io
Copy link

gitpod-io bot commented Aug 28, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@njlynch njlynch self-assigned this Sep 21, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@assafkamil
Copy link
Contributor Author

@njlynch, I've fixed the merging conflict with master.
Can I please get your review?

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
njlynch
njlynch previously approved these changes Sep 28, 2021
Copy link
Contributor

@njlynch njlynch left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@njlynch njlynch added the pr-linter/exempt-readme The PR linter will not require README changes label Sep 28, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@mergify mergify bot dismissed njlynch’s stale review September 28, 2021 19:31

Pull request has been modified.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: a744f2c
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify mergify bot merged commit f24a1ae into aws:master Sep 29, 2021
@mergify
Copy link
Contributor

mergify bot commented Sep 29, 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).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
… than the attached resource (aws#16264)

When using `cfn-init` in EC2 UserData with a LaunchTemplate and an AutoScalingGroup the attached resource (used with `cfn-init`) is the LaunchTemplate but the signal (`cfn-signal`) should call the AutoScalingGroup.

`CloudFormationInit::attach` method supports only a single resource for both init and signal - blocking the usage of LaunchTemplate and AutoScalingGroup scenario.
The commit avoids a breaking change in the function signature, by adding an optional `signalResource` to the `AttachInitOptions` parameters argument


----

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

None yet

3 participants