![Page 1: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/1.jpg)
From Zero to Prod in less than a Month and then…
Satish KumarCloud Architect, Kasasa
![Page 2: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/2.jpg)
![Page 3: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/3.jpg)
![Page 4: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/4.jpg)
CLOUD FORMER
CLOUD FORMATION
![Page 5: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/5.jpg)
TERRAFORMING
![Page 6: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/6.jpg)
![Page 7: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/7.jpg)
HASHICORP CONFIGURATION LANGUAGE a.k.a HCL
resource "aws_s3_bucket" "example" { bucket = "kasasa-satish-devopsdays-example"}
kasasa-satish-devopsdays-example
![Page 8: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/8.jpg)
PLAN:terraform plan –out demo.tfplan
INTENT
![Page 9: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/9.jpg)
PLAN:terraform plan –out demo.tfplan
INTENT
APPLY
PROGRESS
terraform.tfstate
RESULT
![Page 10: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/10.jpg)
terraform planterraform applyterraform refresh
resources
terraform.tfstate
*.tf
![Page 11: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/11.jpg)
Change resources
Destroy resources
![Page 12: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/12.jpg)
Image courtesy of Zurich, U.S.
![Page 13: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/13.jpg)
![Page 14: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/14.jpg)
Error Reading Local State
![Page 15: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/15.jpg)
terraform.tfstate
Remote state
S3/Atlas/etcd/Consul
![Page 16: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/16.jpg)
variable “bucket_name” { default = "kasasa-satish-devopsdays-example”}
variable “env” {}
env = “prod”
Resource “aws_s3_bucket” “example” { bucket = ”${var.bucket_name}-${var.env}”}
![Page 17: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/17.jpg)
![Page 18: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/18.jpg)
![Page 19: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/19.jpg)
Remote state
![Page 20: 2016 - IGNITE - Terraform to go from Zero to Prod in less than 1 month and THEN](https://reader033.vdocuments.mx/reader033/viewer/2022042906/58a4caf91a28ab480e8b5b8f/html5/thumbnails/20.jpg)
Courtesty of charity.wtf