Skip to content

Instantly share code, notes, and snippets.

@vpack
Last active June 1, 2016 03:01
Show Gist options
  • Select an option

  • Save vpack/bb04236f77cf447a433f6b8410362386 to your computer and use it in GitHub Desktop.

Select an option

Save vpack/bb04236f77cf447a433f6b8410362386 to your computer and use it in GitHub Desktop.
Terraform

Folder structure

/project
 |---> /terraform
 |       |--> /_env/aws # .tfvars file
 |       |--> /aws  # .tf files
 |---> /packer
 |---> bin/gen_ssh.sh

Plan and Apply

terraform get
terraform plan -input=false -detailed-exitcode
terraform apply

Taint a specific resource in a module

terraform taint  -module=aws.network.bastion aws_instance.bastion
terraform untaint  -module=aws.network.bastion aws_instance.bastion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment