Release Summary
This release introduces several new features and improvements across the collection. Notable additions include support for the volume_initialization_rate parameter in ec2_vol to enable Provisioned Initialization Rate when creating volumes from snapshots, and a new protected_from_scale_in option in autoscaling_group to control scale-in protection for instances. Route53 modules have been enhanced with new parameters for latency-based routing, including routing_region and a temporary aws_region option to support the transition away from the deprecated region parameter.
The release also includes security fixes addressing potential ReDoS vulnerabilities in ARN and EC2 security group ID parsing, as well as several internal improvements and refactorings to improve code maintainability, error handling, and testability across modules and plugin utilities.
Several deprecations were introduced in inventory plugins to avoid conflicts with Ansible reserved variable names and modernize configuration options. In addition, the release includes code modernization updates such as replacing deprecated datetime.utcnow() usage with timezone-aware alternatives, improvements to inventory plugin utilities, and various testing and internal maintenance updates.
Minor Changes
- autoscaling_group - Added a boolean parameter
protected_from_scale_into toggle protection from scale-in. This allows users to enable or disable scale-in protection for instances in an autoscaling group. (#2207) - aws_cloudtrail - replace deprecated
datetime.utcnow()with timezone-awaredatetime.now(tz=timezone.utc)(#2858). - aws_ec2 - added "ec2_tags" host variable (#2847).
- aws_ec2 - remove explicit
disable_lookups=Falseparameter from template calls as it is deprecated and False is the default value (#2864). - aws_inventory_base - remove explicit
disable_lookups=Falseparameter from template calls as it is deprecated and False is the default value (#2864). - aws_rds - added "rds_tags" host variable (#2847).
- aws_resource_actions - remove redundant
list()call when usingsorted(), improving efficiency by allowing sorted() to consume the generator expression directly (#2882). - ec2_vol - added
volume_initialization_rateoptional parameter to support Provisioned Initialization Rate when creating a volume from snapshots. (#2665) - ec2_vpc_endpoint - replace deprecated
datetime.utcnow()with timezone-awaredatetime.now(datetime.timezone.utc)(#2866). - ec2_vpc_nat_gateway - replace deprecated
datetime.utcnow()with timezone-awaredatetime.now(datetime.timezone.utc)(#2866). - plugin_utils/inventory - add error handling for ClientError and BotoCoreError in _freeze_iam_role method (#2902).
- plugin_utils/inventory - extract role session name generation into separate method to improve code organisation (#2902).
- route53 - added
routing_regionparameter to explicitly specify the region for latency-based resource record sets (#2893). - route53 - added temporary
aws_regionparameter to allow specifying the AWS region for API requests while theregionparameter is being transitioned (#2893). - route53 - refactored module utility to use decorator-based error handling. (#2892)
- route53_health_check - refactored module to improve testability and type safety. (#2892)
Deprecated Features
- aws_ec2 - the
tagshost variable has been deprecated to avoid conflicts with Ansible reserved variable names and will be removed in a release after 2026-12-01. Useec2_tagsinstead (#2847). - aws_ec2 - the
use_contrib_script_compatible_ec2_tag_keysoption has been deprecated and will be removed in a release after 2026-12-01. Use theec2_tagsstructure instead. (#2854) - aws_ec2 - the
use_contrib_script_compatible_sanitizationoption has been deprecated and will be removed in a release after 2026-12-01. Use Ansible's default group name sanitization instead. (#2854) - aws_rds - the
tagshost variable has been deprecated to avoid conflicts with Ansible reserved variable names and will be removed in a release after 2026-12-01. Userds_tagsinstead (#2847). - route53 - the
regionparameter for latency-based routing has been deprecated and will be removed in a release after 2027-06-01. Therouting_regionparameter behaves exactly asregionbehaves today and should be used instead (#2893).
Security Fixes
- arn - fix potential ReDoS vulnerability in ARN parsing regex by using negated character class instead of non-greedy quantifier (#2884).
- ec2_security_group - fix potential ReDoS vulnerability in security group ID parsing regex by using negated character classes and adding end anchor (#2884).
Bugfixes
- aws_ssm - Fixed connection being re-established on every loop iteration. The plugin now properly establishes a single connection for a loop (#2869).