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(ec2): support instanceInitiatedShutdownBehavior for EC2 instance #30160

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

badmintoncryer
Copy link
Contributor

@badmintoncryer badmintoncryer commented May 12, 2024

Issue # (if applicable)

Closes #30164

Reason for this change

Cloudformation supports to specify instanceInitiatedShutdownBehavior but CDK cannot.

Description of changes

Add instanceInitiatedShutdownBehavior to InstanceProps.

Description of how you validated changes

Add both unit and integ tests.

Checklist


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

@aws-cdk-automation aws-cdk-automation requested a review from a team May 12, 2024 04:46
@github-actions github-actions bot added p2 star-contributor [Pilot] contributed between 25-49 PRs to the CDK labels May 12, 2024
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

@aws-cdk-automation aws-cdk-automation dismissed their stale review May 12, 2024 05:09

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@badmintoncryer badmintoncryer marked this pull request as ready for review May 12, 2024 05:17
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label May 12, 2024
@github-actions github-actions bot added the feature-request A feature should be added or improved. label May 12, 2024
@badmintoncryer badmintoncryer changed the title feat(ec2): support instanceInitiatedShutdownBehavior feat(ec2): support instanceInitiatedShutdownBehavior for EC2 instance May 12, 2024
Copy link
Contributor

@go-to-k go-to-k 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 this PR. I just made a few minor comments.

packages/aws-cdk-lib/aws-ec2/lib/instance.ts Show resolved Hide resolved
packages/aws-cdk-lib/aws-ec2/lib/instance.ts Show resolved Hide resolved
packages/aws-cdk-lib/aws-ec2/README.md Outdated Show resolved Hide resolved
badmintoncryer and others added 2 commits May 23, 2024 21:06
Co-authored-by: k.goto (Kenta Goto) <24818752+go-to-k@users.noreply.github.com>
Co-authored-by: k.goto (Kenta Goto) <24818752+go-to-k@users.noreply.github.com>
@badmintoncryer
Copy link
Contributor Author

@go-to-k Thank you for your review! I replied to your comment.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: cce3104
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label May 23, 2024
Copy link
Contributor

@go-to-k go-to-k 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 your changes. LGTM.

@badmintoncryer
Copy link
Contributor Author

Thanks always!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. p2 star-contributor [Pilot] contributed between 25-49 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ec2: support instanceInitiatedShutdownBehavior for EC2 instance
3 participants