Date post: | 16-Feb-2017 |
Category: |
Software |
Upload: | devopsdaysaustin |
View: | 134 times |
Download: | 0 times |
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