Skip to content

Instantly share code, notes, and snippets.

@downspot
Created February 11, 2018 19:02
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 downspot/97986af62344e0ddb182076a6ef29102 to your computer and use it in GitHub Desktop.
Save downspot/97986af62344e0ddb182076a6ef29102 to your computer and use it in GitHub Desktop.
terraform_remote_state
data "terraform_remote_state" "network" {
backend = "s3"
workspace = "${terraform.workspace}"
config {
bucket = "bucket-name"
key = "terraform.tfstate"
region = "${var.region}"
}
}
terraform {
backend "s3" {
bucket = "bucket-name"
key = "terraform.tfstate"
region = "us-east-1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment