AWS examples for terraform 0.12
Playing with terraform-0.12-alpha*
and AWS provider to test some HCL2
features presented at this Hashiconf 18 talk.
Download Terraform 0.12 according your architecture
https://releases.hashicorp.com/terraform/0.12.0-alpha2/
- unzip
terraform-0.12-alpha2
- Add your aws.tfvars file containing
aws_access_key
andaws_secrety_key
to file likeaws.tfvars
- Run from specific directory (for example
security_groups
)
./terraform init
./terraform plan -var-file=aws.tfvars -var-file=security_groups.tfvars
./terraform apply -var-file=aws.tfvars -var-file=security_groups.tfvars