Cloudformation-coverage-roadmap: AWS::Pinpoint::App-Tags-Resource cannot be updated

Created on 22 May 2020  路  2Comments  路  Source: aws-cloudformation/cloudformation-coverage-roadmap

1. Title

AWS::Pinpoint::App-Tags-Resource cannot be updated

2. Scope of request

AWS::Pinpoint::App cannot be updated after creation.

Any attempt results in Status: UPDATE_FAILED| Reason: Resource cannot be updated

Tried with adding Tags and updating existing tags.

3. Expected behavior

When updating OR adding the Tags Property to an existing Pinpoint App Resource I expect the stack update to complete and for the App to have the Tags set in the TagsModel.

This should be able to be confirmed using AWSCLI aws pinpoint list-tags-for-resource --resource-arn arn:aws:mobiletargeting:us-east-1:{ACCOUNT}:apps/{ARN}
with a return of

{
    "TagsModel": {
        "tags": {
            "key": "value"
        }
    }
}

But Instead the CloudFormation Fails and the Pinpoint App is not updated

4. Suggest specific test cases

Test Case 1 - Create Pinpoint App without Tags and then try to update with adding tags

Create Stack:

ResourcePinpointAppTest1:
    Type: "AWS::Pinpoint::App"
    Properties:
      Name: "test_1"

This Works and aws pinpoint list-tags-for-resource --resource-arn returns { "TagsModel": { "tags": {} } }

Update Stack:

ResourcePinpointAppTest1:
    Type: "AWS::Pinpoint::App"
    Properties:
      Name: "test_1"
      Tags: { "key" : "value" }

This SHOULD work, but CloudFormation Update fails and rolls back

Result: UPDATE_FAILED | Resource cannot be updated | UPDATE_ROLLBACK_IN_PROGRESS | The following resource(s) failed to update: [ResourcePinpointAppTest1]. | UPDATE_ROLLBACK_COMPLETE
aws pinpoint list-tags-for-resource --resource-arn returns { "TagsModel": { "tags": {} } }

instead of expected aws pinpoint list-tags-for-resource --resource-arn returns { "TagsModel": { "tags": { "key": "value"} } }

Test Case 2 - Create Pinpoint App with Tags and then try to update tags (add and/or update)

Create Stack:

ResourcePinpointAppTest2:
    Type: "AWS::Pinpoint::App"
    Properties:
      Name: "test_2"
      Tags: { "key1" : "value1" }

This Works and aws pinpoint list-tags-for-resource --resource-arn ... returns { "TagsModel": { "tags": { "key1" : "value1" } } }

Update Stack:

ResourcePinpointAppTest2:
    Type: "AWS::Pinpoint::App"
    Properties:
      Name: "test_2"
      Tags: { "key1" : "CHANGE", "key2" : "value2" }

This SHOULD work, but CloudFormation Update fails and rolls back

Result: UPDATE_FAILED | Resource cannot be updated | UPDATE_ROLLBACK_IN_PROGRESS | The following resource(s) failed to update: [ResourcePinpointAppTest2]. | UPDATE_ROLLBACK_COMPLETE
aws pinpoint list-tags-for-resource --resource-arn returns { "TagsModel": { "tags": { "key1" : "value1" } } }

instead of expected aws pinpoint list-tags-for-resource --resource-arn returns { "TagsModel": { "tags": { "key1": "CHANGE", "key2" : "value2"} } }

5. Helpful Links to speed up research and evaluation

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-app.html

6. Category

Customer Engagement (Pinpoint), Other

7. Any additional context

Attached Screenshot of what the CloudFormation Console shows during failure and rollback

image

bug? other AWS services

Most helpful comment

Any update on this issue? I bumped into this issue today. Exactly the same scenario: the only thing I updated is the value of an existing resource tag. I have to reprovision the stack to go over it.

All 2 comments

Any update on this issue? I bumped into this issue today. Exactly the same scenario: the only thing I updated is the value of an existing resource tag. I have to reprovision the stack to go over it.

Ran into this while using aws-cdk.

A simple Tag.add(this, ...) construct within the stack completely broke cdk deploy.

Workaround for aws-cdk to skip tagging Pinpoint:

    Tag.add(this, "StackEnvName", envName, {
      // https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/480
      excludeResourceTypes: ["AWS::Pinpoint::App"],
    });
Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnPreston picture JohnPreston  路  3Comments

luiseduardocolon picture luiseduardocolon  路  4Comments

kjpgit picture kjpgit  路  4Comments

hoegertn picture hoegertn  路  4Comments

grauj-aws picture grauj-aws  路  3Comments