-
-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Description
While using this module a terrform plan always requested to specify the region, although the variable region is set in the parent module.
Example
provider "aws" {
assume_role {
role_arn = "${var.aws_assume_role_arn}"
}
region = "${var.region}"
}
module "subnets" {
source = "git::https://github.com/cloudposse/terraform-aws-dynamic-subnets.git?ref=tags/0.11.0"
availability_zones = ["${data.aws_availability_zones.available.names}"]
namespace = "${var.namespace}"
stage = "${var.stage}"
name = "${var.name}"
attributes = "${var.attributes}"
tags = "${local.tags}"
region = "${var.region}"
vpc_id = "${module.vpc.vpc_id}"
igw_id = "${module.vpc.igw_id}"
cidr_block = "${module.vpc.vpc_cidr_block}"
nat_gateway_enabled = "true"
}
>terraform plan
provider.aws.region
The region where AWS operations will take place. Examples
are us-east-1, us-west-2, etc.
Default: us-east-1
Enter a value:
Metadata
Metadata
Assignees
Labels
No labels