-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/aws_ecs_task_definition: Treat INACTIVE task definitions as removed #5565
Conversation
cba7ff1
to
e1e76a9
Compare
e1e76a9
to
f8686e0
Compare
If a task definition is marked as INACTIVE in ECS then terraform should treat it as a deleted resource Resolves: hashicorp/terraform#3582 (comment) Signed-off-by: Edward Wilde <[email protected]>
f8686e0
to
1a4bfdb
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, thanks @ewilde! 🚀
11 tests passed (all tests)
--- PASS: TestAccAWSEcsTaskDefinition_arrays (4.63s)
--- PASS: TestAccAWSEcsTaskDefinition_Fargate (4.70s)
--- PASS: TestAccAWSEcsTaskDefinition_constraint (4.76s)
--- PASS: TestAccAWSEcsTaskDefinition_withScratchVolume (4.80s)
--- PASS: TestAccAWSEcsTaskDefinition_changeVolumesForcesNewResource (7.12s)
--- PASS: TestAccAWSEcsTaskDefinition_Inactive (7.40s)
--- PASS: TestAccAWSEcsTaskDefinition_basic (7.42s)
--- PASS: TestAccAWSEcsTaskDefinition_withNetworkMode (8.49s)
--- PASS: TestAccAWSEcsTaskDefinition_ExecutionRole (11.29s)
--- PASS: TestAccAWSEcsTaskDefinition_withTaskRoleArn (13.43s)
--- PASS: TestAccAWSEcsTaskDefinition_withEcsService (32.91s)
This has been released in version 1.33.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Todo
INACTIVE
Description
If a task definition is marked as INACTIVE in ECS then terraform should
treat it as a deleted resource
Fixes hashicorp/terraform#3582
Output from acceptance testing:
New acceptance test