Skip to content

Commit fd3c29d

Browse files
authored
Merge pull request #25 from unifio/covalence-update
Documentation & Examples updates
2 parents f4f994b + 4cfbbda commit fd3c29d

File tree

18 files changed

+202
-140
lines changed

18 files changed

+202
-140
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
#### Consider Implementing:
22
* ipv6 support
33

4+
## 0.3.2 (May 16, 2017)
5+
6+
#### BACKWARDS INCOMPATIBILITIES / NOTES:
7+
* The following output variables have been changed:
8+
* az module
9+
* `dmz_cidrs (string)` -> `dmz_cidrs (list)`
10+
* `dmz_ids (string)` -> `dmz_ids (list)`
11+
* `eip_nat_ids (string)` -> `eip_nat_ids (list)`
12+
* `eip_nat_ips (string)` -> `eip_nat_ips (list)`
13+
* `lan_ids (string)` -> `lan_ids (list)`
14+
* `lan_cidrs (string)` -> `lan_cidrs (list)`
15+
* `nat_ids (string)` -> `nat_ids (list)`
16+
* `rt_lan_ids (string)` -> `rt_lan_ids (list)`
17+
* The following input variable have been changed:
18+
* az module
19+
* `stack_item_fullname` now defaults to a value of `VPC Quick Start`
20+
* `stack_item_label` now defaults to a value of `exmpl`
21+
422
## 0.3.1 (April 23, 2017)
523

624
#### IMPROVEMENTS / NEW FEATURES:

README.md

Lines changed: 119 additions & 83 deletions
Large diffs are not rendered by default.

az/outputs.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@
22

33
## Returns Subnet IDs
44
output "dmz_ids" {
5-
value = "${join(",",aws_subnet.dmz.*.id)}"
5+
value = ["${aws_subnet.dmz.*.id}"]
66
}
77

88
output "lan_ids" {
9-
value = "${join(",",aws_subnet.lan.*.id)}"
9+
value = ["${aws_subnet.lan.*.id}"]
1010
}
1111

1212
## Returns Subnet CIDR blocks
1313
output "dmz_cidrs" {
14-
value = "${join(",",aws_subnet.dmz.*.cidr_block)}"
14+
value = ["${aws_subnet.dmz.*.cidr_block}"]
1515
}
1616

1717
output "lan_cidrs" {
18-
value = "${join(",",aws_subnet.lan.*.cidr_block)}"
18+
value = ["${aws_subnet.lan.*.cidr_block}"]
1919
}
2020

2121
## Returns information about the NATs
2222
output "eip_nat_ids" {
23-
value = "${join(",",aws_eip.eip_nat.*.id)}"
23+
value = ["${aws_eip.eip_nat.*.id}"]
2424
}
2525

2626
output "eip_nat_ips" {
27-
value = "${join(",",aws_eip.eip_nat.*.public_ip)}"
27+
value = ["${aws_eip.eip_nat.*.public_ip}"]
2828
}
2929

3030
output "nat_ids" {
31-
value = "${coalesce(join(",",aws_instance.nat.*.id),join(",",aws_nat_gateway.nat.*.id))}"
31+
value = ["${compact(concat(aws_instance.nat.*.id,aws_nat_gateway.nat.*.id))}"]
3232
}
3333

3434
## Returns the routing table ID
3535
output "rt_lan_ids" {
36-
value = "${join(",",aws_route_table.rt_lan.*.id)}"
36+
value = ["${aws_route_table.rt_lan.*.id}"]
3737
}

az/variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
variable "stack_item_fullname" {
55
type = "string"
66
description = "Long form descriptive name for this stack item. This value is used to create the 'application' resource tag for resources created by this stack item."
7+
default = "VPC Quick Start"
78
}
89

910
variable "stack_item_label" {
1011
type = "string"
1112
description = "Short form identifier for this stack. This value is used to create the 'Name' resource tag for resources created by this stack item, and also serves as a unique key for re-use."
13+
default = "qckstrt"
1214
}
1315

1416
## VPC parameters

base/variables.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
variable "stack_item_fullname" {
55
type = "string"
66
description = "Long form descriptive name for this stack item. This value is used to create the 'application' resource tag for resources created by this stack item."
7+
default = "VPC Quick Start"
78
}
89

910
variable "stack_item_label" {
1011
type = "string"
1112
description = "Short form identifier for this stack. This value is used to create the 'Name' resource tag for resources created by this stack item, and also serves as a unique key for re-use."
13+
default = "qckstrt"
1214
}
1315

