Skip to content

Instantly share code, notes, and snippets.

@gabrieljoelc
Last active February 5, 2019 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrieljoelc/542f7e36d786c83f389a916313b07945 to your computer and use it in GitHub Desktop.
Save gabrieljoelc/542f7e36d786c83f389a916313b07945 to your computer and use it in GitHub Desktop.

GistID: 542f7e36d786c83f389a916313b07945

Steps to setup (or fetch local) terraform state for azurerm provider:

  1. terraform init -backend-config="access_key=<access key to Azure Storage Account>"
  2. terraform workspace new (if creating new Workspace) or select (if selecting an existing one) <workspace name>
  3. terraform plan

Pass in variables to terraform plan for things like database credentials:

terraform plan -var 'login=mylogin' -var 'login-password=mypassword'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment