Skip to content

Commit 5f954b9

Browse files
author
Steven Nemetz
committed
Update elb test case. Need to fix. No longer allows multiple subnets in sam AZ
1 parent 2a6f38e commit 5f954b9

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

examples/elb/main.tf

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
provider "aws" {
2-
region = "us-west-2"
3-
}
4-
51
##############################################################
62
# Data sources to get VPC, subnets and security group details
73
##############################################################
8-
data "aws_vpc" "default" {
9-
default = true
4+
data "aws_vpc" "vpc" {
5+
tags {
6+
Env = "${var.environment}"
7+
}
108
}
119

1210
data "aws_subnet_ids" "all" {
13-
vpc_id = "${data.aws_vpc.default.id}"
11+
vpc_id = "${data.aws_vpc.vpc.id}"
1412
}
1513

1614
data "aws_security_group" "default" {
17-
vpc_id = "${data.aws_vpc.default.id}"
15+
vpc_id = "${data.aws_vpc.vpc.id}"
1816
name = "default"
1917
}
2018

@@ -44,7 +42,8 @@ data "aws_ami" "amazon_linux" {
4442
module "example_asg" {
4543
source = "../../"
4644

47-
name = "example-with-elb"
45+
name = "example-with-elb"
46+
environment = "${var.environment}"
4847

4948
# Launch configuration
5049
#
@@ -82,7 +81,7 @@ module "example_asg" {
8281
desired_capacity = 1
8382
wait_for_capacity_timeout = 0
8483

85-
tags = [
84+
tags_ag = [
8685
{
8786
key = "Environment"
8887
value = "dev"

0 commit comments

Comments
 (0)