Skip to content

Commit

Permalink
set nau to be false
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 25, 2023
1 parent c82ffab commit aaa6ae9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions vpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ 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
2 changes: 1 addition & 1 deletion vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ 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 = true
enable_network_address_usage_metrics = var.enable_nau_metrics

tags = merge(
local.base_tags,
Expand Down
6 changes: 6 additions & 0 deletions vpc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +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
}

###
##
## variable "vpc_domain_name" {
Expand Down

0 comments on commit aaa6ae9

Please sign in to comment.