From f03c6399395f3d9ada0e974e8d033188a8d8a09c Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Thu, 2 Nov 2023 14:12:18 +0100 Subject: [PATCH] Prep amazon.aws 7.0.0 release (#1840) * Prep amazon.aws 7.0.0 release Signed-off-by: Alina Buzachis * update aws user-agent variable with version from galaxy.yml --------- Signed-off-by: Alina Buzachis Co-authored-by: alinabuzachis --- CHANGELOG.rst | 77 ++++++++ changelogs/changelog.yaml | 172 +++++++++++++++++- changelogs/fragments/1538-s3-null.yml | 2 - .../1548-s3_object-leading-slash.yml | 4 - .../1551-ec2_inventory-no-region.yml | 2 - changelogs/fragments/1587-LooseVersion.yml | 4 - changelogs/fragments/1607-NoSuchTagSet.yml | 2 - ...route53_health_check-added-calculcated.yml | 5 - .../1647-add-type-started-and-stopped.yml | 4 - .../1650-fix-invalidinstanceid-notfound.yml | 3 - changelogs/fragments/1683-route53-wait_id.yml | 2 - ...-support-remove-cluster-from-global-db.yml | 3 - changelogs/fragments/1771-isort.yml | 2 - ...-elb_application_lb_info-fetch-subsets.yml | 2 - .../fragments/1799-s3_object-bucket.yml | 2 - changelogs/fragments/1802-flynt.yml | 3 - changelogs/fragments/1825-ec2_instances.yml | 4 - ...bject-support-copy-objects-recursively.yml | 2 - changelogs/fragments/20230702-isort.yml | 2 - ...20231020-iam_server_certificate-revert.yml | 2 - changelogs/fragments/7.0.0-urls.yml | 2 - changelogs/fragments/add-pytest-ansible.yml | 3 - .../fragments/ansible_version_update.yml | 2 - changelogs/fragments/botocore.yml | 6 - ...c2_instance_info-support-new-attribute.yml | 3 - .../ec2_vpc_igw-delete_unattached-gateway.yml | 6 - .../ec2_vpc_route_table_info-filter-fix.yml | 2 - .../fragments/migrate_aws_region_info.yml | 5 - .../fragments/migrate_iam_access_key.yml | 7 - changelogs/fragments/migrate_iam_group.yml | 4 - .../fragments/migrate_iam_managed_policy.yml | 4 - .../fragments/migrate_iam_mfa_device_info.yml | 4 - .../fragments/migrate_iam_password_policy.yml | 4 - changelogs/fragments/migrate_iam_role.yml | 7 - .../fragments/migrate_s3_bucket_info.yml | 8 - .../fragments/migrate_sts_assume_role.yml | 4 - changelogs/fragments/python37.yml | 10 - galaxy.yml | 2 +- plugins/module_utils/common.py | 2 +- 39 files changed, 243 insertions(+), 141 deletions(-) delete mode 100644 changelogs/fragments/1538-s3-null.yml delete mode 100644 changelogs/fragments/1548-s3_object-leading-slash.yml delete mode 100644 changelogs/fragments/1551-ec2_inventory-no-region.yml delete mode 100644 changelogs/fragments/1587-LooseVersion.yml delete mode 100644 changelogs/fragments/1607-NoSuchTagSet.yml delete mode 100644 changelogs/fragments/1631-route53_health_check-added-calculcated.yml delete mode 100644 changelogs/fragments/1647-add-type-started-and-stopped.yml delete mode 100644 changelogs/fragments/1650-fix-invalidinstanceid-notfound.yml delete mode 100644 changelogs/fragments/1683-route53-wait_id.yml delete mode 100644 changelogs/fragments/1705-rds_cluster-add-support-remove-cluster-from-global-db.yml delete mode 100644 changelogs/fragments/1771-isort.yml delete mode 100644 changelogs/fragments/1778-elb_application_lb_info-fetch-subsets.yml delete mode 100644 changelogs/fragments/1799-s3_object-bucket.yml delete mode 100644 changelogs/fragments/1802-flynt.yml delete mode 100644 changelogs/fragments/1825-ec2_instances.yml delete mode 100644 changelogs/fragments/20230612-s3_object-support-copy-objects-recursively.yml delete mode 100644 changelogs/fragments/20230702-isort.yml delete mode 100644 changelogs/fragments/20231020-iam_server_certificate-revert.yml delete mode 100644 changelogs/fragments/7.0.0-urls.yml delete mode 100644 changelogs/fragments/add-pytest-ansible.yml delete mode 100644 changelogs/fragments/ansible_version_update.yml delete mode 100644 changelogs/fragments/botocore.yml delete mode 100644 changelogs/fragments/ec2_instance_info-support-new-attribute.yml delete mode 100644 changelogs/fragments/ec2_vpc_igw-delete_unattached-gateway.yml delete mode 100644 changelogs/fragments/ec2_vpc_route_table_info-filter-fix.yml delete mode 100644 changelogs/fragments/migrate_aws_region_info.yml delete mode 100644 changelogs/fragments/migrate_iam_access_key.yml delete mode 100644 changelogs/fragments/migrate_iam_group.yml delete mode 100644 changelogs/fragments/migrate_iam_managed_policy.yml delete mode 100644 changelogs/fragments/migrate_iam_mfa_device_info.yml delete mode 100644 changelogs/fragments/migrate_iam_password_policy.yml delete mode 100644 changelogs/fragments/migrate_iam_role.yml delete mode 100644 changelogs/fragments/migrate_s3_bucket_info.yml delete mode 100644 changelogs/fragments/migrate_sts_assume_role.yml delete mode 100644 changelogs/fragments/python37.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 30ca60118d2..2d775eb5237 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,83 @@ amazon.aws Release Notes .. contents:: Topics +v7.0.0 +====== + +Release Summary +--------------- + +This major release brings a new set of supported modules that have been promoted from community.aws, several bugfixes, minor changes and deprecated features. We also dropped support for ``botocore<1.29.0`` and ``boto3<1.26.0``. 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 was deprecated in release 6.0.0 and removed in this release. + +Major Changes +------------- + +- aws_region_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 use ``amazon.aws.aws_region_info``. +- aws_s3_bucket_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 use ``amazon.aws.aws_s3_bucket_info``. +- iam_access_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 use ``amazon.aws.iam_access_key``. +- iam_access_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 use ``amazon.aws.iam_access_key_info``. +- iam_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 use ``amazon.aws.iam_group`` (https://github.com/ansible-collections/amazon.aws/pull/1755). +- iam_managed_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 use ``amazon.aws.iam_managed_policy`` (https://github.com/ansible-collections/amazon.aws/pull/1762). +- iam_mfa_device_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 use ``amazon.aws.iam_mfa_device_info`` (https://github.com/ansible-collections/amazon.aws/pull/1761). +- iam_password_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 use ``amazon.aws.iam_password_policy``. +- iam_role - The module has been migrated from the ``community.aws`` collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to use ``amazon.aws.iam_role`` (https://github.com/ansible-collections/amazon.aws/pull/1760). +- iam_role_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 use ``amazon.aws.iam_role_info`` (https://github.com/ansible-collections/amazon.aws/pull/1760). +- s3_bucket_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 use ``amazon.aws.s3_bucket_info``. +- sts_assume_role - The module has been migrated from the ``community.aws`` collection. Playbooks using the Fully Qualified Collection Name for this module should be updated to use ``amazon.aws.sts_assume_role``. + +Minor Changes +------------- + +- amazon.aws collection - apply isort code formatting to ensure consistent formatting of code (https://github.com/ansible-collections/amazon.aws/pull/1771). +- ec2_instance - add support for additional ``placement`` options and ``license_specifications`` in run instance spec (https://github.com/ansible-collections/amazon.aws/issues/1824). +- ec2_instance_info - add new parameter ``include_attributes`` to describe instance attributes (https://github.com/ansible-collections/amazon.aws/pull/1577). +- ec2_metadata_facts - use fstrings where appropriate (https://github.com/ansible-collections/amazon.aws/pull/1802). +- ec2_vpc_igw - Add ability to attach/detach VPC to/from internet gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). +- ec2_vpc_igw - Add ability to change VPC attached to internet gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). +- ec2_vpc_igw - Add ability to create an internet gateway without attaching a VPC (https://github.com/ansible-collections/amazon.aws/pull/1786). +- ec2_vpc_igw - Add ability to delete a vpc internet gateway using the id of the gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). +- elb_application_lb_info - add new parameters ``include_attributes``, ``include_listeners`` and ``include_listener_rules`` to optionally speed up module by fetching less information (https://github.com/ansible-collections/amazon.aws/pull/1778). +- module_utils.botocore - migrate from vendored copy of LooseVersion to packaging.version.Version (https://github.com/ansible-collections/amazon.aws/pull/1587). +- rds_cluster - Add support for removing cluster from global db (https://github.com/ansible-collections/amazon.aws/pull/1705). +- rds_cluster - add support for another ``state`` choice called ``started``. This starts the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files). +- rds_cluster - add support for another ``state`` choice called ``stopped``. This stops the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files). +- route53 - add a ``wait_id`` return value when a change is done (https://github.com/ansible-collections/amazon.aws/pull/1683). +- route53_health_check - add support for a string list parameter called ``child_health_checks`` to specify health checks that must be healthy for the calculated health check (https://github.com/ansible-collections/amazon.aws/pull/1631). +- route53_health_check - add support for an integer parameter called ``health_threshold`` to specify the minimum number of healthy child health checks that must be healthy for the calculated health check (https://github.com/ansible-collections/amazon.aws/pull/1631). +- route53_health_check - add support for another ``type`` choice called ``CALCULATED`` (https://github.com/ansible-collections/amazon.aws/pull/1631). +- s3_object - Allow recursive copy of objects in S3 bucket (https://github.com/ansible-collections/amazon.aws/issues/1379). +- s3_object - use fstrings where appropriate (https://github.com/ansible-collections/amazon.aws/pull/1802). + +Breaking Changes / Porting Guide +-------------------------------- + +- The amazon.aws collection has dropped support for ``botocore<1.29.0`` and ``boto3<1.26.0``. Most modules will continue to work with older versions of the AWS SDK, however compatability 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 (https://github.com/ansible-collections/amazon.aws/pull/1763). +- 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 wss been deprecated in release 6.0.0 and removed in release 7.0.0. (https://github.com/ansible-collections/amazon.aws/pull/1763). +- module_utils - ``module_utils.urls`` was previously deprecated and has been removed (https://github.com/ansible-collections/amazon.aws/pull/1540). +- module_utils._version - vendored copy of distutils.version has been dropped (https://github.com/ansible-collections/amazon.aws/pull/1587). + +Deprecated Features +------------------- + +- ec2_instance - deprecation of ``tenancy`` and ``placement_group`` in favor of ``placement`` attribute (https://github.com/ansible-collections/amazon.aws/pull/1825). + +Bugfixes +-------- + +- aws_ec2 inventory plugin - fix ``NoRegionError`` when no regions are provided and region isn't specified (https://github.com/ansible-collections/amazon.aws/issues/1551). +- ec2_instance - retry API call if we get ``InvalidInstanceID.NotFound`` error (https://github.com/ansible-collections/amazon.aws/pull/1650). +- ec2_vpc_route_table_info - default filters to empty dictionary (https://github.com/ansible-collections/amazon.aws/issues/1668). +- s3_bucket - fixes issue when deleting a bucket with unversioned objects (https://github.com/ansible-collections/amazon.aws/issues/1533). +- s3_object - fixed ``NoSuchTagSet`` error when S3 endpoint doesn't support tags (https://github.com/ansible-collections/amazon.aws/issues/1607). +- s3_object - fixes regression related to objects with a leading ``/`` (https://github.com/ansible-collections/amazon.aws/issues/1548). + +New Modules +----------- + +- ec2_import_image - Manage AWS EC2 import image tasks +- ec2_import_image_info - Gather information about import virtual machine tasks +- rds_global_cluster_info - Obtain information about Aurora global database clusters + v6.5.0 ====== diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 30679419b7f..dbbf4f9082c 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -1831,15 +1831,15 @@ releases: 5.5.2: changes: bugfixes: - - cloudwatchevent_rule - Fixes changed status to report False when no change has been made. The module - had incorrectly always reported a change. (https://github.com/ansible-collections/amazon.aws/pull/1589) - - lambda_execute - Fixes to the stack trace output, where it does not contain spaces between - each character. The module had incorrectly always outputted extra spaces between - each character. (https://github.com/ansible-collections/amazon.aws/pull/1615) + - cloudwatchevent_rule - Fixes changed status to report False when no change + has been made. The module had incorrectly always reported a change. (https://github.com/ansible-collections/amazon.aws/pull/1589) - ec2_vpc_nat_gateway - fixes to nat gateway so that when the user creates a private NAT gateway, an Elastic IP address should not be allocated. The module had inncorrectly always allocate elastic IP address when creating private nat gateway (https://github.com/ansible-collections/amazon.aws/pull/1632). + - lambda_execute - Fixes to the stack trace output, where it does not contain + spaces between each character. The module had incorrectly always outputted + extra spaces between each character. (https://github.com/ansible-collections/amazon.aws/pull/1615) fragments: - 1589-return_false_when_no_change..yml - 1615-no_formatted_with_extra_space.yml @@ -1855,7 +1855,7 @@ releases: when creating or modifying a Multi-AZ RDS cluster (https://github.com/ansible-collections/amazon.aws/pull/1657). - rds_cluster - Allow to pass GlobalClusterIdentifier to rds cluster on creation (https://github.com/ansible-collections/amazon.aws/pull/1663). - release_summary: 'This release contains a few bugfixes for rds_cluster.' + release_summary: This release contains a few bugfixes for rds_cluster. fragments: - 20230713-rds_cluster-fix_params_passage.yml - 20230725-rds_cluster-fix.yml @@ -2408,8 +2408,8 @@ releases: release_summary: 'This release is the last planned minor release of ``amazon.aws`` prior to the release of 7.0.0. - It includes documentation fixes as well as minor changes and bug fixes for the ``ec2_ami`` and ``elb_application_lb_info`` - modules. + It includes documentation fixes as well as minor changes and bug fixes for + the ``ec2_ami`` and ``elb_application_lb_info`` modules. ' fragments: @@ -2422,3 +2422,159 @@ releases: - ec2_region.yml - release-summary.yml release_date: '2023-10-03' + 7.0.0: + changes: + breaking_changes: + - The amazon.aws collection has dropped support for ``botocore<1.29.0`` and + ``boto3<1.26.0``. Most modules will continue to work with older versions of + the AWS SDK, however compatability 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 (https://github.com/ansible-collections/amazon.aws/pull/1763). + - 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 wss been deprecated in + release 6.0.0 and removed in release 7.0.0. (https://github.com/ansible-collections/amazon.aws/pull/1763). + - module_utils - ``module_utils.urls`` was previously deprecated and has been + removed (https://github.com/ansible-collections/amazon.aws/pull/1540). + - module_utils._version - vendored copy of distutils.version has been dropped + (https://github.com/ansible-collections/amazon.aws/pull/1587). + bugfixes: + - aws_ec2 inventory plugin - fix ``NoRegionError`` when no regions are provided + and region isn't specified (https://github.com/ansible-collections/amazon.aws/issues/1551). + - ec2_instance - retry API call if we get ``InvalidInstanceID.NotFound`` error + (https://github.com/ansible-collections/amazon.aws/pull/1650). + - ec2_vpc_route_table_info - default filters to empty dictionary (https://github.com/ansible-collections/amazon.aws/issues/1668). + - s3_bucket - fixes issue when deleting a bucket with unversioned objects (https://github.com/ansible-collections/amazon.aws/issues/1533). + - s3_object - fixed ``NoSuchTagSet`` error when S3 endpoint doesn't support + tags (https://github.com/ansible-collections/amazon.aws/issues/1607). + - s3_object - fixes regression related to objects with a leading ``/`` (https://github.com/ansible-collections/amazon.aws/issues/1548). + deprecated_features: + - ec2_instance - deprecation of ``tenancy`` and ``placement_group`` in favor + of ``placement`` attribute (https://github.com/ansible-collections/amazon.aws/pull/1825). + major_changes: + - aws_region_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 use ``amazon.aws.aws_region_info``. + - aws_s3_bucket_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 use ``amazon.aws.aws_s3_bucket_info``. + - iam_access_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 use ``amazon.aws.iam_access_key``. + - iam_access_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 use ``amazon.aws.iam_access_key_info``. + - iam_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 use ``amazon.aws.iam_group`` (https://github.com/ansible-collections/amazon.aws/pull/1755). + - iam_managed_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 use ``amazon.aws.iam_managed_policy`` (https://github.com/ansible-collections/amazon.aws/pull/1762). + - iam_mfa_device_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 use ``amazon.aws.iam_mfa_device_info`` (https://github.com/ansible-collections/amazon.aws/pull/1761). + - iam_password_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 use ``amazon.aws.iam_password_policy``. + - iam_role - The module has been migrated from the ``community.aws`` collection. + Playbooks using the Fully Qualified Collection Name for this module should + be updated to use ``amazon.aws.iam_role`` (https://github.com/ansible-collections/amazon.aws/pull/1760). + - iam_role_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 use ``amazon.aws.iam_role_info`` (https://github.com/ansible-collections/amazon.aws/pull/1760). + - s3_bucket_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 use ``amazon.aws.s3_bucket_info``. + - sts_assume_role - The module has been migrated from the ``community.aws`` + collection. Playbooks using the Fully Qualified Collection Name for this module + should be updated to use ``amazon.aws.sts_assume_role``. + minor_changes: + - amazon.aws collection - apply isort code formatting to ensure consistent formatting + of code (https://github.com/ansible-collections/amazon.aws/pull/1771). + - ec2_instance - add support for additional ``placement`` options and ``license_specifications`` + in run instance spec (https://github.com/ansible-collections/amazon.aws/issues/1824). + - ec2_instance_info - add new parameter ``include_attributes`` to describe instance + attributes (https://github.com/ansible-collections/amazon.aws/pull/1577). + - ec2_metadata_facts - use fstrings where appropriate (https://github.com/ansible-collections/amazon.aws/pull/1802). + - ec2_vpc_igw - Add ability to attach/detach VPC to/from internet gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). + - ec2_vpc_igw - Add ability to change VPC attached to internet gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). + - ec2_vpc_igw - Add ability to create an internet gateway without attaching + a VPC (https://github.com/ansible-collections/amazon.aws/pull/1786). + - ec2_vpc_igw - Add ability to delete a vpc internet gateway using the id of + the gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). + - elb_application_lb_info - add new parameters ``include_attributes``, ``include_listeners`` + and ``include_listener_rules`` to optionally speed up module by fetching + less information (https://github.com/ansible-collections/amazon.aws/pull/1778). + - module_utils.botocore - migrate from vendored copy of LooseVersion to packaging.version.Version + (https://github.com/ansible-collections/amazon.aws/pull/1587). + - rds_cluster - Add support for removing cluster from global db (https://github.com/ansible-collections/amazon.aws/pull/1705). + - rds_cluster - add support for another ``state`` choice called ``started``. + This starts the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files). + - rds_cluster - add support for another ``state`` choice called ``stopped``. + This stops the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files). + - route53 - add a ``wait_id`` return value when a change is done (https://github.com/ansible-collections/amazon.aws/pull/1683). + - route53_health_check - add support for a string list parameter called ``child_health_checks`` + to specify health checks that must be healthy for the calculated health check + (https://github.com/ansible-collections/amazon.aws/pull/1631). + - route53_health_check - add support for an integer parameter called ``health_threshold`` + to specify the minimum number of healthy child health checks that must be + healthy for the calculated health check (https://github.com/ansible-collections/amazon.aws/pull/1631). + - route53_health_check - add support for another ``type`` choice called ``CALCULATED`` + (https://github.com/ansible-collections/amazon.aws/pull/1631). + - s3_object - Allow recursive copy of objects in S3 bucket (https://github.com/ansible-collections/amazon.aws/issues/1379). + - s3_object - use fstrings where appropriate (https://github.com/ansible-collections/amazon.aws/pull/1802). + release_summary: This major release brings a new set of supported modules that + have been promoted from community.aws, several bugfixes, minor changes and + deprecated features. We also dropped support for ``botocore<1.29.0`` and ``boto3<1.26.0``. + 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 was deprecated in release + 6.0.0 and removed in this release. + fragments: + - 1538-s3-null.yml + - 1548-s3_object-leading-slash.yml + - 1551-ec2_inventory-no-region.yml + - 1587-LooseVersion.yml + - 1607-NoSuchTagSet.yml + - 1631-route53_health_check-added-calculcated.yml + - 1647-add-type-started-and-stopped.yml + - 1650-fix-invalidinstanceid-notfound.yml + - 1683-route53-wait_id.yml + - 1705-rds_cluster-add-support-remove-cluster-from-global-db.yml + - 1771-isort.yml + - 1778-elb_application_lb_info-fetch-subsets.yml + - 1799-s3_object-bucket.yml + - 1802-flynt.yml + - 1825-ec2_instances.yml + - 20230612-s3_object-support-copy-objects-recursively.yml + - 20230702-isort.yml + - 20231020-iam_server_certificate-revert.yml + - 7.0.0-urls.yml + - add-pytest-ansible.yml + - ansible_version_update.yml + - botocore.yml + - ec2_instance_info-support-new-attribute.yml + - ec2_vpc_igw-delete_unattached-gateway.yml + - ec2_vpc_route_table_info-filter-fix.yml + - migrate_aws_region_info.yml + - migrate_iam_access_key.yml + - migrate_iam_group.yml + - migrate_iam_managed_policy.yml + - migrate_iam_mfa_device_info.yml + - migrate_iam_password_policy.yml + - migrate_iam_role.yml + - migrate_s3_bucket_info.yml + - migrate_sts_assume_role.yml + - python37.yml + - release_summary.yml + modules: + - description: Manage AWS EC2 import image tasks + name: ec2_import_image + namespace: '' + - description: Gather information about import virtual machine tasks + name: ec2_import_image_info + namespace: '' + - description: Obtain information about Aurora global database clusters + name: rds_global_cluster_info + namespace: '' + release_date: '2023-11-02' diff --git a/changelogs/fragments/1538-s3-null.yml b/changelogs/fragments/1538-s3-null.yml deleted file mode 100644 index 7c2ccfa6bd8..00000000000 --- a/changelogs/fragments/1538-s3-null.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- s3_bucket - fixes issue when deleting a bucket with unversioned objects (https://github.com/ansible-collections/amazon.aws/issues/1533). diff --git a/changelogs/fragments/1548-s3_object-leading-slash.yml b/changelogs/fragments/1548-s3_object-leading-slash.yml deleted file mode 100644 index 17219af7057..00000000000 --- a/changelogs/fragments/1548-s3_object-leading-slash.yml +++ /dev/null @@ -1,4 +0,0 @@ -bugfixes: -- s3_object - fixes regression related to objects with a leading ``/`` (https://github.com/ansible-collections/amazon.aws/issues/1548). -# deprecated_features: -# - s3_object - support for passing object keys with a leading ``/`` has been deprecated and will be removed in a release after 2025-12-01 (https://github.com/ansible-collections/amazon.aws/pull/1549). diff --git a/changelogs/fragments/1551-ec2_inventory-no-region.yml b/changelogs/fragments/1551-ec2_inventory-no-region.yml deleted file mode 100644 index 5b6816e625f..00000000000 --- a/changelogs/fragments/1551-ec2_inventory-no-region.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- aws_ec2 inventory plugin - fix ``NoRegionError`` when no regions are provided and region isn't specified (https://github.com/ansible-collections/amazon.aws/issues/1551). diff --git a/changelogs/fragments/1587-LooseVersion.yml b/changelogs/fragments/1587-LooseVersion.yml deleted file mode 100644 index 4e334cc0bb2..00000000000 --- a/changelogs/fragments/1587-LooseVersion.yml +++ /dev/null @@ -1,4 +0,0 @@ -breaking_changes: -- module_utils._version - vendored copy of distutils.version has been dropped (https://github.com/ansible-collections/amazon.aws/pull/1587). -minor_changes: -- module_utils.botocore - migrate from vendored copy of LooseVersion to packaging.version.Version (https://github.com/ansible-collections/amazon.aws/pull/1587). diff --git a/changelogs/fragments/1607-NoSuchTagSet.yml b/changelogs/fragments/1607-NoSuchTagSet.yml deleted file mode 100644 index 63aff3bb5c7..00000000000 --- a/changelogs/fragments/1607-NoSuchTagSet.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- s3_object - fixed ``NoSuchTagSet`` error when S3 endpoint doesn't support tags (https://github.com/ansible-collections/amazon.aws/issues/1607). diff --git a/changelogs/fragments/1631-route53_health_check-added-calculcated.yml b/changelogs/fragments/1631-route53_health_check-added-calculcated.yml deleted file mode 100644 index a4b16f7364a..00000000000 --- a/changelogs/fragments/1631-route53_health_check-added-calculcated.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -minor_changes: - - route53_health_check - add support for another ``type`` choice called ``CALCULATED`` (https://github.com/ansible-collections/amazon.aws/pull/1631). - - route53_health_check - add support for a string list parameter called ``child_health_checks`` to specify health checks that must be healthy for the calculated health check (https://github.com/ansible-collections/amazon.aws/pull/1631). - - route53_health_check - add support for an integer parameter called ``health_threshold`` to specify the minimum number of healthy child health checks that must be healthy for the calculated health check (https://github.com/ansible-collections/amazon.aws/pull/1631). diff --git a/changelogs/fragments/1647-add-type-started-and-stopped.yml b/changelogs/fragments/1647-add-type-started-and-stopped.yml deleted file mode 100644 index 9270ebfb306..00000000000 --- a/changelogs/fragments/1647-add-type-started-and-stopped.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -minor_changes: - - rds_cluster - add support for another ``state`` choice called ``started``. This starts the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files). - - rds_cluster - add support for another ``state`` choice called ``stopped``. This stops the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files). diff --git a/changelogs/fragments/1650-fix-invalidinstanceid-notfound.yml b/changelogs/fragments/1650-fix-invalidinstanceid-notfound.yml deleted file mode 100644 index 8953b2390a1..00000000000 --- a/changelogs/fragments/1650-fix-invalidinstanceid-notfound.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - ec2_instance - retry API call if we get ``InvalidInstanceID.NotFound`` error (https://github.com/ansible-collections/amazon.aws/pull/1650). diff --git a/changelogs/fragments/1683-route53-wait_id.yml b/changelogs/fragments/1683-route53-wait_id.yml deleted file mode 100644 index f6260985dd8..00000000000 --- a/changelogs/fragments/1683-route53-wait_id.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - "route53 - add a ``wait_id`` return value when a change is done (https://github.com/ansible-collections/amazon.aws/pull/1683)." diff --git a/changelogs/fragments/1705-rds_cluster-add-support-remove-cluster-from-global-db.yml b/changelogs/fragments/1705-rds_cluster-add-support-remove-cluster-from-global-db.yml deleted file mode 100644 index ce9b3df2295..00000000000 --- a/changelogs/fragments/1705-rds_cluster-add-support-remove-cluster-from-global-db.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- rds_cluster - Add support for removing cluster from global db (https://github.com/ansible-collections/amazon.aws/pull/1705). diff --git a/changelogs/fragments/1771-isort.yml b/changelogs/fragments/1771-isort.yml deleted file mode 100644 index 9ab02e02c86..00000000000 --- a/changelogs/fragments/1771-isort.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- amazon.aws collection - apply isort code formatting to ensure consistent formatting of code (https://github.com/ansible-collections/amazon.aws/pull/1771). diff --git a/changelogs/fragments/1778-elb_application_lb_info-fetch-subsets.yml b/changelogs/fragments/1778-elb_application_lb_info-fetch-subsets.yml deleted file mode 100644 index 50be8a3d1d1..00000000000 --- a/changelogs/fragments/1778-elb_application_lb_info-fetch-subsets.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - "elb_application_lb_info - add new parameters ``include_attributes``, ``include_listeners`` and ``include_listener_rules`` to optionally speed up module by fetching less information (https://github.com/ansible-collections/amazon.aws/pull/1778)." diff --git a/changelogs/fragments/1799-s3_object-bucket.yml b/changelogs/fragments/1799-s3_object-bucket.yml deleted file mode 100644 index cd905b66200..00000000000 --- a/changelogs/fragments/1799-s3_object-bucket.yml +++ /dev/null @@ -1,2 +0,0 @@ -trivial: -- s3_object - Remove examples for creating/deleting buckets - support removed in 6.0.0. diff --git a/changelogs/fragments/1802-flynt.yml b/changelogs/fragments/1802-flynt.yml deleted file mode 100644 index e9b23fd42b3..00000000000 --- a/changelogs/fragments/1802-flynt.yml +++ /dev/null @@ -1,3 +0,0 @@ -minor_changes: -- ec2_metadata_facts - use fstrings where appropriate (https://github.com/ansible-collections/amazon.aws/pull/1802). -- s3_object - use fstrings where appropriate (https://github.com/ansible-collections/amazon.aws/pull/1802). diff --git a/changelogs/fragments/1825-ec2_instances.yml b/changelogs/fragments/1825-ec2_instances.yml deleted file mode 100644 index e77ce53c304..00000000000 --- a/changelogs/fragments/1825-ec2_instances.yml +++ /dev/null @@ -1,4 +0,0 @@ -minor_changes: - - ec2_instance - add support for additional ``placement`` options and ``license_specifications`` in run instance spec (https://github.com/ansible-collections/amazon.aws/issues/1824). -deprecated_features: - - ec2_instance - deprecation of ``tenancy`` and ``placement_group`` in favor of ``placement`` attribute (https://github.com/ansible-collections/amazon.aws/pull/1825). diff --git a/changelogs/fragments/20230612-s3_object-support-copy-objects-recursively.yml b/changelogs/fragments/20230612-s3_object-support-copy-objects-recursively.yml deleted file mode 100644 index 9157ec0d0b0..00000000000 --- a/changelogs/fragments/20230612-s3_object-support-copy-objects-recursively.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- s3_object - Allow recursive copy of objects in S3 bucket (https://github.com/ansible-collections/amazon.aws/issues/1379). diff --git a/changelogs/fragments/20230702-isort.yml b/changelogs/fragments/20230702-isort.yml deleted file mode 100644 index 5ceaa201c0e..00000000000 --- a/changelogs/fragments/20230702-isort.yml +++ /dev/null @@ -1,2 +0,0 @@ -trivial: -- added isort configs to pyproject.toml diff --git a/changelogs/fragments/20231020-iam_server_certificate-revert.yml b/changelogs/fragments/20231020-iam_server_certificate-revert.yml deleted file mode 100644 index aa5dfc76d6c..00000000000 --- a/changelogs/fragments/20231020-iam_server_certificate-revert.yml +++ /dev/null @@ -1,2 +0,0 @@ -trivial: - - "Revert https://github.com/ansible-collections/amazon.aws/pull/1805 because we are not promoting anymore the ``iam_server_certificate`` and ``iam_server_certificate_info`` modules." diff --git a/changelogs/fragments/7.0.0-urls.yml b/changelogs/fragments/7.0.0-urls.yml deleted file mode 100644 index 6181c64b35e..00000000000 --- a/changelogs/fragments/7.0.0-urls.yml +++ /dev/null @@ -1,2 +0,0 @@ -breaking_changes: -- module_utils - ``module_utils.urls`` was previously deprecated and has been removed (). diff --git a/changelogs/fragments/add-pytest-ansible.yml b/changelogs/fragments/add-pytest-ansible.yml deleted file mode 100644 index 882bdb357fe..00000000000 --- a/changelogs/fragments/add-pytest-ansible.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: -- Replace pytest-ansible-units with pytest-ansible for testing unit tests (https://github.com/ansible-collections/amazon.aws/pull/1553). diff --git a/changelogs/fragments/ansible_version_update.yml b/changelogs/fragments/ansible_version_update.yml deleted file mode 100644 index a1c25823502..00000000000 --- a/changelogs/fragments/ansible_version_update.yml +++ /dev/null @@ -1,2 +0,0 @@ -trivial: -- update README with Ansible version 2.13 as the minimum supported version. diff --git a/changelogs/fragments/botocore.yml b/changelogs/fragments/botocore.yml deleted file mode 100644 index 9defbf18cb9..00000000000 --- a/changelogs/fragments/botocore.yml +++ /dev/null @@ -1,6 +0,0 @@ -breaking_changes: -- The amazon.aws collection has dropped support for ``botocore<1.29.0`` and - ``boto3<1.26.0``. Most modules will continue to work with older versions of the AWS SDK, however - compatability 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 - (https://github.com/ansible-collections/amazon.aws/pull/1763). diff --git a/changelogs/fragments/ec2_instance_info-support-new-attribute.yml b/changelogs/fragments/ec2_instance_info-support-new-attribute.yml deleted file mode 100644 index 5025aed21e7..00000000000 --- a/changelogs/fragments/ec2_instance_info-support-new-attribute.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - ec2_instance_info - add new parameter `include_attributes` to describe instance attributes (https://github.com/ansible-collections/amazon.aws/pull/1577). diff --git a/changelogs/fragments/ec2_vpc_igw-delete_unattached-gateway.yml b/changelogs/fragments/ec2_vpc_igw-delete_unattached-gateway.yml deleted file mode 100644 index a94fb0224f6..00000000000 --- a/changelogs/fragments/ec2_vpc_igw-delete_unattached-gateway.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -minor_changes: - - ec2_vpc_igw - Add ability to delete a vpc internet gateway using the id of the gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). - - ec2_vpc_igw - Add ability to create an internet gateway without attaching a VPC (https://github.com/ansible-collections/amazon.aws/pull/1786). - - ec2_vpc_igw - Add ability to attach/detach VPC to/from internet gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). - - ec2_vpc_igw - Add ability to change VPC attached to internet gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). diff --git a/changelogs/fragments/ec2_vpc_route_table_info-filter-fix.yml b/changelogs/fragments/ec2_vpc_route_table_info-filter-fix.yml deleted file mode 100644 index 9b3d315dcca..00000000000 --- a/changelogs/fragments/ec2_vpc_route_table_info-filter-fix.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - ec2_vpc_route_table_info - default filters to empty dictionary (https://github.com/ansible-collections/amazon.aws/issues/1668). diff --git a/changelogs/fragments/migrate_aws_region_info.yml b/changelogs/fragments/migrate_aws_region_info.yml deleted file mode 100644 index 189f1955d29..00000000000 --- a/changelogs/fragments/migrate_aws_region_info.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -major_changes: - - aws_region_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 use ``amazon.aws.aws_region_info``. diff --git a/changelogs/fragments/migrate_iam_access_key.yml b/changelogs/fragments/migrate_iam_access_key.yml deleted file mode 100644 index 4d1f5bea3a9..00000000000 --- a/changelogs/fragments/migrate_iam_access_key.yml +++ /dev/null @@ -1,7 +0,0 @@ -major_changes: -- iam_access_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 use ``amazon.aws.iam_access_key``. -- iam_access_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 use ``amazon.aws.iam_access_key_info``. diff --git a/changelogs/fragments/migrate_iam_group.yml b/changelogs/fragments/migrate_iam_group.yml deleted file mode 100644 index 0fa4f7c0c36..00000000000 --- a/changelogs/fragments/migrate_iam_group.yml +++ /dev/null @@ -1,4 +0,0 @@ -major_changes: -- iam_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 use ``amazon.aws.iam_group`` (https://github.com/ansible-collections/amazon.aws/pull/1755). diff --git a/changelogs/fragments/migrate_iam_managed_policy.yml b/changelogs/fragments/migrate_iam_managed_policy.yml deleted file mode 100644 index fcbccde3900..00000000000 --- a/changelogs/fragments/migrate_iam_managed_policy.yml +++ /dev/null @@ -1,4 +0,0 @@ -major_changes: -- iam_managed_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 use ``amazon.aws.iam_managed_policy`` (https://github.com/ansible-collections/amazon.aws/pull/1762). diff --git a/changelogs/fragments/migrate_iam_mfa_device_info.yml b/changelogs/fragments/migrate_iam_mfa_device_info.yml deleted file mode 100644 index e2ee3133121..00000000000 --- a/changelogs/fragments/migrate_iam_mfa_device_info.yml +++ /dev/null @@ -1,4 +0,0 @@ -major_changes: -- iam_mfa_device_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 use ``amazon.aws.iam_mfa_device_info`` (https://github.com/ansible-collections/amazon.aws/pull/1761). diff --git a/changelogs/fragments/migrate_iam_password_policy.yml b/changelogs/fragments/migrate_iam_password_policy.yml deleted file mode 100644 index 6f166cfb9eb..00000000000 --- a/changelogs/fragments/migrate_iam_password_policy.yml +++ /dev/null @@ -1,4 +0,0 @@ -major_changes: -- iam_password_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 use ``amazon.aws.iam_password_policy``. diff --git a/changelogs/fragments/migrate_iam_role.yml b/changelogs/fragments/migrate_iam_role.yml deleted file mode 100644 index 9b8110ba7d8..00000000000 --- a/changelogs/fragments/migrate_iam_role.yml +++ /dev/null @@ -1,7 +0,0 @@ -major_changes: -- iam_role - The module has been migrated from the ``community.aws`` collection. Playbooks - using the Fully Qualified Collection Name for this module should be updated to use - ``amazon.aws.iam_role`` (https://github.com/ansible-collections/amazon.aws/pull/1760). -- iam_role_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 use ``amazon.aws.iam_role_info`` (https://github.com/ansible-collections/amazon.aws/pull/1760). diff --git a/changelogs/fragments/migrate_s3_bucket_info.yml b/changelogs/fragments/migrate_s3_bucket_info.yml deleted file mode 100644 index 74784c68cd2..00000000000 --- a/changelogs/fragments/migrate_s3_bucket_info.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -major_changes: - - aws_s3_bucket_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 use ``amazon.aws.aws_s3_bucket_info``. - - s3_bucket_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 use ``amazon.aws.s3_bucket_info``. diff --git a/changelogs/fragments/migrate_sts_assume_role.yml b/changelogs/fragments/migrate_sts_assume_role.yml deleted file mode 100644 index f054230de9b..00000000000 --- a/changelogs/fragments/migrate_sts_assume_role.yml +++ /dev/null @@ -1,4 +0,0 @@ -major_changes: -- sts_assume_role - The module has been migrated from the ``community.aws`` collection. - Playbooks using the Fully Qualified Collection Name for this module should be updated - to use ``amazon.aws.sts_assume_role``. diff --git a/changelogs/fragments/python37.yml b/changelogs/fragments/python37.yml deleted file mode 100644 index d061bd466be..00000000000 --- a/changelogs/fragments/python37.yml +++ /dev/null @@ -1,10 +0,0 @@ -breaking_changes: -- 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 wss been deprecated in release 6.0.0 and removed in release 7.0.0. - (https://github.com/ansible-collections/amazon.aws/pull/1763). - -# We've already announced the deprecation for <3.8 (with 6.0.0), dropping support for <3.9 on ours side will happen -# after April 2026. This is about 2 years + 5 months away assuming a November 7.0.0 release, we could announce -# the deprecation now, but assuming we release 8.0.0 in about 6 months a just short of 2 year -# deprecation feels fine given it's predictable. diff --git a/galaxy.yml b/galaxy.yml index c19579b852e..21058635947 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: amazon name: aws -version: 7.0.0-dev0 +version: 7.0.0 readme: README.md authors: - Ansible (https://github.com/ansible) diff --git a/plugins/module_utils/common.py b/plugins/module_utils/common.py index e7a1221ebf2..f3e21ed4d12 100644 --- a/plugins/module_utils/common.py +++ b/plugins/module_utils/common.py @@ -4,7 +4,7 @@ # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) AMAZON_AWS_COLLECTION_NAME = "amazon.aws" -AMAZON_AWS_COLLECTION_VERSION = "7.0.0-dev0" +AMAZON_AWS_COLLECTION_VERSION = "7.0.0" _collection_info_context = {