feat(batch): skip unregister job definition on update#36011
feat(batch): skip unregister job definition on update#36011mergify[bot] merged 19 commits intoaws:mainfrom
Conversation
|
|
||||||||||||||
|
|
||||||||||||||
| * | ||
| * @default undefined - AWS Batch default is false | ||
| */ | ||
| readonly skipDeregisterOnUpdate?: boolean; |
There was a problem hiding this comment.
Is this required to be defined on IJobDefinition, since this affects the CFN update-time retention behavior?
There was a problem hiding this comment.
@kumsmrit You are exactly right. I've removed the definition from IJobDefinition.
This property only affects CFN update-time retention behavior and is not relevant for imported resources via fromJobDefinitionArn. Keep it on JobDefinitionProps and JobDefinitionBase only.
|
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). |
Merge Queue Status
This pull request spent 9 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. |
|
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 update |
❌ Mergify doesn't have permission to updateDetailsFor security reasons, Mergify can't update this pull request. Try updating locally. |
|
@kumsmrit Could you please approve again? |
|
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). |
Merge Queue Status
This pull request spent 55 minutes 41 seconds in the queue, including 30 minutes 18 seconds running CI. Required conditions to merge
|
|
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). |
|
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). |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
None
Reason for this change
Cloudformation now supports for skipping unregister job definition on update.
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/TemplateReference/aws-properties-batch-jobdefinition-resourceretentionpolicy.html#cfn-batch-jobdefinition-resourceretentionpolicy-skipderegisteronupdate
Description of changes
skipDeregisterOnUpdatetoJobdefinitionPropsDescribe any new or updated permissions being added
none
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