1416
## VPC parameters
@@ -39,6 +41,7 @@ variable "instance_tenancy" {
3941
variable "vpc_cidr" {
4042
type = "string"
4143
description = "The CIDR block for the VPC."
44+
default = "172.16.0.0/21"
4245
}
4346

4447
## Flow log parameters

data/stacks/overrides.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ examples::complete::vars:
1717
enable_classiclink: 'true'
1818
instance_tenacy: 'dedicated'
1919
lans_per_az: '2'
20-
name_servers: '172.16.0.2,172.16.1.2,172.16.2.2'
20+
name_servers:
21+
- '172.16.0.2'
22+
- '172.16.1.2'
23+
- '172.16.2.2'
2124
nat_gateways_enabled: 'true'
22-
netbios_name_servers: '172.16.0.2,172.16.1.2,172.16.2.2'
23-
ntp_servers: '127.0.0.1'
25+
netbios_name_servers:
26+
- '172.16.0.2'
27+
- '172.16.1.2'
28+
- '172.16.2.2'
29+
ntp_servers:
30+
- '127.0.0.1'
2431
stack_item_label: 'cmpl'
2532
vpc_cidr: '172.16.0.0/21'

data/stacks/peer-connect.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ examples::peering::vars:
1616
accepter_rt_lan_ids:
1717
type: 's3.state'
1818
bucket: "%{hiera('tf_state_bucket')}"
19-
document: "terraform-aws-vpc/complete/peer/terraform.tfstate"
19+
document: 'terraform-aws-vpc/complete/peer/terraform.tfstate'
2020
key: 'lan_rt_ids'
2121
accepter_vpc_cidr: '172.17.0.0/21'
2222
accepter_vpc_id:
2323
type: 's3.state'
2424
bucket: "%{hiera('tf_state_bucket')}"
25-
document: "terraform-aws-vpc/complete/peer/terraform.tfstate"
25+
document: 'terraform-aws-vpc/complete/peer/terraform.tfstate'
2626
key: 'vpc_id'
2727
requester_rt_lan_ids:
2828
type: 's3.state'
2929
bucket: "%{hiera('tf_state_bucket')}"
30-
document: "terraform-aws-vpc/complete/terraform.tfstate"
30+
document: 'terraform-aws-vpc/complete/terraform.tfstate'
3131
key: 'lan_rt_ids'
3232
requester_vpc_cidr: '172.16.0.0/21'
3333
requester_vpc_id:
3434
type: 's3.state'
3535
bucket: "%{hiera('tf_state_bucket')}"
36-
document: "terraform-aws-vpc/complete/terraform.tfstate"
36+
document: 'terraform-aws-vpc/complete/terraform.tfstate'
3737
key: 'vpc_id'
3838
stack_item_label: 'cmpl'

data/stacks/peer-vpc.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ peer-vpc::state:
1515
examples::complete::vars:
1616
domain_name: 'complete.example'
1717
enable_hostnames: 'true'
18-
name_servers: '172.17.0.2,172.17.1.2,172.17.2.2'
19-
netbios_name_servers: '172.17.0.2,172.17.1.2,172.17.2.2'
20-
ntp_servers: '127.0.0.1'
18+
name_servers:
19+
- '172.17.0.2'
20+
- '172.17.1.2'
21+
- '172.17.2.2'
22+
netbios_name_servers:
23+
- '172.17.0.2'
24+
- '172.17.1.2'
25+
- '172.17.2.2'
26+
ntp_servers:
27+
- '127.0.0.1'
2128
stack_item_label: 'cmpl-peer'
2229
vpc_cidr: '172.17.0.0/21'

examples/basic.tfvars

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/basic/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ resource "aws_route" "lan-to-nat" {
6969
count = "${var.azs_provisioned * var.lans_per_az}"
7070

7171
destination_cidr_block = "0.0.0.0/0"
72-
instance_id = "${element(split(",",module.vpc_az.nat_ids),count.index)}"
73-
route_table_id = "${element(split(",",module.vpc_az.rt_lan_ids),count.index)}"
72+
instance_id = "${element(module.vpc_az.nat_ids,count.index)}"
73+
route_table_id = "${element(module.vpc_az.rt_lan_ids,count.index)}"
7474
}

0 commit comments

Comments
 (0)