Skip to content

Commit

Permalink
Merge pull request #18 from unifio/add-nat-ip
Browse files Browse the repository at this point in the history
Added NAT gateway IP to the module outputs
  • Loading branch information
blakeneyops authored Jun 25, 2016
2 parents 6134b64 + 842c300 commit 0f1cf4a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Unreleased

## 0.2.4 (June 24, 2016)

#### IMPROVEMENTS:
* Added NAT gateway public IP to the AZ module outputs.

## 0.2.3 (June 8, 2016)

#### IMPROVEMENTS:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ module "AZs" {
- `lan_cidr` - List of subnet CIDR blocks of the LAN subnetworks.
- `eip_nat_id` - List of Elastic IP IDs for each of the NAT gateways.
- `nat_id` - List of NAT gateways IDs.
- `eip_nat_ip` - List of NAT gateway public IPs.
- `rt_lan_id` - List of routing table IDs for the LAN subnets.

## Examples ##
Expand Down
4 changes: 4 additions & 0 deletions az/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ output "nat_id" {
value = "${join(",",aws_nat_gateway.nat.*.id)}"
}

output "eip_nat_ip" {
value = "${join(",",aws_eip.eip_nat.*.public_ip)}"
}

## Returns the routing table ID
output "rt_lan_id" {
value = "${module.rt_lan.rt_id}"
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ dependencies:
test:
override:
# Style check
- "[ $(terraform fmt | wc -l) -eq 0 ]"
- "[ $(terraform fmt -write=false | wc -l) -eq 0 ]"
# Verify plan
- bundle exec rake

0 comments on commit 0f1cf4a

Please sign in to comment.