After deleting cloudformation stack,
below task definitions are still around in INACTIVE
state:
I don't have the option to delete them explicitly.
Why cloudformation service does not delete these resources?
After deleting cloudformation stack,
below task definitions are still around in INACTIVE
state:
I don't have the option to delete them explicitly.
Why cloudformation service does not delete these resources?
There is no such thing as deleting a task definition. You can only de-register
them and this is what cloudformation is doing. When task is de-registered it goes into INACTIVE
state.
Docs write:
At this time, INACTIVE task definition revisions remain discoverable in your account indefinitely; however, this behavior is subject to change in the future, so you should not rely on INACTIVE task definition revisions persisting beyond the lifecycle of any associated tasks and services.