Last active
April 17, 2019 14:46
-
-
Save acbharat/98147aa9c3ac0b01a8be5e9a35e79fe0 to your computer and use it in GitHub Desktop.
Variables and Environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pillars of automating infrastructure Deployment (resources): | |
1.Provisioning resources | |
2.Planning Updates | |
3.Using Source Control | |
4.Reusing templates | |
Variables and Environment | |
Dev, QA, Production | |
Variables and multi states | |
Store secrets in safe place | |
Variables: | |
Separate variables | |
Overiding Variables and precendance | |
Select variables based on environment | |
Using conditionals | |
Multi State | |
State file commands | |
State file storage | |
Folder structure | |
Common patterns | |
Command; terraform apply --var-file="..\terraform.tfvars" -var-file=".\Development\development.tfvars" -state=".\Development\dev.state" | |
------------------------------------------------- | |
Module: Using modules to common configurations: | |
Note: Terraform modules are generalized Terraform configurations that can be imported and invoked by another configuration | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment