cloudposse/terraform-aws-dynamic-subnets (cloudposse/dynamic-subnets/aws)
### [`v2.4.1`](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/releases/tag/2.4.1)
[Compare Source](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/compare/2.4.0...2.4.1)
#### 🚀 Enhancements
Add subnet ARNs to outputs @Nuru (#188)
#### what
- Add subnet ARNs to outputs
#### why
- Closes [#171](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/issues/171)
### [`v2.4.0`](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/releases/tag/2.4.0)
[Compare Source](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/compare/2.3.0...2.4.0)
Update dependencies, remove deprecation, add NACL example @Nuru (#184)
#### Note
##### Dropping support for deprecated EC2-Classic
With this release, EIPs allocated for NAT ingress are allocated in the default domain. This most likely does not affect you, but [for accounts created before 2013-12-04](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-classic-platform.html) (almost 10 years ago as of this writing), the default domain could be EC2-Classic rather than the current VPC. Previously this module forced the EIPs to be in the VPC domain, but the breaking changes between AWS Provider v4 and v5 make that difficult.
If you find yourself in the rare situation where the EIPs allocated by this module are in EC2-Classic but you want them in VPC, then create the EIPs outside of this module and supply them to this module via `nat_elastic_ips`.
##### Custom NACLs
This release includes an example (`examples/nacls/`) showing how to create custom NACLs in conjunction with this module. Note that by default, this module creates wide-open NACLs, and subnets can only have one NACL associated with them. If you try to add a NACL to a subnet without disabling the default NACLs, you may get a possibly confusing error like:
│ Error: creating EC2 Network ACL: creating EC2 Network ACL (acl-0376c5f12dd9d784d) Association: InvalidAssociationID.NotFound: The association ID 'aclassoc-0818d5a9e3876a2bb' does not exist
See [https://github.com/hashicorp/terraform-provider-aws/issues/31888](https://togithub.com/hashicorp/terraform-provider-aws/issues/31888)
#### what
- Make appropriate inputs non-nullable (treat an input of `null` as meaning "default")
- Remove `aws_eip` `vpc = true`
- Update terraform cloudposse/utils/aws to v1.3.0 (Supersedes and closes [#182](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/issues/182))
- Add example of how to add custom NACLs to subnets created by this module (Supersedes and closes [#176](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/issues/176))
- Update tests and test framework
#### why
- Allow better, more consistent configuration
- Deprecated
- Include support for new AWS regions
- Encourage composition of modules and resources rather than aggregation of functionality into bloated modules (c.f. [#176](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/issues/176))
- Stay current with features, bug fixes, and security updates
#### references
- Terraform AWS Provider Version 5 Upgrade Guide: [aws_eip](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-5-upgrade#resourceaws_eip)
- [Disallowing Null Input Values](https://developer.hashicorp.com/terraform/language/values/variables#disallowing-null-input-values)
- [EC2 Classic](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-classic-platform.html)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
2.3.0
->2.4.1
Release Notes
cloudposse/terraform-aws-dynamic-subnets (cloudposse/dynamic-subnets/aws)
### [`v2.4.1`](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/releases/tag/2.4.1) [Compare Source](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/compare/2.4.0...2.4.1) #### 🚀 EnhancementsAdd subnet ARNs to outputs @Nuru (#188)
#### what - Add subnet ARNs to outputs #### why - Closes [#171](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/issues/171)Update dependencies, remove deprecation, add NACL example @Nuru (#184)
#### Note ##### Dropping support for deprecated EC2-Classic With this release, EIPs allocated for NAT ingress are allocated in the default domain. This most likely does not affect you, but [for accounts created before 2013-12-04](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-classic-platform.html) (almost 10 years ago as of this writing), the default domain could be EC2-Classic rather than the current VPC. Previously this module forced the EIPs to be in the VPC domain, but the breaking changes between AWS Provider v4 and v5 make that difficult. If you find yourself in the rare situation where the EIPs allocated by this module are in EC2-Classic but you want them in VPC, then create the EIPs outside of this module and supply them to this module via `nat_elastic_ips`. ##### Custom NACLs This release includes an example (`examples/nacls/`) showing how to create custom NACLs in conjunction with this module. Note that by default, this module creates wide-open NACLs, and subnets can only have one NACL associated with them. If you try to add a NACL to a subnet without disabling the default NACLs, you may get a possibly confusing error like: │ Error: creating EC2 Network ACL: creating EC2 Network ACL (acl-0376c5f12dd9d784d) Association: InvalidAssociationID.NotFound: The association ID 'aclassoc-0818d5a9e3876a2bb' does not exist See [https://github.com/hashicorp/terraform-provider-aws/issues/31888](https://togithub.com/hashicorp/terraform-provider-aws/issues/31888) #### what - Make appropriate inputs non-nullable (treat an input of `null` as meaning "default") - Remove `aws_eip` `vpc = true` - Update terraform cloudposse/utils/aws to v1.3.0 (Supersedes and closes [#182](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/issues/182)) - Add example of how to add custom NACLs to subnets created by this module (Supersedes and closes [#176](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/issues/176)) - Update tests and test framework #### why - Allow better, more consistent configuration - Deprecated - Include support for new AWS regions - Encourage composition of modules and resources rather than aggregation of functionality into bloated modules (c.f. [#176](https://togithub.com/cloudposse/terraform-aws-dynamic-subnets/issues/176)) - Stay current with features, bug fixes, and security updates #### references - Terraform AWS Provider Version 5 Upgrade Guide: [aws_eip](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-5-upgrade#resourceaws_eip) - [Disallowing Null Input Values](https://developer.hashicorp.com/terraform/language/values/variables#disallowing-null-input-values) - [EC2 Classic](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-classic-platform.html)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.