Skip to content

Updates to DummyTaskDefinition break the stack and prevent future updates #140

@cuperman

Description

@cuperman

If you try to update any attribute on the DummyTaskDefinition resource (for example, the optional family prop), then it fails with this error:

5:14:45 AM | UPDATE_FAILED        | Custom::BlueGreenService                  | EcsServiceCustomResource5EDA8C27
CustomResource attribute error: Vendor response doesn't contain taskDefinition.taskDefinitionArn key in object arn:aws:cloudformation:us-east-1:768404655438:stack/EcsTaggingTest/91a55fa0-4b94-11ec-a731-0eacf7b0a8db|DummyTaskDefinitionE3D9D432|fcad085b-b5a2-4a25-bbad-a66a696a7803 in S3 bucke
t cloudformation-custom-resource-storage-useast1

The DummyTaskDefinition isn't really intended to be used / updated, so it looks like updates weren't intended to be support. However, when this happens, it triggers a rollback causing CloudFormation to call update on the custom resource again, leaving it in this broken state. After this happens, subsequent deployments to the stack fail, and you can't really recover without updating the custom resource.

This can happen unintentionally during a refactor where the node address changes, because the node address is the default value for the optional family property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions