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

Merged
merged 9 commits into from
May 27, 2024

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 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!

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 5f4ce77
  • 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 added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label May 26, 2024
@gracelu0 gracelu0 self-assigned this May 26, 2024
Copy link
Contributor

@gracelu0 gracelu0 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for your contribution!

Copy link
Contributor

mergify bot commented May 27, 2024

Thank you for contributing! Your pull request will be updated from main 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 c073617 into aws:main May 27, 2024
13 checks passed
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label May 27, 2024
atanaspam pushed a commit to atanaspam/aws-cdk that referenced this pull request Jun 3, 2024
…ce (aws#30160)

### Issue # (if applicable)

Closes aws#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
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
vdahlberg pushed a commit to vdahlberg/aws-cdk that referenced this pull request Jun 10, 2024
…ce (aws#30160)

### Issue # (if applicable)

Closes aws#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
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@aws-cdk-automation
Copy link
Collaborator

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

@aws aws locked as resolved and limited conversation to collaborators Jul 25, 2024
@badmintoncryer badmintoncryer deleted the instanceInitiatedShutdownBehavior branch October 9, 2024 06:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
4 participants