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

Add support for network address usage metrics #124

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

lanzrein
Copy link
Contributor

what

This PR adds support for Network Address Usage Metrics on the VPC.
AWS documentation : https://docs.aws.amazon.com/vpc/latest/userguide/network-address-usage.html
Terraform documentation : https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#enable_network_address_usage_metrics

why

Network Address Usage metrics can help monitor the growth of a VPC and would be useful for any user.
Enable this after creating a VPC does not trigger recreation of the VPC.

references

closes #115

@lanzrein lanzrein requested review from a team as code owners September 20, 2023 07:59
@lanzrein
Copy link
Contributor Author

Hello,
This is my first PR on this repository.
Please let me know if I need to do any other things to make the process smoother on your side.

main.tf Outdated
enable_dns_hostnames = local.dns_hostnames_enabled
enable_dns_support = local.dns_support_enabled
assign_generated_ipv6_cidr_block = local.assign_generated_ipv6_cidr_block
enable_network_address_usage_metrics = var.enable_network_address_usage_metrics
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the cp convention where the enabled is past tense and suffixed instead of prefixed to keep arguments consistent

Suggested change
enable_network_address_usage_metrics = var.enable_network_address_usage_metrics
enable_network_address_usage_metrics = var.network_address_usage_metrics_enabled

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback it's done!

@joe-niland
Copy link
Member

/terratest

@joe-niland joe-niland enabled auto-merge (squash) November 10, 2023 02:47
@joe-niland joe-niland merged commit cd9070d into cloudposse:main Nov 10, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Network Address Usage metrics settings
3 participants