Skip to content

Instantly share code, notes, and snippets.

@MattiasGees
Created August 3, 2015 16:29
Show Gist options
  • Save MattiasGees/dad40da22dc472e511cd to your computer and use it in GitHub Desktop.
Save MattiasGees/dad40da22dc472e511cd to your computer and use it in GitHub Desktop.
provider "aws" {
access_key = "${var.access_key}"
secret_key = "${var.secret_key}"
region = "${var.aws_region}"
}
resource "terraform_remote_state" "remote_state" {
backend = "s3"
config {
bucket = "mybucketname"
key = "nam_of_key_file"
}
}
module "app" {
source = "modules/blue-green"
name = "app"
vpc_id = "${terraform_remote_state.remote_state.output.vpc_id}"
subnets = "${terraform_remote_state.remote_state.output.app_subnets}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment