Skip to content

Instantly share code, notes, and snippets.

@downspot
Created February 11, 2018 19:02
Embed
What would you like to do?
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