Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use the correct delimiter value with nat-instance #99

Merged
merged 2 commits into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ Available targets:

```
<!-- markdownlint-restore -->
<!-- markdownlint-disable -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -242,6 +243,7 @@ Available targets:
| public\_subnet\_cidrs | CIDR blocks of the created public subnets |
| public\_subnet\_ids | IDs of the created public subnets |

<!-- markdownlint-restore -->



Expand Down
2 changes: 2 additions & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -67,3 +68,4 @@
| public\_subnet\_cidrs | CIDR blocks of the created public subnets |
| public\_subnet\_ids | IDs of the created public subnets |

<!-- markdownlint-restore -->
8 changes: 4 additions & 4 deletions nat-instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ resource "aws_instance" "nat_instance" {
"Name" = format(
"%s%s%s",
module.nat_label.id,
var.delimiter,
local.delimiter,
replace(
element(var.availability_zones, count.index),
"-",
var.delimiter
local.delimiter
)
)
}
Expand All @@ -108,11 +108,11 @@ resource "aws_eip" "nat_instance" {
"Name" = format(
"%s%s%s",
module.nat_label.id,
var.delimiter,
local.delimiter,
replace(
element(var.availability_zones, count.index),
"-",
var.delimiter
local.delimiter
)
)
}
Expand Down