Skip to content

Instantly share code, notes, and snippets.

@omarismail
Created October 16, 2021 19:36
Show Gist options
  • Save omarismail/fe61309fcabe6c3c9478cf06c48c8901 to your computer and use it in GitHub Desktop.
Save omarismail/fe61309fcabe6c3c9478cf06c48c8901 to your computer and use it in GitHub Desktop.
remote backend, prefix
terraform {
backend "remote" {
hostname = "app.staging.terraform.io"
organization = "omar-test"
workspaces {
prefix = "app-"
}
}
}
output "env" {
value = "${terraform.workspace}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment