Topics
This release brings some new features, several bugfixes, and deprecated features are also included.
- ec2_snapshot - Add support for modifying createVolumePermission (ansible-collections#1464).
- ec2_snapshot_info - Add createVolumePermission to output result (ansible-collections#1464).
- s3_object - support for passing object keys with a leading
/
has been deprecated and will be removed in a release after 2025-12-01 (ansible-collections#1549).
- autoscaling_group - fix ValidationError when describing an autoscaling group that has more than 20 target groups attached to it by breaking the request into chunks (ansible-collections#1593).
- autoscaling_group_info - fix ValidationError when describing an autoscaling group that has more than 20 target groups attached to it by breaking the request into chunks (ansible-collections#1593).
- ec2_instance - fix check_mode issue when adding network interfaces (ansible-collections#1403).
- ec2_metadata_facts - Handle decompression when EC2 instance user-data is gzip compressed. The fetch_url method from ansible.module_utils.urls does not decompress the user-data unless the header explicitly contains
Content-Encoding: gzip
(ansible-collections#1575). - elb_application_lb - fix missing attributes on creation of ALB. The
create_or_update_alb()
was including ALB-specific attributes when updating an existing ALB but not when creating a new ALB (ansible-collections#1510). - module_utils.acm - fixes list_certificates returning only RSA_2048 certificates (ansible-collections#1567).
- rds_instance - add support for CACertificateIdentifier to create/update rds instance (ansible-collections#1459)."
This is a patch release that includes some bug fixes for the aws_ec2 inventory plugin and the s3_bucket and s3_object modules.
- aws_ec2 inventory plugin - fix
NoRegionError
when no regions are provided and region isn't specified (ansible-collections#1551). - s3_bucket - fixes issue when deleting a bucket with unversioned objects (ansible-collections#1533).
- s3_object - fixes regression related to objects with a leading
/
(ansible-collections#1548).
This release brings some new plugins and features. Several bugfixes, breaking changes and deprecated features are also included. The amazon.aws collection has dropped support for botocore<1.25.0
and boto3<1.22.0
. Support for Python 3.6 has also been dropped.
- Add github actions to run unit and sanity tests.(ansible-collections#1393).
- AnsibleAWSModule - add support to the
client
andresource
methods for overriding the default parameters (ansible-collections#1303). - CONTRIBUTING.md - refactors and adds to contributor documentation (ansible-collections#924)
- Refactor inventory plugins and add aws_rds inventory unit tests (ansible-collections#1218).
- Refactor module_utils/cloudfront_facts.py and add unit tests (ansible-collections#1265).
- The
black
code formatter has been run across the collection to improve code consistency (ansible-collections#1465). - amazon.aws inventory plugins - additional refactorization of inventory plugin connection handling (ansible-collections#1271).
- amazon.aws lookup plugins -
aws_access_key
has been renamed toaccess_key
for consistency between modules and plugins,aws_access_key
remains as an alias. This change should have no observable effect for users outside the module/plugin documentation (ansible-collections#1225). - amazon.aws lookup plugins -
aws_profile
has been renamed toprofile
for consistency between modules and plugins,aws_profile
remains as an alias. This change should have no observable effect for users outside the module/plugin documentation (ansible-collections#1225). - amazon.aws lookup plugins -
aws_secret_key
has been renamed tosecret_key
for consistency between modules and plugins,aws_secret_key
remains as an alias. This change should have no observable effect for users outside the module/plugin documentation (ansible-collections#1225). - amazon.aws lookup plugins -
aws_security_token
has been renamed tosession_token
for consistency between modules and plugins,aws_security_token
remains as an alias. This change should have no observable effect for users outside the module/plugin documentation (ansible-collections#1225). - amazon.aws modules - bulk update of import statements following various refactors (ansible-collections#1310).
- autoscaling_group - minor linting fixes (ansible-collections#1181).
- aws_account_attribute - the
aws_account_attribute
lookup plugin has been refactored to useAWSLookupBase
as its base class (ansible-collections#1225). - aws_ec2 inventory - minor linting fixes (ansible-collections#1181).
- aws_secret - the
aws_secret
lookup plugin has been refactored to useAWSLookupBase
as its base class (ansible-collections#1225). - aws_secret - the
aws_secret
lookup plugin has been renamedsecretsmanager_secret
,aws_secret
remains as an alias (ansible-collections#1225). - aws_ssm - the
aws_ssm
lookup plugin has been refactored to useAWSLookupBase
as its base class (ansible-collections#1225). - aws_ssm - the
aws_ssm
lookup plugin has been renamedssm_parameter
,aws_ssm
remains as an alias (ansible-collections#1225). - backup - Add logic for backup_selection* modules (ansible-collections#1530).
- bulk migration of
%
and.format()
to fstrings (ansible-collections#1483). - cloud module_utils - minor linting fixes (ansible-collections#1181).
- cloudtrail_info - minor linting fixes (ansible-collections#1181).
- cloudwatchlogs_log_group - minor linting fixes (ansible-collections#1181).
- docs_fragments -
amazon.aws.boto3
fragment now pulls the botocore version requirements frommodule_utils.botocore
(ansible-collections#1248). - docs_fragments - common parameters for modules and plugins have been synchronised and moved to
amazon.aws.common.modules
andamazon.aws.common.plugins
(ansible-collections#1248). - docs_fragments - region parameters for modules and plugins have been synchronised and moved to
amazon.aws.region.modules
andamazon.aws.region.plugins
(ansible-collections#1248). - ec2_ami - Extend the unit-test coverage of the module (ansible-collections#1159).
- ec2_ami - allow
ImageAvailable
waiter to retry when the image can't be found (ansible-collections#1321). - ec2_ami_info - Add unit-tests coverage (ansible-collections#1252).
- ec2_eip - minor linting fixes (ansible-collections#1181).
- ec2_eni_info - Add unit-tests coverage (ansible-collections#1236).
- ec2_instance - avoid changing
module.params
(ansible-collections#1187). - ec2_instance - updated to avoid manipulating
module.params
(ansible-collections#1337). - ec2_security_group - added rule options to argument specifications to improve handling of inputs (ansible-collections#1214).
- ec2_security_group - refacter
get_target_from_rule()
(ansible-collections#1221). - ec2_security_group - refactor rule expansion and add unit tests (ansible-collections#1261).
- ec2_snapshot - Reenable the integration tests (ansible-collections#1235).
- ec2_snapshot_info - Add unit-tests coverage (ansible-collections#1211).
- ec2_vpc_route_table - add support for Carrier Gateway entry (ansible-collections#926).
- ec2_vpc_subnet - retry fetching subnet details after creation if the first attempt fails (ansible-collections#1526).
- inventory aws ec2 - add parameter
use_ssm_inventory
allowing to query ssm inventory information for configured EC2 instances and populate hostvars (ansible-collections#704). - inventory plugins - refactor cache handling (ansible-collections#1285).
- inventory plugins - refactor file verification handling (ansible-collections#1285).
- inventory_aws_ec2 integration tests - replace local module
test_get_ssm_inventory
bycommunity.aws.ssm_inventory_info
(ansible-collections#1416). - kms_key_info - minor linting fixes (ansible-collections#1181).
- lambda - minor linting fixes (ansible-collections#1181).
- lambda - use common
get_aws_account_info
helper rather than reimplementing (ansible-collections#1181). - lambda_alias - refactored to avoid passing around the complex
module
resource (ansible-collections#1336). - lambda_alias - updated to avoid manipulating
module.params
(ansible-collections#1336). - lambda_execute - minor linting fixes (ansible-collections#1181).
- lambda_info - updated to avoid manipulating
module.params
(ansible-collections#1336). - lambda_layer_info - add support for parameter version_number to retrieve detailed information for a specific layer version (ansible-collections#1293).
- module_utils - move RetryingBotoClientWrapper into module_utils.retries for reuse with other plugin types (ansible-collections#1230).
- module_utils - move exceptions into dedicated python module (ansible-collections#1246).
- module_utils - refacter botocore version validation into module_utils.botocore for future reuse (ansible-collections#1227).
- module_utils.acm - Refactor ACMServiceManager class and add unit tests (ansible-collections#1273).
- module_utils.botocore - Add Ansible AWS User-Agent identification (ansible-collections#1306).
- module_utils.botocore - refactorization of
get_aws_region
,get_aws_connection_info
so that the code can be reused by non-module plugins (ansible-collections#1231). - module_utils.policy - minor refacter of code to reduce complexity and improve test coverage (ansible-collections#1136).
- module_utils.s3 - Refactor get_s3_connection into a module_utils for S3 modules and expand module_utils.s3 unit tests (ansible-collections#1139).
- module_utils/botocore - added support to
_boto3_conn
for passing dictionaries of configuration (ansible-collections#1307). - plugin_utils - Added
AWSConnectionBase
to support refactoring connection plugins (ansible-collections#1340). - rds - AWS is phasing out aurora1. Integration tests use aurora2 (aurora-mysql) by default (ansible-collections#1233).
- rds_cluster - Split up the functional tests in smaller targets (ansible-collections#1175).
- rds_cluster_snapshot - minor linting fixes (ansible-collections#1181).
- rds_instance - minor linting fixes (ansible-collections#1181).
- rds_instance_info - Add unit-tests coverage (ansible-collections#1132).
- rds_instance_snapshot - minor linting fixes (ansible-collections#1181).
- rds_param_group - drop Python2 import fallbacks (ansible-collections#1513).
- route53_health_check - Drop deprecation warning (ansible-collections/community.aws#1335).
- route53_health_check - minor fix for returning health check info while updating a Route53 health check (ansible-collections#1200).
- route53_health_check - minor linting fixes (ansible-collections#1181).
- route53_info - drop unused imports (ansible-collections#1462).
- s3_bucket - add support for S3 dualstack endpoint (ansible-collections#1305).
- s3_bucket - handle missing read permissions more gracefully when possible (ansible-collections#1406).
- s3_bucket - refactor S3 connection code (ansible-collections#1305).
- s3_object - refactor S3 connection code (ansible-collections#1305).
- s3_object - refactor main to reduce complexity (ansible-collections#1193).
- s3_object_info - minor linting fixes (ansible-collections#1181).
- s3_object_info - refactor S3 connection code (ansible-collections#1305).
- The amazon.aws collection has dropped support for
botocore<1.25.0
andboto3<1.22.0
. Most modules will continue to work with older versions of the AWS SDK, however compatibility with older versions of the SDK is not guaranteed and will not be tested. When using older versions of the SDK a warning will be emitted by Ansible (ansible-collections#1342). - amazon.aws - compatibility code for Python < 3.6 has been removed (ansible-collections#1257).
- ec2_eip - the previously deprecated
instance_id
alias for thedevice_id
parameter has been removed. Please use thedevice_id
parameter name instead (ansible-collections#1176). - ec2_instance - the default value for
instance_type
has been removed. At least one ofinstance_type
orlaunch_template
must be specified when launching new instances (ansible-collections#1315). - ec2_vpc_dhcp_options - the
new_options
return value has been deprecated after being renamed todhcp_config
. Please use thedhcp_config
ordhcp_options
return values (ansible-collections#1327). - ec2_vpc_endpoint - the
policy_file
parameter has been removed. I(policy) with a file lookup can be used instead (ansible-collections#1178). - ec2_vpc_net - the
classic_link_enabled
return value has been removed. Support for EC2 Classic networking was dropped by AWS (ansible-collections#1374). - ec2_vpc_net_info - the
classic_link_dns_status
return value has been removed. Support for EC2 Classic networking was dropped by AWS (ansible-collections#1374). - ec2_vpc_net_info - the
classic_link_enabled
return value has been removed. Support for EC2 Classic networking was dropped by AWS (ansible-collections#1374). - module_utils.cloud - the previously deprecated
CloudRetry.backoff
has been removed. Please useCloudRetry.exponential_backoff
orCloudRetry.jittered_backoff
instead (ansible-collections#1110).
- amazon.aws collection - due to the AWS SDKs Python support policies (https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/) support for Python less than 3.8 by this collection is expected to be removed in a release after 2024-12-01 (ansible-collections#1342).
- amazon.aws collection - due to the AWS SDKs announcing the end of support for Python less than 3.7 (https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/) support for Python less than 3.7 by this collection has been deprecated and will be removed in release 7.0.0. (ansible-collections#1342).
- amazon.aws lookup plugins - the
boto3_profile
alias for theprofile
option has been deprecated, please useprofile
instead (ansible-collections#1225). - docs_fragments -
amazon.aws.aws_credentials
docs fragment has been deprecated please useamazon.aws.common.plugins
instead (ansible-collections#1248). - docs_fragments -
amazon.aws.aws_region
docs fragment has been deprecated please useamazon.aws.region.plugins
instead (ansible-collections#1248). - docs_fragments -
amazon.aws.aws
docs fragment has been deprecated please useamazon.aws.common.modules
instead (ansible-collections#1248). - docs_fragments -
amazon.aws.ec2
docs fragment has been deprecated please useamazon.aws.region.modules
instead (ansible-collections#1248). - module_utils.policy -
ansible_collections.amazon.aws.module_utils.policy.sort_json_policy_dict
has been deprecated consider usingansible_collections.amazon.aws.module_utils.poilcies.compare_policies
instead (ansible-collections#1136). - s3_object - Support for passing
dualstack
andendpoint_url
at the same time has been deprecated, thedualstack
parameter is ignored whenendpoint_url
is passed. Support will be removed in a release after 2024-12-01 (ansible-collections#1305). - s3_object - Support for passing values of
overwrite
other thanalways
,never
,different
or lastlast
has been deprecated. Boolean values should be replaced by the stringsalways
ornever
Support will be removed in a release after 2024-12-01 (ansible-collections#1305). - s3_object_info - Support for passing
dualstack
andendpoint_url
at the same time has been deprecated, thedualstack
parameter is ignored whenendpoint_url
is passed. Support will be removed in a release after 2024-12-01 (ansible-collections#1305).
- ec2_vpc_endpoint_info - support for the
query
parameter was removed. Theamazon.aws.ec2_vpc_endpoint_info
module now only queries for endpoints. Services can be queried using theamazon.aws.ec2_vpc_endpoint_service_info
module (ansible-collections#1308). - s3_object - support for creating and deleting buckets using the
s3_object
module has been removed. S3 buckets can be created and deleted using theamazon.aws.s3_bucket
module (ansible-collections#1112).
- ec2_security_group - file included unreachable code. Fix now removes unreachable code by removing an inapproproate logic (ansible-collections#1348).
- ec2_vpc_dhcp_option - retry
describe_dhcp_options
after creation whenInvalidDhcpOptionID.NotFound
is raised (ansible-collections#1320). - lambda_execute - Fix waiter error when function_arn is passed instead of name(ansible-collections#1268).
- module_utils - fixes
TypeError: deciding_wrapper() got multiple values for argument 'aws_retry'
when passing positional arguments to functions wrapped by AnsibleAWSModule.client (ansible-collections#1230). - rds_param_group - added a check to fail the task while modifying/updating rds_param_group if trying to change DB parameter group family. (ansible-collections#1169).
- route53_health_check - Fix
Name
tag key removal idempotentcy issue when creating health_check withuse_unique_names
andtags
set (ansible-collections#1253). - s3_bucket - Handle setting of permissions while acl is disabled.(ansible-collections#1168).
- aws_collection_constants - expose various collection related constants
- backup_plan - Manage AWS Backup Plans
- backup_plan_info - Describe AWS Backup Plans
- backup_restore_job_info - List information about backup restore jobs
- backup_selection - Create, delete and modify AWS Backup selection
- backup_selection_info - Describe AWS Backup Selections
- backup_tag - Manage tags on backup plan, backup vault, recovery point
- backup_tag_info - List tags on AWS Backup resources
- backup_vault - Manage AWS Backup Vaults
- backup_vault_info - Describe AWS Backup Vaults
This release contains a number of bugfixes, new features and new modules. This is the last planned minor release prior to the release of version 6.0.0.
- Add connectivity_type to ec2_vpc_nat_gateway module (ansible-collections#1267).
- cloudwatch - Add metrics and extended_statistic keys to cloudwatch module (ansible-collections#1133).
- ec2_ami - add support for BootMode, TpmSupport, UefiData params (ansible-collections#1037).
- ec2_metadata_facts - added support to query instance tags in metadata (ansible-collections#1186).
- kms_key - Add multi_region option to create_key (ansible-collections#1290).
- lambda - add support for function layers when creating or updating lambda function (ansible-collections#1118).
- lambda_event - Added support to set FunctionResponseTypes when creating lambda event source mappings (ansible-collections#1209).
- module_utils/elbv2 - removed compatibility code for
botocore < 1.10.30
(ansible-collections#1477). - rds_cluster - New
engine_mode
parameter (ansible-collections#941). - rds_cluster - add new options (e.g.,
db_cluster_instance_class
,allocated_storage
,storage_type
,iops
) (ansible-collections#1191). - rds_cluster - update list of supported engines with
mysql
andpostgres
(ansible-collections#1191). - s3_bucket - ensure
public_access
is configured before updating policies (ansible-collections#1511).
- cloudwatch_metric_alarm - Don't consider
StateTransitionedTimestamp
in change detection. (ansible-collections#1440). - ec2_instance - Pick up
app_callback -> set_password
rather thanapp_callback -> set_passwd
(ansible-collections#1449). - lambda_info - Do not convert environment variables to snake_case when querying lambda config. (ansible-collections#1457).
- rds_instance - fix type of
promotion_tier
as passed to the APIs (ansible-collections#1475).
- lambda_layer - Creates an AWS Lambda layer or deletes an AWS Lambda layer version
- lambda_layer_info - List lambda layer or lambda layer versions
This minor release brings bugfixes and minor new features.
- ec2_spot_instance - add parameter
terminate_instances
to support terminate instances associated with spot requests. (ansible-collections#1402). - route53_health_check - added support for enabling Latency graphs (MeasureLatency) during creation of a Route53 Health Check. (ansible-collections#1201).
- ec2_metadata_facts - fix
AttributeError
when running the ec2_metadata_facts module on Python 2 managed nodes (ansible-collections#1358). - ec2_vol - handle ec2_vol.tags when the associated instance already exists (ansible-collections#1071).
- rds_instance - Fixed
TypeError
when tagging RDS DB with storage typegp3
(ansible-collections#1437). - route53_info - Add new return key
health_check_observations
for health check operations (ansible-collections#1419). - route53_info - Fixed
Key Error
when getting status or failure_reason of a health check (ansible-collections#1419).
This release brings some minor changes, bugfixes, and deprecated features.
- ec2_instance - more consistently return
instances
information (ansible-collections#964). - ec2_instance - remove unused import (ansible-collections#1350).
- ec2_key - Add unit-tests coverage (ansible-collections#1288).
- ec2_vpc_nat_gateway - ensure allocation_id is defined before potential access (ansible-collections#1350).
- route53_zone - added support for associating multiple VPCs to route53 hosted zones (ansible-collections#1300).
- s3_bucket - add option to support creation of buckets with object lock enabled (ansible-collections#1372).
- support for passing both profile and security tokens through a mix of environment variables and parameters has been deprecated and support will be removed in release 6.0.0. After release 6.0.0 it will only be possible to pass either a profile or security tokens, regardless of mechanism used to pass them. To explicitly block a parameter coming from an environment variable pass an empty string as the parameter value. Support for passing profile and security tokens together was originally deprecated in release 1.2.0, however only partially implemented in release 5.0.0 (ansible-collections#1355).
- cloudtrail - support to disabling encryption using
kms_key_id
(ansible-collections#1384). - ec2_key - fix issue when trying to update existing key pair with the same key material (ansible-collections#1383).
- module_utils/elbv2 - fix change detection by adding default values for
Scope
andSessionTimeout
parameters inauthenticate-oidc
rules (ansible-collections#1270). - module_utils/elbv2 - respect
UseExistingClientSecret
parameter inauthenticate-oidc
rules (ansible-collections#1270). - revert breaking change introduced in 5.2.0 when passing credentials through a mix of environment variables and parameters (ansible-collections#1353).
- s3_bucket - empty bucket policy was throwing a JSONDecodeError - deal with it gracefully instead (ansible-collections#1368)
A minor release containing bugfixes for the ec2_eni_info
module and the aws_rds
inventory plugin, as well as improvements to the rds_instance
module.
- amazon.aws collection - refacterization of code to use argument specification
fallback
when falling back to environment variables for security credentials and AWS connection details (ansible-collections#1174). - rds_instance - Split up the integration test-suite in a series of smaller tests (ansible-collections#1185).
- rds_instance - add support for gp3 storage type (ansible-collections#1266).
- aws_rds - fixes bug in RDS inventory plugin where config file was ignored (ansible-collections#1304).
- lambda - fix flaky integration test which assumes there are no other lambdas in the account (ansible-collections#1277)
This release brings some minor changes, bugfixes, security fixes and deprecated features.
- amazon.aws collection - The
aws_access_key
parameter has been renamed toaccess_key
,access_key
was previously an alias for this parameter andaws_access_key
remains as an alias. This change should have no observable effect for users outside the module/plugin documentation. (ansible-collections#1172). - amazon.aws collection - The
aws_secret_key
parameter has been renamed tosecret_key
,secret_key
was previously an alias for this parameter andaws_secret_key
remains as an alias. This change should have no observable effect for users outside the module/plugin documentation. (ansible-collections#1172). - amazon.aws collection - The
security_token
parameter has been renamed tosession_token
,security_token
was previously an alias for this parameter andsecurity_token
remains as an alias. This change should have no observable effect for users outside the module/plugin documentation. (ansible-collections#1172). - aws_account_attribute lookup plugin - use
missing_required_lib
for more consistent error message when boto3/botocore is not available (ansible-collections#1152). - aws_ec2 inventory - minor linting fixes (ansible-collections#1181).
- aws_ec2 inventory plugin - use
missing_required_lib
for more consistent error message when boto3/botocore is not available (ansible-collections#1152). - aws_rds inventory plugin - use
missing_required_lib
for more consistent error message when boto3/botocore is not available (ansible-collections#1152). - aws_secret lookup plugin - use
missing_required_lib
for more consistent error message when boto3/botocore is not available (ansible-collections#1152). - aws_ssm lookup plugin - use
missing_required_lib
for more consistent error message when boto3/botocore is not available (ansible-collections#1152). - ec2_instance - minor fix for launching an instance in specified AZ when
vpc_subnet_id
is not provided (ansible-collections#1150). - ec2_instance - refacter
tower_callback
code to handle parameter validation as part of the argument specification (ansible-collections#1199). - ec2_instance - the
instance_role
parameter has been renamed toiam_instance_profile
to better reflect what it is,instance_role
remains as an alias (ansible-collections#1151). - ec2_instance - the
tower_callback
parameter has been renamed toaap_callback
,tower_callback
remains as an alias. This change should have no observable effect for users outside the module documentation (ansible-collections#1199). - s3_object_info - minor linting fixes (ansible-collections#1181).
- amazon.aws collection - Support for the
EC2_ACCESS_KEY
environment variable has been deprecated and will be removed in a release after 2024-12-01. Please use theaccess_key
parameter orAWS_ACCESS_KEY_ID
environment variable instead (ansible-collections#1172). - amazon.aws collection - Support for the
EC2_REGION
environment variable has been deprecated and will be removed in a release after 2024-12-01. Please use theregion
parameter orAWS_REGION
environment variable instead (ansible-collections#1172). - amazon.aws collection - Support for the
EC2_SECRET_KEY
environment variable has been deprecated and will be removed in a release after 2024-12-01. Please use thesecret_key
parameter orAWS_SECRET_ACCESS_KEY
environment variable instead (ansible-collections#1172). - amazon.aws collection - Support for the
EC2_SECURITY_TOKEN
environment variable has been deprecated and will be removed in a release after 2024-12-01. Please use thesession_token
parameter orAWS_SESSION_TOKEN
environment variable instead (ansible-collections#1172). - amazon.aws collection - Support for the
EC2_URL
andS3_URL
environment variables has been deprecated and will be removed in a release after 2024-12-01. Please use theendpoint_url
parameter orAWS_ENDPOINT_URL
environment variable instead (ansible-collections#1172). - amazon.aws collection - The
access_token
alias for thesession_token
parameter has been deprecated and will be removed in a release after 2024-12-01. Please use thesession_token
name instead (ansible-collections#1172). - amazon.aws collection - The
access_token
alias for thesession_token
parameter has been deprecated and will be removed in a release after 2024-12-01. Please use thesession_token
name instead (ansible-collections#1172). - amazon.aws collection - The
aws_security_token
alias for thesession_token
parameter has been deprecated and will be removed in a release after 2024-12-01. Please use thesession_token
name instead (ansible-collections#1172). - amazon.aws collection - The
ec2_access_key
alias for theaccess_key
parameter has been deprecated and will be removed in a release after 2024-12-01. Please use theaccess_key
name instead (ansible-collections#1172). - amazon.aws collection - The
ec2_region
alias for theregion
parameter has been deprecated and will be removed in a release after 2024-12-01. Please use theregion
name instead (ansible-collections#1172). - amazon.aws collection - The
ec2_secret_key
alias for thesecret_key
parameter has been deprecated and will be removed in a release after 2024-12-01. Please use thesecret_key
name instead (ansible-collections#1172). - amazon.aws collection - The
security_token
alias for thesession_token
parameter has been deprecated and will be removed in a release after 2024-12-01. Please use thesession_token
name instead (ansible-collections#1172). - ec2_security_group - support for passing nested lists to
cidr_ip
andcidr_ipv6
has been deprecated. Nested lists can be passed through theflatten
filter insteadcidr_ip: '{{ my_cidrs | flatten }}'
(ansible-collections#1213). - module_utils.url -
ansible_collections.amazon.aws.module_utils.urls
is believed to be unused and has been deprecated and will be removed in release 7.0.0.
- ec2_instance - fixes leak of password into logs when using
tower_callback.windows=True
andtower_callback.set_password
(ansible-collections#1199).
- ec2_instance - fixes
Invalid type for parameter TagSpecifications, value None
error when tags aren't specified (ansible-collections#1148). - module_utils.transformations - ensure that
map_complex_type
still returns transformed items if items exists that are not in the type_map (ansible-collections#1163).
- ec2_metadata_facts - fixed
AttributeError
(ansible-collections#1134).
- ec2_vpc_net_info - fix KeyError (ansible-collections#1109).
- ec2_vpc_net_info - remove hardcoded
ClassicLinkEnabled
parameter when request forClassicLinkDnsSupported
failed (ansible-collections#1109). - s3_object - be more defensive when checking the results of
s3.get_bucket_ownership_controls
(ansible-collections#1115).
In this release we promoted many community modules to Red Hat supported status. Those modules have been moved from the commuity.aws to amazon.aws collection. This release also brings some new features, bugfixes, breaking changes and deprecated features. The amazon.aws collection has dropped support for botocore<1.21.0
and boto3<1.18.0
. Support for ansible-core<2.11
has also been dropped.
- autoscaling_group - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.autoscaling_group
. - autoscaling_group_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.autoscaling_group_info
. - cloudtrail - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.cloudtrail
. - cloudwatch_metric_alarm - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.cloudwatch_metric_alarm
. - cloudwatchevent_rule - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.cloudwatchevent_rule
. - cloudwatchlogs_log_group - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.cloudwatchlogs_log_group
. - cloudwatchlogs_log_group_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.cloudwatchlogs_log_group_info
. - cloudwatchlogs_log_group_metric_filter - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.cloudwatchlogs_log_group_metric_filter
. - ec2_eip - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_eip
. - ec2_eip_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_eip_info
. - elb_application_lb - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.elb_application_lb
. - elb_application_lb_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.elb_application_lb_info
. - execute_lambda - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.execute_lambda
. - iam_policy - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.iam_policy
. - iam_policy_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.iam_policy_info
. - iam_user - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.iam_user
. - iam_user_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.iam_user_info
. - kms_key - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.kms_key
. - kms_key_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.kms_key_info
. - lambda - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.lambda
. - lambda_alias - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.lambda_alias
. - lambda_event - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.lambda_event
. - lambda_execute - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.lambda_execute
. - lambda_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.lambda_info
. - lambda_policy - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.lambda_policy
. - rds_cluster - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_cluster
. - rds_cluster_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_cluster_info
. - rds_cluster_snapshot - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_cluster_snapshot
. - rds_instance - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_instance
. - rds_instance_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_instance_info
. - rds_instance_snapshot - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_instance_snapshot
. - rds_option_group - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_option_group
. - rds_option_group_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_option_group_info
. - rds_param_group - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_param_group
. - rds_snapshot_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_snapshot_info
. - rds_subnet_group - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.rds_subnet_group
. - route53 - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.route53
. - route53_health_check - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.route53_health_check
. - route53_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.route53_info
. - route53_zone - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.route53_zone
.
- Ability to record and replay the API interaction of a module for testing purpose. Show case the feature with an example (ansible-collections#998).
- Remove the empty __init__.py file from the distribution, they were not required anymore (ansible-collections#1018).
- amazon.aws modules - the
ec2_url
parameter has been renamed toendpoint_url
for consistency,ec2_url
remains as an alias (ansible-collections#992). - aws_caller_info - minor linting fixes (ansible-collections#968).
- aws_ec2 - introduce the
allow_duplicated_hosts
configuration key (ansible-collections#1026). - cloudformation - avoid catching
Exception
, catch more specific errors instead (ansible-collections#968). - cloudwatch_metric_alarm_info - Added a new module that describes the cloudwatch metric alarms (ansible-collections#988).
- ec2_group - The
ec2_group
module has been renamed toec2_security_group
,ec2_group
remains as an alias (ansible-collections#897). - ec2_group_info - The
ec2_group_info
module has been renamed toec2_security_group_info
,ec2_group_info
remains as an alias (ansible-collections#897). - ec2_instance - Add hibernation_options and volumes->ebs->encrypted keys to support stop-hibernate instance (ansible-collections#972).
- ec2_instance - expanded the use of the automatic retries to
InsuffienctInstanceCapacity
(ansible-collections#1038). - ec2_metadata_facts - avoid catching
Exception
, catch more specific errors instead (ansible-collections#968). - ec2_security_group - minor linting fixes (ansible-collections#968).
- ec2_vpc_endpoint - avoid catching
Exception
, catch more specific errors instead (ansible-collections#968). - ec2_vpc_nat_gateway - minor linting fixes (ansible-collections#968).
- ec2_vpc_net_info - handle classic link check for shared VPCs by throwing a warning instead of an error (ansible-collections#984).
- module_utils/acm - Move to jittered backoff (ansible-collections#946).
- module_utils/elbv2 - ensures that
ip_address_type
is set on creation rather than re-setting it after creation (ansible-collections#940). - module_utils/elbv2 - uses new waiters with retries for temporary failures (ansible-collections#940).
- module_utils/waf - Move to jittered backoff (ansible-collections#946).
- module_utils/waiters - Add waiters to manage eks_nodegroup module (ansible-collections/community.aws#1415).
- s3_bucket -
rgw
was added as an alias for theceph
parameter for consistency with thes3_object
module (ansible-collections#994). - s3_bucket - the
s3_url
parameter was merged into theendpoint_url
parameter,s3_url
remains as an alias (ansible-collections#994). - s3_object - added the
sig_v4
paramater, enbling the user to opt in to signature version 4 for download/get operations. (ansible-collections#1014) - s3_object - minor linting fixes (ansible-collections#968).
- s3_object - the
rgw
parameter was renamed toceph
for consistency with thes3_bucket
module,rgw
remains as an alias (ansible-collections#994). - s3_object - the
s3_url
parameter was merged into theendpoint_url
parameter,s3_url
remains as an alias (ansible-collections#994). - s3_object - updated module to add support for handling file upload to a bucket with ACL disabled (ansible-collections#921).
- s3_object_info - Added a new module that describes S3 Objects (ansible-collections#977).
- amazon.aws collection - Support for ansible-core < 2.11 has been dropped (ansible-collections#1087).
- amazon.aws collection - The amazon.aws collection has dropped support for
botocore<1.21.0
andboto3<1.18.0
. Most modules will continue to work with older versions of the AWS SDK, however compatibility with older versions of the SDK is not guaranteed and will not be tested. When using older versions of the SDK a warning will be emitted by Ansible (ansible-collections#934). - doc_fragments - remove minimum collection requirements from doc_fragments/aws.py and allow pulling those from doc_fragments/aws_boto3.py instead (ansible-collections#985).
- ec2_ami - the default value for
purge_tags
has been changed fromFalse
toTrue
(ansible-collections#916). - ec2_ami - the parameter aliases
DeviceName
,VirtualName
andNoDevice
were previously deprecated and have been removed, please usedevice_name
,virtual_name
andno_device
instead (ansible-collections#913). - ec2_eni_info - the mutual exclusivity of the
eni_id
andfilters
parameters is now enforced, previouslyfilters
would be ignored ifeni_id
was set (ansible-collections#954). - ec2_instance - the default value for
purge_tags
has been changed fromFalse
toTrue
(ansible-collections#916). - ec2_key - the default value for
purge_tags
has been changed fromFalse
toTrue
(ansible-collections#916). - ec2_vol - the default value for
purge_tags
has been changed fromFalse
toTrue
(ansible-collections#916). - ec2_vpc_dhcp_option_info - the parameter aliases
DhcpOptionIds
andDryRun
were previously deprecated and have been removed, please usedhcp_options_ids
andno_device
instead (ansible-collections#913). - ec2_vpc_endpoint - the default value for
purge_tags
has been changed fromFalse
toTrue
(ansible-collections#916). - ec2_vpc_net - the default value for
purge_tags
has been changed fromFalse
toTrue
(ansible-collections#916). - ec2_vpc_route_table - the default value for
purge_tags
has been changed fromFalse
toTrue
(ansible-collections#916). - s3_bucket - the previously deprecated alias
S3_URL
for thes3_url
parameter has been removed. Playbooks shuold be updated to uses3_url
(ansible-collections#908). - s3_object - the previously deprecated alias
S3_URL
for thes3_url
parameter has been removed. Playbooks should be updated to uses3_url
(ansible-collections#908).
- amazon.aws collection - due to the AWS SDKs announcing the end of support for Python less than 3.7 (https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/) support for Python less than 3.7 by this collection has been deprecated and will be removed in a release after 2023-05-31 (ansible-collections#935).
- inventory/aws_ec2 - the
include_extra_api_calls
is now deprecated, its value is silently ignored (ansible-collections#1097).
- aws_ec2 - address a regression introduced in 4.1.0 (ansible-collections#862) that cause the presnse of duplicated hosts in the inventory.
- cloudtrail - Fix key error TagList to TagsList (ansible-collections#1088).
- ec2_instance - Only show the deprecation warning for the default value of
instance_type
whencount
orexact_count
are specified (https://github.com//issues/980). - ec2_metadata_facts - fix
'NoneType' object is not callable
exception when using Ansible 2.13+ (ansible-collections#942). - module_utils/botocore - fix
object has no attribute 'fail'
error in error handling (ansible-collections#1045). - module_utils/elbv2 - fixes
KeyError
when usingUseExistingClientSecret
rather thanClientSecret
(ansible-collections#940). - module_utils/elbv2 - improvements to idempotency when comparing listeners (ansible-collections/community.aws#604).
- s3_object - also use
ignore_nonexistent_bucket
when listing a bucket (ansible-collections#966).
- cloudtrail_info - Gather information about trails in AWS Cloud Trail.
- cloudwatch_metric_alarm_info - Gather information about the alarms for the specified metric
- s3_object_info - Gather information about objects in S3
This release contains a minor bugfix for the ec2_vol
module, some minor work on the ec2_key
module, and various documentation fixes. This is the last planned release of the 4.x series.
- ec2_key - minor refactoring and improved unit-tests coverage (ansible-collections#1288).
- ec2_vol - handle ec2_vol.tags when the associated instance already exists (ansible-collections#1071).
The amazon.aws 4.4.0 release includes a number of security and minor bug fixes.
- ec2_instance - refacter
tower_callback
code to handle parameter validation as part of the argument specification (ansible-collections#1199). - ec2_instance - the
tower_callback
parameter has been renamed toaap_callback
,tower_callback
remains as an alias. This change should have no observable effect for users outside the module documentation (ansible-collections#1199).
- ec2_instance - fixes leak of password into logs when using
tower_callback.windows=True
andtower_callback.set_password
(ansible-collections#1199).
The amazon.aws 4.3.0 release includes a number of minor bug fixes and improvements. Following the release of amazon.aws 5.0.0, backports to the 4.x series will be limited to security issues and bugfixes.
- ec2_instance - expanded the use of the automatic retries to
InsuffienctInstanceCapacity
(ansible-collections#1038).
- ec2_metadata_facts - fix
'NoneType' object is not callable
exception when using Ansible 2.13+ (ansible-collections#942). - module_utils/cloud - Fix
ValueError: ansible_collections.amazon.aws.plugins.module_utils.core.__spec__ is None
error on Ansible 2.9 (ansible-collections#1083).
- ec2_security_group - set type as
list
for rules->group_name as it can accept bothstr
andlist
(ansible-collections#971). - various modules - linting fixups (ansible-collections#953).
- module_utils.cloud - removal of the
CloudRetry.backoff
has been delayed until release 6.0.0. It is recommended to update custom modules to usejittered_backoff
orexponential_backoff
instead (ansible-collections#951).
- ec2_instance - expanded the use of the automatic retries on temporary failures (ansible-collections#927).
- s3_bucket - updated module to enable support for setting S3 Bucket Keys for SSE-KMS (ansible-collections#882).
- amazon.aws collection - due to the AWS SDKs announcing the end of support for Python less than 3.7 (https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/) support for Python less than 3.7 by this collection has been deprecated and will be removed in a release after 2023-05-31 (ansible-collections#935).
- aws_ec2 - ensure the correct number of hosts are returned when tags as hostnames are used (ansible-collections#862).
- elb_application_lb - fix
KeyError
when balancing across two Target Groups (ansible-collections/community.aws#1089). - elb_classic_lb - fix
'NoneType' object has no attribute
bug when creating a new ELB in check mode with a health check (ansible-collections#915). - elb_classic_lb - fix
'NoneType' object has no attribute
bug when creating a new ELB using security group names (ansible-collections#914).
- amazon.aws collection - The amazon.aws collection has dropped support for
botocore<1.20.0
andboto3<1.17.0
. Most modules will continue to work with older versions of the AWS SDK, however compatibility with older versions of the SDK is not guaranteed and will not be tested. When using older versions of the SDK a warning will be emitted by Ansible (ansible-collections#574).
- aws_s3 - Add
validate_bucket_name
option, to control bucket name validation (ansible-collections#615). - aws_s3 - The
aws_s3
module has been renamed tos3_object
(ansible-collections#869). - aws_s3 -
resource_tags
has been added as an alias for thetags
parameter (ansible-collections#845). - ec2_eni - Change parameter
device_index
data type to string when passing todescribe_network_inter
api call (ansible-collections#877). - ec2_eni -
resource_tags
has been added as an alias for thetags
parameter (ansible-collections#845). - ec2_group - add
egress_rules
as an alias forrules_egress
(ansible-collections#878). - ec2_group - add
purge_egress_rules
as an alias forpurge_rules_egress
(ansible-collections#878). - ec2_instance - Add missing
metadata_options
parameters (ansible-collections#715). - ec2_key -
resource_tags
has been added as an alias for thetags
parameter (ansible-collections#845). - ec2_vpc_net - add support for managing VPCs by ID (ansible-collections#848).
- ec2_vpc_subnet - add support for OutpostArn param (ansible-collections#598).
- elb_classic_lb -
resource_tags
has been added as an alias for thetags
parameter (ansible-collections#845). - s3_bucket - Add
validate_bucket_name
option, to control bucket name validation (ansible-collections#615). - s3_bucket -
resource_tags
has been added as an alias for thetags
parameter (ansible-collections#845).
- Tags beginning with
aws:
will not be removed when purging tags, these tags are reserved by Amazon and may not be updated or deleted (ansible-collections#817). - amazon.aws collection - the
profile
parameter is now mutually exclusive with theaws_access_key
,aws_secret_key
andsecurity_token
parameters (ansible-collections#834). - aws_az_info - the module alias
aws_az_facts
was deprecated in Ansible 2.9 and has now been removed (ansible-collections#832). - aws_s3 - the default value for
ensure overwrite
has been changed todifferent
instead ofalways
so that the module is idempotent by default (ansible-collections#811). - aws_ssm - on_denied and on_missing now both default to error, for consistency with both aws_secret and the base Lookup class (ansible-collections#617).
- ec2 - The
ec2
module has been removed in release 4.0.0 and replaced by theec2_instance
module (ansible-collections#630). - ec2_vpc_igw_info - The default value for
convert_tags
has been changed toTrue
(ansible-collections#835). - elb_classic_lb - the
ec2_elb
fact has been removed (ansible-collections#827). - module_utils - Support for the original AWS SDK aka
boto
has been removed, including all relevant helper functions. All modules should now use theboto3
/botocore
AWS SDK (ansible-collections#630)
- aws_s3 - The
S3_URL
alias for the s3_url option has been deprecated and will be removed in release 5.0.0 (ansible-collections/community.aws#795). - ec2_ami - The
DeviceName
alias for the device_name option has been deprecated and will be removed in release 5.0.0 (ansible-collections/community.aws#795). - ec2_ami - The
NoDevice
alias for the no_device option has been deprecated and will be removed in release 5.0.0 (ansible-collections/community.aws#795). - ec2_ami - The
VirtualName
alias for the virtual_name option has been deprecated and will be removed in release 5.0.0 (ansible-collections/community.aws#795). - ec2_ami - the current default value of
False
forpurge_tags
has been deprecated and will be updated in release 5.0.0 toTrue
(ansible-collections#846). - ec2_instance - The default value for
`instance_type`
has been deprecated, in the future release you must set an instance_type or a launch_template (ansible-collections#587). - ec2_instance - the current default value of
False
forpurge_tags
has been deprecated and will be updated in release 5.0.0 toTrue
(ansible-collections#849). - ec2_key - the current default value of
False
forpurge_tags
has been deprecated and will be updated in release 5.0.0 toTrue
(ansible-collections#846). - ec2_vol - the current default value of
False
forpurge_tags
has been deprecated and will be updated in release 5.0.0 toTrue
(ansible-collections#846). - ec2_vpc_dhcp_option_info - The
DhcpOptionIds
alias for the dhcp_option_ids option has been deprecated and will be removed in release 5.0.0 (ansible-collections/community.aws#795). - ec2_vpc_dhcp_option_info - The
DryRun
alias for the dry_run option has been deprecated and will be removed in release 5.0.0 (ansible-collections/community.aws#795). - ec2_vpc_endpoint - the current default value of
False
forpurge_tags
has been deprecated and will be updated in release 5.0.0 toTrue
(ansible-collections#846). - ec2_vpc_net - the current default value of
False
forpurge_tags
has been deprecated and will be updated in release 5.0.0 toTrue
(ansible-collections#848). - ec2_vpc_route_table - the current default value of
False
forpurge_tags
has been deprecated and will be updated in release 5.0.0 toTrue
(ansible-collections#846). - s3_bucket - The
S3_URL
alias for the s3_url option has been deprecated and will be removed in release 5.0.0 (ansible-collections/community.aws#795). - s3_object - Support for creation and deletion of S3 buckets has been deprecated. Please use the
amazon.aws.s3_bucket
module to create and delete buckets (ansible-collections#869).
- cloudformation - the
template_format
option has been removed. It has been ignored by the module since Ansible 2.3 (ansible-collections#833). - ec2_key - the
wait_timeout
option had no effect, was deprecated in release 1.0.0, and has now been removed (ansible-collections#830). - ec2_key - the
wait
option had no effect, was deprecated in release 1.0.0, and has now been removed (ansible-collections#830). - ec2_tag - the previously deprecated state
list
has been removed. To list tags on an EC2 resource theec2_tag_info
module can be used (ansible-collections#829). - ec2_vol - the previously deprecated state
list
has been removed. To list volumes theec2_vol_info
module can be used (ansible-collections#828). - module_utils.batch - the class
ansible_collections.amazon.aws.plugins.module_utils.batch.AWSConnection
has been removed. Please useAnsibleAWSModule.client()
instead (ansible-collections#831).
- ec2_group - fix uncaught exception when running with
--diff
and--check
to create a new security group (ansible-collections#440). - ec2_instance - Add a condition to handle default
`instance_type`
value for fix breaking on instance creation with launch template (ansible-collections#587). - ec2_instance - raise an error when missing permission to stop instance when
state
is set torebooted`
(ansible-collections#671). - ec2_vpc_igw - use gateway_id rather than filters to paginate if possible to fix 'NoneType' object is not subscriptable error (ansible-collections#766).
- ec2_vpc_net - fix a bug where CIDR configuration would be updated in check mode (ansible/ansible#62678).
- ec2_vpc_net - fix a bug where the module would get stuck if DNS options were updated in check mode (ansible/ansible#62677).
- elb_classic_lb - modify the return value of _format_listeners method to resolve a failure creating https listeners (ansible-collections#860).
3.5.1 is a security bugfix release.
- ec2_instance - refacter
tower_callback
code to handle parameter validation as part of the argument specification (ansible-collections#1199). - ec2_instance - the
tower_callback
parameter has been renamed toaap_callback
,tower_callback
remains as an alias. This change should have no observable effect for users outside the module documentation (ansible-collections#1199).
- ec2_instance - fixes leak of password into logs when using
tower_callback.windows=True
andtower_callback.set_password
(ansible-collections#1199).
Following the release of amazon.aws 5.0.0, 3.5.0 is a bugfix release and the final planned release for the 3.x series.
- ec2_security_group - set type as
list
for rules->group_name as it can accept bothstr
andlist
(ansible-collections#971).
- ec2_metadata_facts - fix
'NoneType' object is not callable
exception when using Ansible 2.13+ (ansible-collections#942).
- ec2_instance - expanded the use of the automatic retries on temporary failures (ansible-collections#927).
- elb_application_lb - fix
KeyError
when balancing across two Target Groups (ansible-collections/community.aws#1089). - elb_classic_lb - fix
'NoneType' object has no attribute
bug when creating a new ELB in check mode with a health check (ansible-collections#915). - elb_classic_lb - fix
'NoneType' object has no attribute
bug when creating a new ELB using security group names (ansible-collections#914).
- aws_ec2 inventory - Allow for literal strings in hostname that don't match filter parameters in ec2 describe-instances (ansible-collections#826).
- aws_ssm - Add support for
endpoint
parameter (ansible-collections#837). - module.utils.rds - add retry_codes to get_rds_method_attribute return data to use in call_method and add unit tests (ansible-collections#776).
- module.utils.rds - refactor to utilize get_rds_method_attribute return data (ansible-collections#776).
- module_utils - add new aliases
aws_session_token
andsession_token
to thesecurity_token
parameter to be more in-line with the boto SDK (ansible-collections#631). - module_utils.rds - Add support and unit tests for addition/removal of IAM roles to/from a db instance in module_utils.rds with waiters (ansible-collections#714).
- Include
PSF-license.txt
file forplugins/module_utils/_version.py
. - aws_account_attribute lookup plugin - fix linting errors in documentation data (ansible-collections#701).
- aws_ec2 inventory plugin - fix linting errors in documentation data (ansible-collections#701).
- aws_rds inventory plugin - fix linting errors in documentation data (ansible-collections#701).
- aws_resource_actions callback plugin - fix linting errors in documentation data (ansible-collections#701).
- aws_secret lookup plugin - fix linting errors in documentation data (ansible-collections#701).
- aws_service_ip_ranges lookup plugin - fix linting errors in documentation data (ansible-collections#701).
- aws_ssm - Fix environment variables for client configuration (e.g., AWS_PROFILE, AWS_ACCESS_KEY_ID) (ansible-collections#837).
- aws_ssm lookup plugin - fix linting errors in documentation data (ansible-collections#701).
- ec2_instance - ec2_instance module broken in Python 3.8 - dict keys modified during iteration (ansible-collections#709).
- module.utils.rds - Add waiter for promoting read replica to fix idempotency issue (ansible-collections#714).
- module.utils.rds - Catch InvalidDBSecurityGroupStateFault when modifying a db instance (ansible-collections#776).
- module.utils.s3 - Update validate_bucket_name minimum length to 3 (ansible-collections#802).
- aws_secret - add pagination for
bypath
functionality (ansible-collections#591). - ec2_instance - Fix scope of deprecation warning to not show warning when
state
inabsent
(ansible-collections#719). - ec2_vpc_route_table - support associating internet gateways (ansible-collections#690).
- module_utils.elbv2 - Add support for alb specific attributes and compare_elb_attributes method to support check_mode in module_utils.elbv2 (ansible-collections#696).
- s3_bucket - Add support for enforced bucket owner object ownership (ansible-collections#694).
- aws_ec2 inventory - use the iam_role_arn configuration parameter to assume the role before trying to call DescribeRegions if the regions configuration is not set and AWS credentials provided without enough privilege to perform the DescribeRegions action. (ansible-collections#566).
- ec2_vol - changing a volume from a type that does not support IOPS (like
standard
) to a type that does (likegp3
) fails (ansible-collections#626). - ec2_vpc_igw - fix 'NoneType' object is not subscriptable error (ansible-collections#691).
- ec2_vpc_igw - use paginator for describe internet gateways and add retry to fix NoneType object is not subscriptable error (ansible-collections#695).
- ec2_vpc_net - In check mode, ensure the module does not change the configuration. Handle case when Amazon-provided ipv6 block is enabled, then disabled, then enabled again. Do not disable IPv6 CIDR association (using Amazon pool) if ipv6_cidr property is not present in the task. If the VPC already exists and ipv6_cidr property, retain the current config (ansible-collections#631).
- bump the release version of the amazon.aws collection from 3.1.0 to 3.1.1 because of a bug that occurred while uploading to Galaxy.
- add new parameters hostvars_prefix and hostvars_suffix for inventory plugins aws_ec2 and aws_rds (ansible-collections#535).
- aws_s3 - Add
validate_bucket_name
option, to control bucket name validation (ansible-collections#615). - aws_s3 - add latest choice on
overwrite
parameter to get latest object on S3 (ansible-collections#595). - ec2_vol - add support for OutpostArn param (ansible-collections#597).
- ec2_vol - tag volume on creation (ansible-collections#603).
- ec2_vpc_route_table - add support for IPv6 in creating route tables (ansible-collections#601).
- s3_bucket - Add
validate_bucket_name
option, to control bucket name validation (ansible-collections#615).
- ec2_instance - The default value for
`instance_type`
has been deprecated, in the future release you must set an instance_type or a launch_template (ansible-collections#587).
- Various modules and plugins - use vendored version of
distutils.version
instead of the deprecated Python standard librarydistutils
(ansible-collections#599). - aws_acm - No longer raising ResourceNotFound exception while retrieving ACM certificates.
- aws_s3 - fix exception raised when using module to copy from source to destination and key is missing from source (ansible-collections#602).
- ec2_instance - Add a condition to handle default
`instance_type`
value for fix breaking on instance creation with launch template (ansible-collections#587). - ec2_key - add support for ED25519 key type (ansible-collections#572).
- ec2_vol - Sets the Iops value in req_obj even if the iops value has not changed, to allow modifying volume types that require passing an iops value to boto. (ansible-collections#606)
- elb_classic_lb - handle security_group_ids when providing security_group_names and fix broken tasks in integration test (ansible-collections#592).
- s3_bucket - Enable the management of bucket-level ACLs (ansible-collections#573).
- amazon.aws collection - The amazon.aws collection has dropped support for
botocore<1.19.0
andboto3<1.16.0
. Most modules will continue to work with older versions of the AWS SDK, however compatibility with older versions of the SDK is not guaranteed and will not be tested. When using older versions of the SDK a warning will be emitted by Ansible (ansible-collections#574).
- ec2_instance - add count parameter support (ansible-collections#539).
- aws_caller_facts - Remove deprecated
aws_caller_facts
alias. Please useaws_caller_info
instead. - cloudformation_facts - Remove deprecated
cloudformation_facts
alias. Please usecloudformation_info
instead. - ec2_ami_facts - Remove deprecated
ec2_ami_facts
alias. Please useec2_ami_info
instead. - ec2_eni_facts - Remove deprecated
ec2_eni_facts
alias. Please useec2_eni_info
instead. - ec2_group_facts - Remove deprecated
ec2_group_facts
alias. Please useec2_group_info
instead. - ec2_instance_facts - Remove deprecated
ec2_instance_facts
alias. Please useec2_instance_info
instead. - ec2_snapshot_facts - Remove deprecated
ec2_snapshot_facts
alias. Please useec2_snapshot_info
instead. - ec2_vol_facts - Remove deprecated
ec2_vol_facts
alias. Please useec2_vol_info
instead. - ec2_vpc_dhcp_option_facts - Remove deprecated
ec2_vpc_dhcp_option_facts
alias. Please useec2_vpc_dhcp_option_info
instead. - ec2_vpc_endpoint_facts - Remove deprecated
ec2_vpc_endpoint_facts
alias. Please useec2_vpc_endpoint_info
instead. - ec2_vpc_igw_facts - Remove deprecated
ec2_vpc_igw_facts
alias. Please useec2_vpc_igw_info
instead. - ec2_vpc_nat_gateway_facts - Remove deprecated
ec2_vpc_nat_gateway_facts
alias. Please useec2_vpc_nat_gateway_info
instead. - ec2_vpc_net_facts - Remove deprecated
ec2_vpc_net_facts
alias. Please useec2_vpc_net_info
instead. - ec2_vpc_route_table_facts - Remove deprecated
ec2_vpc_route_table_facts
alias. Please useec2_vpc_route_table_info
instead. - ec2_vpc_subnet_facts - Remove deprecated
ec2_vpc_subnet_facts
alias. Please useec2_vpc_subnet_info
instead.
- module_utils - support for the original AWS SDK
boto
has been deprecated in favour of theboto3
/botocore
SDK. Allboto
based modules have either been deprecated or migrated tobotocore
, and the remaining support code in module_utils will be removed in release 4.0.0 of the amazon.aws collection. Any modules outside of the amazon.aws and community.aws collections based on theboto
library will need to be migrated to theboto3
/botocore
libraries (ansible-collections#575).
- ec2_instance - add count parameter support (ansible-collections#539).
- aws_ec2 inventory - use the iam_role_arn configuration parameter to assume the role before trying to call DescribeRegions if the regions configuration is not set and AWS credentials provided without enough privilege to perform the DescribeRegions action. (ansible-collections#566).
- ec2_vol - Sets the Iops value in req_obj even if the iops value has not changed, to allow modifying volume types that require passing an iops value to boto. (ansible-collections#606)
- ec2_vol - changing a volume from a type that does not support IOPS (like
standard
) to a type that does (likegp3
) fails (ansible-collections#626). - ec2_vpc_igw - fix 'NoneType' object is not subscriptable error (ansible-collections#691).
- ec2_vpc_igw - use paginator for describe internet gateways and add retry to fix NoneType object is not subscriptable error (ansible-collections#695).
- elb_classic_lb - handle security_group_ids when providing security_group_names and fix broken tasks in integration test (ansible-collections#592).
- aws_service_ip_ranges - add new option
ipv6_prefixes
to get only IPV6 addresses and prefixes for Amazon services (ansible-collections#430) - cloudformation - fix detection when there are no changes. Sometimes when there are no changes, the change set will have a status FAILED with StatusReason No updates are to be performed (ansible-collections#507).
- ec2_ami - add check_mode support (ansible-collections#516).
- ec2_ami - use module_util helper for tagging AMIs (ansible-collections#520).
- ec2_ami - when creating an AMI from an instance pass the tagging options at creation time (ansible-collections#551).
- ec2_elb_lb - module renamed to
elb_classic_lb
(ansible-collections#377). - ec2_eni - add check mode support (ansible-collections#534).
- ec2_eni - use module_util helper for tagging ENIs (ansible-collections#522).
- ec2_instance - use module_util helpers for tagging (ansible-collections#527).
- ec2_key - add support for tagging key pairs (ansible-collections#548).
- ec2_snapshot - add check_mode support (ansible-collections#512).
- ec2_vol - add check_mode support (ansible-collections#509).
- ec2_vpc_dhcp_option - use module_util helpers for tagging (ansible-collections#531).
- ec2_vpc_endpoint - added
vpc_endpoint_security_groups
parameter to support defining the security group attached to an interface endpoint (ansible-collections#544). - ec2_vpc_endpoint - added
vpc_endpoint_subnets
parameter to support defining the subnet attached to an interface or gateway endpoint (ansible-collections#544). - ec2_vpc_endpoint - use module_util helper for tagging (ansible-collections#525).
- ec2_vpc_endpoint - use module_util helpers for tagging (ansible-collections#531).
- ec2_vpc_igw - use module_util helper for tagging (ansible-collections#523).
- ec2_vpc_igw - use module_util helpers for tagging (ansible-collections#531).
- ec2_vpc_nat_gateway - use module_util helper for tagging (ansible-collections#524).
- ec2_vpc_nat_gateway - use module_util helpers for tagging (ansible-collections#531).
- elb_classic_lb - added retries on common AWS temporary API failures (ansible-collections#377).
- elb_classic_lb - added support for check_mode (ansible-collections#377).
- elb_classic_lb - added support for wait during creation (ansible-collections#377).
- elb_classic_lb - added support for wait during instance addition and removal (ansible-collections#377).
- elb_classic_lb - migrated to boto3 SDK (ansible-collections#377).
- elb_classic_lb - various error messages changed due to refactor (ansible-collections#377).
- module_utils.ec2 - moved generic tagging helpers into module_utils.tagging (ansible-collections#527).
- module_utils.tagging - add new helper to generate TagSpecification lists (ansible-collections#527).
- ec2_classic_lb - setting of the
ec2_elb
fact has been deprecated and will be removed in release 4.0.0 of the collection. The module now returnselb
which can be accessed using the register keyword (ansible-collections#552).
- AWS action group - added missing
ec2_instance_facts
entry (ansible-collections#557) - ec2_ami - fix problem when creating an AMI from an instance with ephemeral volumes (ansible-collections#511).
- ec2_instance - ensure that ec2_instance falls back to the tag(Name) parameter when no filter and no name parameter is passed (ansible-collections#526).
- s3_bucket - update error handling to better support DigitalOcean Space (ansible-collections#508).
- amazon.aws collection - Due to the AWS SDKs announcing the end of support for Python less than 3.6 (https://boto3.amazonaws.com/v1/documentation/api/1.17.64/guide/migrationpy3.html) this collection now requires Python 3.6+ (ansible-collections#298).
- amazon.aws collection - The amazon.aws collection has dropped support for
botocore<1.18.0
andboto3<1.15.0
. Most modules will continue to work with older versions of the AWS SDK, however compatibility with older versions of the SDK is not guaranteed and will not be tested. When using older versions of the SDK a warning will be emitted by Ansible (ansible-collections#502). - ec2_instance - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_instance
. - ec2_instance_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_instance_info
. - ec2_vpc_endpoint - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_endpoint
. - ec2_vpc_endpoint_facts - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_endpoint_info
. - ec2_vpc_endpoint_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_endpoint_info
. - ec2_vpc_endpoint_service_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_endpoint_service_info
. - ec2_vpc_igw - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_igw
. - ec2_vpc_igw_facts - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_igw_facts
. - ec2_vpc_igw_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_igw_info
. - ec2_vpc_nat_gateway - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_nat_gateway
. - ec2_vpc_nat_gateway_facts - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_nat_gateway_info
. - ec2_vpc_nat_gateway_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_nat_gateway_info
. - ec2_vpc_route_table - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_route_table
. - ec2_vpc_route_table_facts - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_route_table_facts
. - ec2_vpc_route_table_info - The module has been migrated from the
community.aws
collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to useamazon.aws.ec2_vpc_route_table_info
.
- aws_ec2 - use a generator rather than list comprehension (ansible-collections#465).
- aws_s3 - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- aws_s3 - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- aws_s3 - add
tags
andpurge_tags
features for an S3 object (ansible-collections#335) - aws_s3 - new mode to copy existing on another bucket (ansible-collections#359).
- aws_secret - added support for gracefully handling deleted secrets (ansible-collections#455).
- aws_ssm - add
on_missing
andon_denied
option (ansible-collections#370). - cloudformation - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- cloudformation - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- ec2_ami - ensure tags are propagated to the snapshot(s) when creating an AMI (ansible-collections#437).
- ec2_eni - fix idempotency when
security_groups
attribute is specified (ansible-collections#337). - ec2_eni - timeout increased when waiting for ENIs to finish detaching (ansible-collections#501).
- ec2_group - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- ec2_group - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- ec2_group - use a generator rather than list comprehension (ansible-collections#465).
- ec2_group - use system ipaddress module, available with Python >= 3.3, instead of vendored copy (ansible-collections#461).
- ec2_instance - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- ec2_instance - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- ec2_instance - add
throughput
parameter for gp3 volume types (ansible-collections#433). - ec2_instance - add support for controlling metadata options (ansible-collections#414).
- ec2_instance - remove unnecessary raise when exiting with a failure (ansible-collections#460).
- ec2_instance_info - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- ec2_instance_info - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- ec2_snapshot - migrated to use the boto3 python library (ansible-collections#356).
- ec2_spot_instance_info - Added a new module that describes the specified Spot Instance requests (ansible-collections#487).
- ec2_vol - add parameter
multi_attach
to support Multi-Attach on volume creation/update (ansible-collections#362). - ec2_vol - relax the boto3/botocore requirements and only require botocore 1.19.27 for modifying the
throughput
parameter (ansible-collections#346). - ec2_vpc_dhcp_option - Now also returns a boto3-style resource description in the
dhcp_options
result key. This includes any tags for thedhcp_options_id
and has the same format as the current return value ofec2_vpc_dhcp_option_info
. (ansible-collections#252) - ec2_vpc_dhcp_option_info - Now also returns a user-friendly
dhcp_config
key that matches the historicalnew_config
key from ec2_vpc_dhcp_option, and alleviates the need to useitems2dict(key_name='key', value_name='values')
when parsing the output of the module. (ansible-collections#252) - ec2_vpc_subnet - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- ec2_vpc_subnet - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- integration tests - remove dependency with collection
community.general
(ansible-collections#361). - module_utils/waiter - add RDS cluster
cluster_available
waiter (ansible-collections#464). - module_utils/waiter - add RDS cluster
cluster_deleted
waiter (ansible-collections#464). - module_utils/waiter - add Route53
resource_record_sets_changed
waiter (ansible-collections#350). - s3_bucket - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- s3_bucket - Tests for compatibility with older versions of the AWS SDKs have been removed (ansible-collections#442).
- s3_bucket - add new option
object_ownership
to configure object ownership (ansible-collections#311) - s3_bucket - updated to use HeadBucket instead of ListBucket when testing for bucket existence (ansible-collections#357).
- ec2_instance - instance wait for state behaviour has changed. If plays require the old behavior of waiting for the instance monitoring status to become
OK
when launching a new instance, the action will need to specifystate: started
(ansible-collections#481). - ec2_snapshot - support for waiting indefinitely has been dropped, new default is 10 minutes (ansible-collections#356).
- ec2_vol_info - return
attachment_set
is now a list of attachments with Multi-Attach support on disk. (ansible-collections#362). - ec2_vpc_dhcp_option - The module has been refactored to use boto3. Keys and value types returned by the module are now consistent, which is a change from the previous behaviour. A
purge_tags
option has been added, which defaults toTrue
. (ansible-collections#252) - ec2_vpc_dhcp_option_info - Now preserves case for tag keys in return value. (ansible-collections#252)
- module_utils.core - The boto3 switch has been removed from the region parameter (ansible-collections#287).
- module_utils/compat - vendored copy of ipaddress removed (ansible-collections#461).
- module_utils/core - updated the
scrub_none_parameters
function so thatdescend_into_lists
is set toTrue
by default (ansible-collections#297).
- ec2 - the boto based
ec2
module has been deprecated in favour of the boto3 basedec2_instance
module. Theec2
module will be removed in release 4.0.0 (ansible-collections#424). - ec2_vpc_dhcp_option - The
new_config
return key has been deprecated and will be removed in a future release. It will be replaced bydhcp_config
. Both values are returned in the interim. (ansible-collections#252)
- aws_s3 - Fix upload permission when an S3 bucket ACL policy requires a particular canned ACL (ansible-collections#318)
- ec2_ami - Fix ami issue when creating an ami with no_device parameter (ansible-collections#386)
- ec2_instance -
ec2_instance
was waiting on EC2 instance monitoring status to beOK
when launching a new instance. This could cause a play to wait multiple minutes for AWS's monitoring to complete status checks (ansible-collections#481). - ec2_snapshot - Fix snapshot issue when capturing a snapshot of a volume without tags (ansible-collections#383)
- ec2_vol - Fixes
changed
status whenmodify_volume
is used, but no new disk is being attached. The module incorrectly reported that no change had occurred even when disks had been modified (iops, throughput, type, etc.). (ansible-collections#482). - ec2_vol - fix iops setting and enforce iops/throughput parameters usage (ansible-collections#334)
- inventory -
include_filters
won't be ignored anymore iffilters
is not set (ansible-collections#457). - s3_bucket - Fix error handling when attempting to set a feature that is not implemented (ansible-collections#391).
- s3_bucket - Gracefully handle
NotImplemented
exceptions when fetching encryption settings (ansible-collections#390).
- ec2_spot_instance - request, stop, reboot or cancel spot instance
- ec2_spot_instance_info - Gather information about ec2 spot instance requests
- AWS inventory plugins - use shared HAS_BOTO3 helper rather than copying code (ansible-collections#288).
- AWS lookup plugins - use shared HAS_BOTO3 helper rather than copying code (ansible-collections#288).
- aws_account_attribute - add retries on common AWS failures (ansible-collections#295).
- aws_ec2 inventory - expose a new configuration key
use_contrib_script_compatible_ec2_tag_keys
to reproduce a behavior of the oldec2.py
inventory script. With this option enabled, each tag is exposed using aec2_tag_TAGNAME
key (ansible-collections#331). - aws_ec2 inventory - expose to new keys called
include_filters
andexclude_filters
to give the user the ability to compose an inventory with multiple queries (ansible-collections#328). - aws_ec2 inventory plugin - Added support for using Jinja2 templates in the authentication fields (ansible-collections#57).
- cloudformation - added support for StackPolicyDuringUpdateBody (ansible-collections#155).
- ec2_metadata_facts - add support for IMDSv2 (ansible-collections#43).
- ec2_snapshot_info - add the
max_results
along withnext_token_id
option (ansible-collections#321). - ec2_tag - use common code for tagging resources (ansible-collections#309).
- ec2_tag_info - use common code for tagging resources (ansible-collections#309).
- ec2_vol - add the
purge_tags
option (ansible-collections#242). - ec2_vol - use common code for tagging resources (ansible-collections#309).
- ec2_vpc_net - use a custom waiter which can handle API rate limiting (ansible-collections#270).
- ec2_vpc_subnet - use AWSRetry decorator to more consistently handle API rate limiting (ansible-collections#270).
- ec2_vpc_subnet - use common code for tagging resources (ansible-collections#309).
- module_utils.cloudfront_facts - linting cleanup (ansible-collections#291).
- module_utils.ec2 - linting cleanup (ansible-collections#291).
- module_utils/core - add a helper function
normalize_boto3_result
(ansible-collections#271). - module_utils/core - add parameter
descend_into_lists
toscrub_none_parameters
helper function (ansible-collections#262). - module_utils/ec2 - added additional helper functions for tagging EC2 resources (ansible-collections#309).
- sanity tests - add ignore.txt for 2.12 (ansible-collections#315).
- ec2_vol - create or update now preserves the existing tags, including Name (ansible-collections#229)
- ec2_vol - fix exception when platform information isn't available (ansible-collections#305).
- module_utils - the ipaddress module utility has been vendored into this collection. This eliminates the collection dependency on ansible.netcommon (which had removed the library in its 2.0 release). The ipaddress library is provided for internal use in this collection only. (ansible-collections#273)-
- aws_ec2 - Add hostname options concatenation
- aws_ec2 inventory plugin - avoid a superfluous import of
ansible.utils.display.Display
(ansible-collections#226). - aws_ec2 module - Replace inverse aws instance-state-name filters !terminated, !shutting-down in favor of postive filters pending, running, stopping, stopped. Issue 235. (ansible-collections#237)
- aws_secret - add
bypath
functionality (ansible-collections#192). - ec2_key - add AWSRetry decorator to automatically retry on common temporary failures (ansible-collections#213).
- ec2_vol - Add support for gp3 volumes and support for modifying existing volumes (ansible-collections#55).
- module_utils/elbv2 - add logic to compare_rules to suit Values list nested within dicts unique to each field type. Fixes issue (ansible-collections#187)
- various AWS plugins and module_utils - Cleanup unused imports (ansible-collections#217).
- ec2_vol - a creation or update now returns a structure with an up to date list of tags (ansible-collections#241).
- aws_caller_info - add AWSRetry decorator to automatically retry on common temporary failures (ansible-collections#208)
- aws_s3 - Add support for uploading templated content (ansible-collections#20).
- aws_secret - add
on_missing
andon_denied
option (ansible-collections#122). - ec2_ami - Add retries for ratelimiting related errors (ansible-collections#195).
- ec2_ami - fixed and streamlined
max_attempts
logic when waiting for AMI creation to finish (ansible-collections#194). - ec2_ami - increased default
wait_timeout
to 1200 seconds (ansible-collections#194). - ec2_ami_info - Add retries for ratelimiting related errors (ansible-collections#195).
- ec2_eni - Improve reliability of the module by adding waiters and performing lookups by ENI ID rather than repeated searches (ansible-collections#180).
- ec2_eni_info - Improve reliability of the module by adding waiters and performing lookups by ENI ID rather than repeated searches (ansible-collections#180).
- ec2_group - add AWSRetry decorator to automatically retry on common temporary failures (ansible-collections#207)
- ec2_group_info - add AWSRetry decorator to automatically retry on common temporary failures (ansible-collections#207)
- ec2_snapshot_info - add AWSRetry decorator to automatically retry on common temporary failures (ansible-collections#208)
- ec2_vol - Add automatic retries on AWS rate limit errors (ansible-collections#199).
- ec2_vol - ported ec2_vol to use boto3 (ansible-collections#53).
- ec2_vpc_dhcp_option_info - add AWSRetry decorator to automatically retry on common temporary failures (ansible-collections#208)
- module_utils/core - add helper function
scrub_none_parameters
to remove params set toNone
(ansible-collections/community.aws#251). - module_utils/waiters - Add retries to our waiters for the same failure codes that we retry with AWSRetry (ansible-collections#185)
- s3_bucket - Add support for managing the
public_access
settings (ansible-collections#171).
- ec2 - Code fix so module can create ec2 instances with
ec2_volume_iops
option (ansible-collections#177). - ec2 - ignore terminated instances and instances that are shutting down when starting and stopping (ansible-collections#146).
- ec2_group - Fixes error handling during tagging failures (ansible-collections#210).
- ec2_group_info - Code fix so module works with Python 3.8 (make dict immutable in loop) (ansible-collections#181)
- ec2_eni - Add support for tagging.
- ec2_eni - Port ec2_eni module to boto3 and add an integration test suite.
- ec2_eni_info - Add retries on transient AWS failures.
- ec2_eni_info - Add support for providing an ENI ID.
- ec2 module_utils - Update
ec2_connect
(boto2) behaviour so thatec2_url
overridesregion
. - module_utils.core - Support passing arbitrary extra keys to fail_json_aws, matching capabilities of fail_json.
- All AWS Modules -
aws_access_key
,aws_secret_key
andsecurity_token
will be made mutually exclusive withprofile
after 2022-06-01.
- ec2 module_utils - Ensure boto3 verify parameter isn't overridden by setting a profile (ansible-collections#129)
- s3_bucket - Ceph compatibility: treat error code NoSuchTagSetError used by Ceph synonymously to NoSuchTagSet used by AWS
- ec2 module_utils - The
AWSRetry
decorator no longer catchesNotFound
exceptions by default.NotFound
exceptions need to be explicitly added usingcatch_extra_error_codes
. Some AWS modules may see an increase in transient failures due to AWS''s eventual consistency model.
- Add
aws_security_token
,aws_endpoint_url
andendpoint_url
aliases to improve AWS module parameter naming consistency. - Add support for
aws_ca_bundle
to boto3 based AWS modules - Add support for configuring boto3 profiles using
AWS_PROFILE
andAWS_DEFAULT_PROFILE
- Added check_mode support to aws_az_info
- Added check_mode support to ec2_eni_info
- Added check_mode support to ec2_snapshot_info
- ansible_dict_to_boto3_filter_list - convert integers and bools to strings before using them in filters.
- aws_direct_connect_virtual_interface - add direct_connect_gateway_id parameter. This field is only applicable in private VIF cases (public=False) and is mutually exclusive to virtual_gateway_id.
- cloudformation - Return change_set_id in the cloudformation output if a change set was created.
- ec2 - deprecate allowing both group and group_id - currently we ignore group_id if both are passed.
- ec2_ami_info - allow integer and bool values for filtering images (ansible/ansible#43570).
- ec2_asg - Add support for Max Instance Lifetime
- ec2_asg - Add the ability to use mixed_instance_policy in launch template driven autoscaling groups
- ec2_asg - Migrated to AnsibleAWSModule
- ec2_placement_group - make
name
a required field. - ec2_vol_info - Code cleanup and use of the AWSRetry decorator to improve stability
- ec2_vpc_net - Enable IPv6 CIDR assignment
- aws_s3 - can now delete versioned buckets even when they are not empty - set mode to delete to delete a versioned bucket and everything in it.
- cloudformation - The
template_format
option had no effect since Ansible 2.3 and will be removed after 2022-06-01 - cloudformation - the
template_format
option has been deprecated and will be removed in a later release. It has been ignored by the module since Ansible 2.3. - data_pipeline - The
version
option had no effect and will be removed in after 2022-06-01 - ec2 - in a later release, the
group
andgroup_id
options will become mutually exclusive. Currentlygroup_id
is ignored if you pass both. - ec2_ami - The
no_device
aliasNoDevice
has been deprecated and will be removed after 2022-06-01 - ec2_ami - The
virtual_name
aliasVirtualName
has been deprecated and will be removed after 2022-06-01 - ec2_eip - The
wait_timeout
option had no effect and will be removed after 2022-06-01 - ec2_key - The
wait_timeout
option had no effect and will be removed after 2022-06-01 - ec2_key - The
wait
option had no effect and will be removed after 2022-06-01 - ec2_key - the
wait_timeout
option has been deprecated and will be removed in a later release. It has had no effect since Ansible 2.5. - ec2_key - the
wait
option has been deprecated and will be removed in a later release. It has had no effect since Ansible 2.5. - ec2_lc - The
associate_public_ip_address
option had no effect and will be removed after 2022-06-01 - ec2_tag - deprecate the
list
option in favor of ec2_tag_info - ec2_tag - support for
list
as a state has been deprecated and will be removed in a later release. Theec2_tag_info
can be used to fetch the tags on an EC2 resource.
- aws_ec2 - fix idempotency when managing tags
- aws_ec2 - fix idempotency when metrics are enable
- aws_s3 - Delete objects and delete markers so versioned buckets can be removed.
- aws_s3 - Try to wait for the bucket to exist before setting the access control list.
- cloudformation_info - Fix a KeyError returning information about the stack(s).
- ec2_asg - Ensure
wait
is honored during replace operations - ec2_launch_template - Update output to include latest_version and default_version, matching the documentation
- ec2_transit_gateway - Use AWSRetry before ClientError is handled when describing transit gateways
- ec2_transit_gateway - fixed issue where auto_attach set to yes was not being honored (ansible/ansible#61907)
- ec2_vol - fix filtering bug
- s3_bucket - Accept XNotImplemented response to support NetApp StorageGRID.