Skip to content

Commit

Permalink
disable ntwork address usage
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 25, 2023
1 parent aaa6ae9 commit 076cb6b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 0 additions & 1 deletion vpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ No modules.
| <a name="input_enable_aws_dns"></a> [enable\_aws\_dns](#input\_enable\_aws\_dns) | Enable use of AWS DNS server. This overrides the settings of vpc\_dns\_servers and enables dns\_support and dns\_hostnames | `bool` | `false` | no |
| <a name="input_enable_dns_hostnames"></a> [enable\_dns\_hostnames](#input\_enable\_dns\_hostnames) | Enable DNS hostnames within the VPC | `bool` | `true` | no |
| <a name="input_enable_dns_support"></a> [enable\_dns\_support](#input\_enable\_dns\_support) | Enable DNS support within the VPC | `bool` | `true` | no |
| <a name="input_enable_nau_metrics"></a> [enable\_nau\_metrics](#input\_enable\_nau\_metrics) | Enable use of Network Address Usage (nau) metrics for cloudwatch | `bool` | `false` | no |
| <a name="input_network_census"></a> [network\_census](#input\_network\_census) | Census Subnets | `list` | <pre>[<br> "148.129.0.0/16",<br> "172.16.0.0/12",<br> "192.168.0.0/16"<br>]</pre> | no |
| <a name="input_override_prefixes"></a> [override\_prefixes](#input\_override\_prefixes) | Override built-in prefixes by component. This should be used primarily for common infrastructure things | `map(string)` | `{}` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | AWS Tags to apply to appropriate resources (S3, KMS). Do not include safeguard tags here, use the data\_safeguard field for such things. | `map(string)` | `{}` | no |
Expand Down
9 changes: 5 additions & 4 deletions vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ resource "aws_vpc_dhcp_options_association" "vpc" {
# vpc
#---
resource "aws_vpc" "vpc" {
cidr_block = var.vpc_cidr_block
enable_dns_support = local.enable_dns_support
enable_dns_hostnames = local.enable_dns_hostnames
enable_network_address_usage_metrics = var.enable_nau_metrics
cidr_block = var.vpc_cidr_block
enable_dns_support = local.enable_dns_support
enable_dns_hostnames = local.enable_dns_hostnames
## not enabled in govcloud as of 2023-04-25, get a timeout on create, does not show in console
# enable_network_address_usage_metrics = var.enable_nau_metrics

tags = merge(
local.base_tags,
Expand Down
11 changes: 6 additions & 5 deletions vpc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ variable "enable_aws_dns" {
default = false
}

variable "enable_nau_metrics" {
description = "Enable use of Network Address Usage (nau) metrics for cloudwatch"
type = bool
default = false
}
## ## not enabled in govcloud as of 2023-04-25, get a timeout on create, does not show in console
## variable "enable_nau_metrics" {
## description = "Enable use of Network Address Usage (nau) metrics for cloudwatch"
## type = bool
## default = false
## }

###
##
Expand Down

0 comments on commit 076cb6b

Please sign in to comment.