Created
February 11, 2018 19:02
-
-
Save downspot/97986af62344e0ddb182076a6ef29102 to your computer and use it in GitHub Desktop.
terraform_remote_state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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