• Terraform apply without updating modified resources

    2 min read

    Terraform plan apply refresh

    When we are deploying infrastructure using terraform we need to understand that we should not be modifying what we have deployed, otherwise terraform will undo these changes if we apply it again. This is actually a good thing to make sure the code reflex the state of the infrastructure but sometimes can be a pain


  • Getting a terraform plan in json format

    2 min read

    terraform plan json terraform show

    Starting terraform v0.12 we can get the terraform plan in json format. To do so, first we will need to save the plan to a file:

    $ terraform plan -out demo.plan



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