Introduction
amazon.aws is the Ansible Content Collection that provides modules and plugins for managing Amazon Web Services infrastructure, including EC2, VPC, IAM, S3, and related services. Version 12.1.0 has been published to Ansible Galaxy, following 12.0.0. This is a minor release that adds regional NAT gateway support to the ec2_vpc_nat_gateway module and fixes a KeyError bug in the acm module_utils used when listing ACM certificates without a DomainName.
Whats New
Minor Changes
ec2_vpc_nat_gateway- Addedavailability_modeandvpc_idparameters for regional NAT gateway support (PR #2989).ec2_vpc_nat_gateway- Therelease_eipoption now correctly releases all EIP addresses when deleting a NAT gateway with multiple addresses (PR #2989).ec2_vpc_nat_gateway_info- Added return field documentation for regional NAT gateway fieldsavailability_mode,auto_scaling_ips,auto_provision_zones, androute_table_id(PR #2989).
Bugfixes
module_utils/acm- fixed aKeyErrorwhen listing ACM certificates that have noDomainName, for example a certificate imported without a valid domain name. The certificate ARN is now used in error messages instead (issue #2405).
Affected Components
| Component | Type | Change |
|---|---|---|
ec2_vpc_nat_gateway | Module | New availability_mode and vpc_id parameters, release_eip fix |
ec2_vpc_nat_gateway_info | Module | New return field documentation |
module_utils/acm | Module Util | KeyError bugfix on missing DomainName |
How to Install and Verify
# Install or upgrade the collection from Ansible Galaxy
ansible-galaxy collection install amazon.aws:==12.1.0
# Alternatively, upgrade to the latest available version
ansible-galaxy collection install amazon.aws --upgrade
# Verify the installed version
ansible-galaxy collection list amazon.aws
# Confirm the ec2_vpc_nat_gateway module documentation includes the new parameters
ansible-doc amazon.aws.ec2_vpc_nat_gateway | grep -A2 availability_mode
Conclusion
Users managing regional NAT gateways in AWS should upgrade to amazon.aws 12.1.0 to take advantage of the availability_mode and vpc_id parameters, as well as the corrected release_eip behavior. Anyone affected by KeyError exceptions when listing ACM certificates imported without a domain name will also want this release, since the fix referenced in issue #2405 replaces the missing DomainName with the certificate ARN in error output.