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
Feature: AWS Batch Job Definition now creates a new version instead of ForceNew #34281
Feature: AWS Batch Job Definition now creates a new version instead of ForceNew #34281
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Hey @drewmullen 👋 Thank you very much for your contribution! At times, our maintainers need to make direct edits to pull requests in order to help get it ready to be merged. Your current settings do not allow maintainers to make such edits. To help facilitate this, update your pull request to allow such edits as described in GitHub's Allowing changes to a pull request branch created from a fork documentation. (If you're using a fork owned by an organization, your organization may not allow you to change this setting. If that is the case, let us know.) |
52900cd
to
1c659ae
Compare
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
1c659ae
to
cfc5f9b
Compare
e6abee4
to
3ff51c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great pull request, @drewmullen! I believe the behavior you're suggesting aligns better with AWS's intentions. I've made a couple of comments in passing. I'll let a core member who merges this handle the integration test runs 👍🏼.
Co-authored-by: Bruno Schaatsbergen <58337159+bschaatsbergen@users.noreply.github.com>
Co-authored-by: Bruno Schaatsbergen <58337159+bschaatsbergen@users.noreply.github.com>
95778a4
to
f304e9e
Compare
im going to rebase and strip out some of the changes in this PR into smaller PRs |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Closes #29819.
Closes #18111.
Closes #31226.
Summary
job_definition
(JD) was previously a ForceNew resource on all parameters. This was interesting because when a JD is deleted in AWS the revision still lasts but is marked as inactive. In some ways, the ForceNew didnt matter because a new revision was being created. This PR modifies the behavior so that instead of deleting each revision as a new is created, we merely add a new one.Design decisions
deregister_on_new_revision
testAccCheckJobDefinitionDestroy
) now checks to see if any revisions exist and fails accordinglyRefactored tests
_capabilitiesEC2
->_attributes
- new parent test for root level attribute checks_PlatformCapabilitiesFargate_containerPropertiesDefaults
->_ContainerProperties_fargateDefaults
_PlatformCapabilities_fargate
->_ContainerProperties_fargate
_ContainerProperties_advanced
->_ContainerProperties_EC2
_ContainerProperties_EmptyField
->_ContainerProperties_EC2EmptyField
_PlatformCapabilities_ec2
-> coverage by_attributes
_updateForcesNewResource
-> coverage by_attributes
_propagateTags
-> coverage by_attributes
_NodePropertiesupdateForcesNewResource
-> coverage by_NodeProperties_basic
createTypeContainerWithBothProperties
-> addedConflictsWith
which prevents setting both properties_createTypeMultiNodeWithBothProperties
-> addedConflictsWith
which prevents setting both properties_NodeProperties_advanced
-> replaced by_advancedUpdate
testAccCheckJobDefinitionRecreated
-> covered by_attributes
andjd.Revision
parametertestAccCheckJobDefinitionDestroy
now checks for all revisions to be deregistered_propagateTags
-> covered by_attributes
_containerProperties_advancedUpdate
-> covered by_attributes
_createTypeMultiNodeWithBothProperties
-> addedConflictsWith
which prevents setting both properties