Skip to content

Releases: ansible-collections/amazon.aws

amazon.aws 3.4.0

10 Aug 18:23
7d590fe
Compare
Choose a tag to compare

Minor Changes

  • ec2_instance - expanded the use of the automatic retries on temporary failures (#927).

Bugfixes

  • 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 (#915).
  • elb_classic_lb - fix 'NoneType' object has no attribute bug when creating a new ELB using security group names (#914).

amazon.aws 4.0.0

10 Aug 18:25
9c270f5
Compare
Choose a tag to compare

Major Changes

  • amazon.aws collection - The amazon.aws collection has dropped support for botocore<1.20.0 and boto3<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 (#574).

Minor Changes

  • aws_s3 - Add validate_bucket_name option, to control bucket name validation (#615).
  • aws_s3 - The aws_s3 module has been renamed to s3_object (#869).
  • aws_s3 - resource_tags has been added as an alias for the tags parameter (#845).
  • ec2_eni - Change parameter device_index data type to string when passing to describe_network_inter api call (#877).
  • ec2_eni - resource_tags has been added as an alias for the tags parameter (#845).
  • ec2_group - add egress_rules as an alias for rules_egress (#878).
  • ec2_group - add purge_egress_rules as an alias for purge_rules_egress (#878).
  • ec2_instance - Add missing metadata_options parameters (#715).
  • ec2_key - resource_tags has been added as an alias for the tags parameter (#845).
  • ec2_vpc_net - add support for managing VPCs by ID (#848).
  • ec2_vpc_subnet - add support for OutpostArn param (#598).
  • elb_classic_lb - resource_tags has been added as an alias for the tags parameter (#845).
  • s3_bucket - Add validate_bucket_name option, to control bucket name validation (#615).
  • s3_bucket - resource_tags has been added as an alias for the tags parameter (#845).

Breaking Changes / Porting Guide

  • Tags beginning with aws: will not be removed when purging tags, these tags are reserved by Amazon and may not be updated or deleted (#817).
  • amazon.aws collection - the profile parameter is now mutually exclusive with the aws_access_key, aws_secret_key and security_token parameters (#834).
  • aws_az_info - the module alias aws_az_facts was deprecated in Ansible 2.9 and has now been removed (#832).
  • aws_s3 - the default value for ensure overwrite has been changed to different instead of always so that the module is idempotent by default (#811).
  • aws_ssm - on_denied and on_missing now both default to error, for consistency with both aws_secret and the base Lookup class (#617).
  • ec2 - The ec2 module has been removed in release 4.0.0 and replaced by the ec2_instance module (#630).
  • ec2_vpc_igw_info - The default value for convert_tags has been changed to True (#835).
  • elb_classic_lb - the ec2_elb fact has been removed (#827).
  • module_utils - Support for the original AWS SDK aka boto has been removed, including all relevant helper functions. All modules should now use the boto3/botocore AWS SDK (#630)

Deprecated Features

  • 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 for purge_tags has been deprecated and will be updated in release 5.0.0 to True (#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 (#587).
  • ec2_instance - the current default value of False for purge_tags has been deprecated and will be updated in release 5.0.0 to True (#849).
  • ec2_key - the current default value of False for purge_tags has been deprecated and will be updated in release 5.0.0 to True (#846).
  • ec2_vol - the current default value of False for purge_tags has been deprecated and will be updated in release 5.0.0 to True (#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 for purge_tags has been deprecated and will be updated in release 5.0.0 to True (#846).
  • ec2_vpc_net - the current default value of False for purge_tags has been deprecated and will be updated in release 5.0.0 to True (#848).
  • ec2_vpc_route_table - the current default value of False for purge_tags has been deprecated and will be updated in release 5.0.0 to True (#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 (#869).

Removed Features (previously deprecated)

  • cloudformation - the template_format option has been removed. It has been ignored by the module since Ansible 2.3 (#833).
  • ec2_key - the wait_timeout option had no effect, was deprecated in release 1.0.0, and has now been removed (#830).
  • ec2_key - the wait option had no effect, was deprecated in release 1.0.0, and has now been removed (#830).
  • ec2_tag - the previously deprecated state list has been removed. To list tags on an EC2 resource the ec2_tag_info module can be used (#829).
  • ec2_vol - the previously deprecated state list has been removed. To list volumes the ec2_vol_info module can be used (#828).
  • module_utils.batch - the class ansible_collections.amazon.aws.plugins.module_utils.batch.AWSConnection has been removed. Please use AnsibleAWSModule.client() instead (#831).

Bugfixes

  • ec2_group - fix uncaught exception when running with --diff and --check to create a new security group (#440).
  • ec2_instance - Add a condition to handle default `instance_type` value for fix breaking on instance creation with launch template (#587).
  • ec2_instance - raise an error when missing permission to stop instance when state is set to rebooted` (#671).
  • ec2_vpc_igw - use gateway_id rather than filters to paginate if possible to fix 'NoneType' object is not subscriptable error (#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 (#860).

amazon.aws 3.3.1

11 Aug 08:17
e59fa6f
Compare
Choose a tag to compare

Release Summary

Various minor documentation fixes.

amazon.aws 3.3.0

10 Aug 18:30
664da4c
Compare
Choose a tag to compare

Minor Changes

  • aws_ec2 inventory - Allow for literal strings in hostname that don't match filter parameters in ec2 describe-instances (#826).
  • aws_ssm - Add support for endpoint parameter (#837).
  • module.utils.rds - add retry_codes to get_rds_method_attribute return data to use in call_method and add unit tests (#776).
  • module.utils.rds - refactor to utilize get_rds_method_attribute return data (#776).
  • module_utils - add new aliases aws_session_token and session_token to the security_token parameter to be more in-line with the boto SDK (#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 (#714).

Bugfixes

  • Include PSF-license.txt file for plugins/module_utils/_version.py.
  • aws_account_attribute lookup plugin - fix linting errors in documentation data (#701).
  • aws_ec2 inventory plugin - fix linting errors in documentation data (#701).
  • aws_rds inventory plugin - fix linting errors in documentation data (#701).
  • aws_resource_actions callback plugin - fix linting errors in documentation data (#701).
  • aws_secret lookup plugin - fix linting errors in documentation data (#701).
  • aws_service_ip_ranges lookup plugin - fix linting errors in documentation data (#701).
  • aws_ssm - Fix environment variables for client configuration (e.g., AWS_PROFILE, AWS_ACCESS_KEY_ID) (#837).
  • aws_ssm lookup plugin - fix linting errors in documentation data (#701).
  • ec2_instance - ec2_instance module broken in Python 3.8 - dict keys modified during iteration (#709).
  • module.utils.rds - Add waiter for promoting read replica to fix idempotency issue (#714).
  • module.utils.rds - Catch InvalidDBSecurityGroupStateFault when modifying a db instance (#776).
  • module.utils.s3 - Update validate_bucket_name minimum length to 3 (#802).

amazon.aws 2.3.0

11 Aug 08:29
d30c7c6
Compare
Choose a tag to compare

Bugfixes

  • aws_account_attribute lookup plugin - fix linting errors in documentation data (#701).
  • aws_ec2 inventory plugin - fix linting errors in documentation data (#701).
  • aws_rds inventory plugin - fix linting errors in documentation data (#701).
  • aws_resource_actions callback plugin - fix linting errors in documentation data (#701).
  • aws_secret lookup plugin - fix linting errors in documentation data (#701).
  • aws_service_ip_ranges lookup plugin - fix linting errors in documentation data (#701).
  • aws_ssm lookup plugin - fix linting errors in documentation data (#701).
  • ec2_instance - ec2_instance module broken in Python 3.8 - dict keys modified during iteration (#709).
  • module.utils.s3 - Update validate_bucket_name minimum length to 3 (#802).

amazon.aws 3.2.0

10 Aug 18:35
a27a3fa
Compare
Choose a tag to compare

Minor Changes

  • aws_secret - add pagination for bypath functionality (#591).
  • ec2_instance - Fix scope of deprecation warning to not show warning when state in absent (#719).
  • ec2_vpc_route_table - support associating internet gateways (#690).
  • module_utils.elbv2 - Add support for alb specific attributes and compare_elb_attributes method to support check_mode in module_utils.elbv2 (#696).
  • s3_bucket - Add support for enforced bucket owner object ownership (#694).

Bugfixes

  • 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. (#566).
  • ec2_vol - changing a volume from a type that does not support IOPS (like standard) to a type that does (like gp3) fails (#626).
  • ec2_vpc_igw - fix 'NoneType' object is not subscriptable error (#691).
  • ec2_vpc_igw - use paginator for describe internet gateways and add retry to fix NoneType object is not subscriptable error (#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 (#631).

amazon.aws 2.2.0

10 Aug 18:36
8d35ae4
Compare
Choose a tag to compare

Minor Changes

  • ec2_instance - add count parameter support (#539).

Bugfixes

  • 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. (#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. (#606)
  • ec2_vol - changing a volume from a type that does not support IOPS (like standard) to a type that does (like gp3) fails (#626).
  • ec2_vpc_igw - fix 'NoneType' object is not subscriptable error (#691).
  • ec2_vpc_igw - use paginator for describe internet gateways and add retry to fix NoneType object is not subscriptable error (#695).
  • elb_classic_lb - handle security_group_ids when providing security_group_names and fix broken tasks in integration test (#592).

amazon.aws 3.1.1

10 Aug 18:38
077e0ee
Compare
Choose a tag to compare

Minor Changes

  • 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.

amazon.aws 3.1.0

10 Aug 18:39
fe6f5ef
Compare
Choose a tag to compare

Minor Changes

  • add new parameters hostvars_prefix and hostvars_suffix for inventory plugins aws_ec2 and aws_rds (#535).
  • aws_s3 - Add validate_bucket_name option, to control bucket name validation (#615).
  • aws_s3 - add latest choice on overwrite parameter to get latest object on S3 (#595).
  • ec2_vol - add support for OutpostArn param (#597).
  • ec2_vol - tag volume on creation (#603).
  • ec2_vpc_route_table - add support for IPv6 in creating route tables (#601).
  • s3_bucket - Add validate_bucket_name option, to control bucket name validation (#615).

Deprecated Features

  • 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 (#587).

Bugfixes

  • Various modules and plugins - use vendored version of distutils.version instead of the deprecated Python standard library distutils (#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 (#602).
  • ec2_instance - Add a condition to handle default `instance_type` value for fix breaking on instance creation with launch template (#587).
  • ec2_key - add support for ED25519 key type (#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. (#606)
  • elb_classic_lb - handle security_group_ids when providing security_group_names and fix broken tasks in integration test (#592).
  • s3_bucket - Enable the management of bucket-level ACLs (#573).

amazon.aws 3.0.0

10 Aug 18:40
a6edc99
Compare
Choose a tag to compare

Major Changes

  • amazon.aws collection - The amazon.aws collection has dropped support for botocore<1.19.0 and boto3<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 (#574).

Minor Changes

  • ec2_instance - add count parameter support (#539).

Breaking Changes / Porting Guide

  • aws_caller_facts - Remove deprecated aws_caller_facts alias. Please use aws_caller_info instead.
  • cloudformation_facts - Remove deprecated cloudformation_facts alias. Please use cloudformation_info instead.
  • ec2_ami_facts - Remove deprecated ec2_ami_facts alias. Please use ec2_ami_info instead.
  • ec2_eni_facts - Remove deprecated ec2_eni_facts alias. Please use ec2_eni_info instead.
  • ec2_group_facts - Remove deprecated ec2_group_facts alias. Please use ec2_group_info instead.
  • ec2_instance_facts - Remove deprecated ec2_instance_facts alias. Please use ec2_instance_info instead.
  • ec2_snapshot_facts - Remove deprecated ec2_snapshot_facts alias. Please use ec2_snapshot_info instead.
  • ec2_vol_facts - Remove deprecated ec2_vol_facts alias. Please use ec2_vol_info instead.
  • ec2_vpc_dhcp_option_facts - Remove deprecated ec2_vpc_dhcp_option_facts alias. Please use ec2_vpc_dhcp_option_info instead.
  • ec2_vpc_endpoint_facts - Remove deprecated ec2_vpc_endpoint_facts alias. Please use ec2_vpc_endpoint_info instead.
  • ec2_vpc_igw_facts - Remove deprecated ec2_vpc_igw_facts alias. Please use ec2_vpc_igw_info instead.
  • ec2_vpc_nat_gateway_facts - Remove deprecated ec2_vpc_nat_gateway_facts alias. Please use ec2_vpc_nat_gateway_info instead.
  • ec2_vpc_net_facts - Remove deprecated ec2_vpc_net_facts alias. Please use ec2_vpc_net_info instead.
  • ec2_vpc_route_table_facts - Remove deprecated ec2_vpc_route_table_facts alias. Please use ec2_vpc_route_table_info instead.
  • ec2_vpc_subnet_facts - Remove deprecated ec2_vpc_subnet_facts alias. Please use ec2_vpc_subnet_info instead.

Deprecated Features

  • module_utils - support for the original AWS SDK boto has been deprecated in favour of the boto3/botocore SDK. All boto based modules have either been deprecated or migrated to botocore, 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 the boto library will need to be migrated to the boto3/botocore libraries (#575).