• Forcefully replace a terraform resource / terraform taint

    3 min read

    terraform taint replace

    With terraform taint we are telling terraform that a particular object has become degraded so it will propose to replace it in the next plan. This command is going to be deprecated on terraform v1.0 since now we have the -replace flag on the apply command

    $ terraform taint kubernetes_namespace.pet2cattle_namespace
    Acquiring state lock. This may take a few moments...
    Resource instance kubernetes_namespace.pet2cattle_namespace has been marked as tainted.
    Releasing state lock. This may take a few moments...
    

    12/05/2021

    Read more...

From pet to cattle
Treat your kubernetes clusters like cattle, not pets