2016 - ignite - terraform to go from zero to prod in less than 1 month and then
Post on 16-Feb-2017
134 Views
Preview:
TRANSCRIPT
From Zero to Prod in less than a Month and then…
Satish KumarCloud Architect, Kasasa
CLOUD FORMER
CLOUD FORMATION
TERRAFORMING
HASHICORP CONFIGURATION LANGUAGE a.k.a HCL
resource "aws_s3_bucket" "example" { bucket = "kasasa-satish-devopsdays-example"}
kasasa-satish-devopsdays-example
PLAN:terraform plan –out demo.tfplan
INTENT
PLAN:terraform plan –out demo.tfplan
INTENT
APPLY
PROGRESS
terraform.tfstate
RESULT
terraform planterraform applyterraform refresh
resources
terraform.tfstate
*.tf
Change resources
Destroy resources
Image courtesy of Zurich, U.S.
Error Reading Local State
terraform.tfstate
Remote state
S3/Atlas/etcd/Consul
variable “bucket_name” { default = "kasasa-satish-devopsdays-example”}
variable “env” {}
env = “prod”
Resource “aws_s3_bucket” “example” { bucket = ”${var.bucket_name}-${var.env}”}
Remote state
Courtesty of charity.wtf
top related