Skip to content

Tokens won't be recreated once removed #54

@lohrm-stabl

Description

@lohrm-stabl

Normally, if you create drift by removing a resource from the deployed infrastructure, Terraform will try to re-create the resource as it is still specified in the state.

This is not the case with the token resource in this provider.
E.g. if i delete a Token, which was created using Terraform, I get the following error:

Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: Unable to read token
│ 
│   with axiom_token.axiom_token_analytics_prod,
│   on cdk.tf.json line 227, in resource.axiom_token.axiom_token_analytics_prod:
│  227:       },
│ 
│ API error 404: Not Found
╵

This can be worked around by removing the resource from the state first using terraform state rm axiom_token.axiom_token_analytics_prod.

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