Skip to content

Commit

Permalink
tag the eip for the nat gateway (#34)
Browse files Browse the repository at this point in the history
Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
  • Loading branch information
ekristen and cloudpossebot authored Feb 17, 2021
1 parent f9d329b commit 9e4585e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,27 @@ Available targets:
|------|---------|
| aws | >= 2.0 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| private_label | cloudposse/label/null | 0.24.1 |
| public_label | cloudposse/label/null | 0.24.1 |
| this | cloudposse/label/null | 0.24.1 |

## Resources

| Name |
|------|
| [aws_eip](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/eip) |
| [aws_nat_gateway](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/nat_gateway) |
| [aws_network_acl](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/network_acl) |
| [aws_route](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/route) |
| [aws_route_table](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/route_table) |
| [aws_route_table_association](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/route_table_association) |
| [aws_subnet](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/subnet) |
| [aws_vpc](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/data-sources/vpc) |

## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -429,7 +450,6 @@ Available targets:
| ngw\_public\_ip | Public IP address of the NAT Gateway |
| route\_table\_ids | Route table IDs |
| subnet\_ids | Subnet IDs |

<!-- markdownlint-restore -->


Expand Down
22 changes: 21 additions & 1 deletion docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@
|------|---------|
| aws | >= 2.0 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| private_label | cloudposse/label/null | 0.24.1 |
| public_label | cloudposse/label/null | 0.24.1 |
| this | cloudposse/label/null | 0.24.1 |

## Resources

| Name |
|------|
| [aws_eip](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/eip) |
| [aws_nat_gateway](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/nat_gateway) |
| [aws_network_acl](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/network_acl) |
| [aws_route](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/route) |
| [aws_route_table](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/route_table) |
| [aws_route_table_association](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/route_table_association) |
| [aws_subnet](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/resources/subnet) |
| [aws_vpc](https://registry.terraform.io/providers/hashicorp/aws/2.0/docs/data-sources/vpc) |

## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -60,5 +81,4 @@
| ngw\_public\_ip | Public IP address of the NAT Gateway |
| route\_table\_ids | Route table IDs |
| subnet\_ids | Subnet IDs |

<!-- markdownlint-restore -->
2 changes: 2 additions & 0 deletions public.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ resource "aws_eip" "default" {
lifecycle {
create_before_destroy = true
}

tags = module.public_label.tags
}

resource "aws_nat_gateway" "default" {
Expand Down

0 comments on commit 9e4585e

Please sign in to comment.