Skip to content

Instantly share code, notes, and snippets.

@kunduso
Last active June 18, 2021 11:49
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 kunduso/2729ebec0fc88fc58862f9fcd88d59f1 to your computer and use it in GitHub Desktop.
Save kunduso/2729ebec0fc88fc58862f9fcd88d59f1 to your computer and use it in GitHub Desktop.
Powershell command to initialize a terraform working directory
terraform init -backend-config="bucket=$(remote-state-bucket-name)" -backend-config="key=tf/terraform.tfstate" -backend-config="region=$(region)" -backend-config="access_key=$(access_key)" -backend-config="secret_key=$(secret_key)" -no-color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment