-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws_ecs: L2 support for restartpolicy #31425
Comments
|
The PR has been submitted. It is now awaiting review. |
Hey @go-to-k do you have any idea when this PR is ready to be merged? |
Right now I'm waiting for a review and I don't know when it will be reviewed as it depends on the status of the team. I can't wait either. If we get more reactions to this issue, it will be prioritized. |
### Issue # (if applicable) Closes #31127 #31425. ### Reason for this change A restart policy can be specified in CloudFormation, but not in L2. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html ### Description of changes Add `enableRestartPolicy` and some properties to the container definition. ### Description of how you validated changes unit tests 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*
The PR has been merged! |
Thank you for your PR! Closing this issue as the PR has been merged. |
Comments on closed issues and PRs are hard for our team to see. |
Describe the feature
The RestartPolicy L1 construct is now available https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnTaskDefinition.RestartPolicyProperty.html, but it cannot be conveniently set up using L2 ContainerDefinition.
Use Case
I use L2 constructs for setting up ECS services and need to set the restart policy for a container.
Proposed Solution
Add
restartPolicy
field to ContainerDefinition.Other Information
No response
Acknowledgements
CDK version used
2.158.0
Environment details (OS name and version, etc.)
Typescript
The text was updated successfully, but these errors were encountered: