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.

Revisions

  1. MattiasGees created this gist Aug 3, 2015.
    20 changes: 20 additions & 0 deletions terraforn_remote_state_5
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    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}"
    }