From 37ee05f0cf8034c98399fa1820aa065a3abf62da Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Tue, 5 Mar 2024 16:44:47 +0100 Subject: [PATCH] Prep amazon.aws 7.4.0 (#2009) SUMMARY Prep amazon.aws 7.4.0 Release date is March 5th. ISSUE TYPE Feature Pull Request COMPONENT NAME several --- CHANGELOG.rst | 36 ++++++++++++++ changelogs/changelog.yaml | 49 +++++++++++++++++++ ...json-input-handling-for-input_template.yml | 3 -- ...lbv2-fix-issue-with-authenticated-oidc.yml | 6 --- ...missing-and-on_missing-is-set-to-warn.yaml | 3 -- .../fragments/20240227-fail_aws_error.yml | 2 - .../fragments/20240227-iam-refactor.yml | 14 ------ galaxy.yml | 2 +- plugins/module_utils/common.py | 2 +- 9 files changed, 87 insertions(+), 30 deletions(-) delete mode 100644 changelogs/fragments/1883-cloudwatchevent_rule-fix-json-input-handling-for-input_template.yml delete mode 100644 changelogs/fragments/20240124-module_utils-elbv2-fix-issue-with-authenticated-oidc.yml delete mode 100644 changelogs/fragments/20240212-lookup-secretsmanager_secret-fix-issue-when-nested-is-missing-and-on_missing-is-set-to-warn.yaml delete mode 100644 changelogs/fragments/20240227-fail_aws_error.yml delete mode 100644 changelogs/fragments/20240227-iam-refactor.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 733842f23e..3e5dc1c2ca 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,42 @@ amazon.aws Release Notes .. contents:: Topics +v7.4.0 +====== + +Release Summary +--------------- + +This release brings several bugfixes and minor changes. It also introduces a deprecation for the ``iam_role_info`` plugin. + +Minor Changes +------------- + +- AnsibeAWSModule - added ``fail_json_aws_error()`` as a wrapper for ``fail_json()`` and ``fail_json_aws()`` when passed an ``AnsibleAWSError`` exception (https://github.com/ansible-collections/amazon.aws/pull/1997). +- iam_access_key - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_access_key_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_group - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_instance_profile - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_instance_profile_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_managed_policy - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_mfa_device_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_role - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_role_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_user - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). +- iam_user_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + +Deprecated Features +------------------- + +- iam_role_info - in a release after 2026-05-01 paths must begin and end with ``/`` (https://github.com/ansible-collections/amazon.aws/pull/1998). + +Bugfixes +-------- + +- cloudwatchevent_rule - Fix to avoid adding quotes to JSON input for provided input_template (https://github.com/ansible-collections/amazon.aws/pull/1883). +- lookup/secretsmanager_secret - fix the issue when the nested secret is missing and on_missing is set to warn, the lookup was raising an error instead of a warning message (https://github.com/ansible-collections/amazon.aws/issues/1781). +- module_utils/elbv2 - Fix issue when creating or modifying Load balancer rule type authenticate-oidc using ``ClientSecret`` parameter and ``UseExistingClientSecret=true`` (https://github.com/ansible-collections/amazon.aws/issues/1877). + v7.3.0 ====== diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 252923119e..24f7b82471 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -2728,3 +2728,52 @@ releases: - 20240202-backup_plan-idempotency.yml - release_summary.yml release_date: '2024-02-06' + 7.4.0: + changes: + bugfixes: + - cloudwatchevent_rule - Fix to avoid adding quotes to JSON input for provided + input_template (https://github.com/ansible-collections/amazon.aws/pull/1883). + - lookup/secretsmanager_secret - fix the issue when the nested secret is missing + and on_missing is set to warn, the lookup was raising an error instead of + a warning message (https://github.com/ansible-collections/amazon.aws/issues/1781). + - module_utils/elbv2 - Fix issue when creating or modifying Load balancer rule + type authenticate-oidc using ``ClientSecret`` parameter and ``UseExistingClientSecret=true`` + (https://github.com/ansible-collections/amazon.aws/issues/1877). + deprecated_features: + - iam_role_info - in a release after 2026-05-01 paths must begin and end with + ``/`` (https://github.com/ansible-collections/amazon.aws/pull/1998). + minor_changes: + - AnsibeAWSModule - added ``fail_json_aws_error()`` as a wrapper for ``fail_json()`` + and ``fail_json_aws()`` when passed an ``AnsibleAWSError`` exception (https://github.com/ansible-collections/amazon.aws/pull/1997). + - iam_access_key - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_access_key_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_group - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_instance_profile - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_instance_profile_info - refactored code to use ``AnsibleIAMError`` and + ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_managed_policy - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_mfa_device_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_role - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_role_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_user - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + - iam_user_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` + as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). + release_summary: This release brings several bugfixes and minor changes. It + also introduces a deprecation for the ``iam_role_info`` plugin. + fragments: + - 1883-cloudwatchevent_rule-fix-json-input-handling-for-input_template.yml + - 20240124-module_utils-elbv2-fix-issue-with-authenticated-oidc.yml + - 20240212-lookup-secretsmanager_secret-fix-issue-when-nested-is-missing-and-on_missing-is-set-to-warn.yaml + - 20240227-fail_aws_error.yml + - 20240227-iam-refactor.yml + - release_summary.yml + release_date: '2024-03-05' diff --git a/changelogs/fragments/1883-cloudwatchevent_rule-fix-json-input-handling-for-input_template.yml b/changelogs/fragments/1883-cloudwatchevent_rule-fix-json-input-handling-for-input_template.yml deleted file mode 100644 index 13c9ea1191..0000000000 --- a/changelogs/fragments/1883-cloudwatchevent_rule-fix-json-input-handling-for-input_template.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - cloudwatchevent_rule - Fix to avoid adding quotes to JSON input for provided input_template (https://github.com/ansible-collections/amazon.aws/pull/1883). diff --git a/changelogs/fragments/20240124-module_utils-elbv2-fix-issue-with-authenticated-oidc.yml b/changelogs/fragments/20240124-module_utils-elbv2-fix-issue-with-authenticated-oidc.yml deleted file mode 100644 index 9544b72cec..0000000000 --- a/changelogs/fragments/20240124-module_utils-elbv2-fix-issue-with-authenticated-oidc.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -bugfixes: - - >- - module_utils/elbv2 - Fix issue when creating or modifying Load balancer rule - type authenticate-oidc using ``ClientSecret`` parameter and - ``UseExistingClientSecret=true`` (https://github.com/ansible-collections/amazon.aws/issues/1877). diff --git a/changelogs/fragments/20240212-lookup-secretsmanager_secret-fix-issue-when-nested-is-missing-and-on_missing-is-set-to-warn.yaml b/changelogs/fragments/20240212-lookup-secretsmanager_secret-fix-issue-when-nested-is-missing-and-on_missing-is-set-to-warn.yaml deleted file mode 100644 index 809f4a2f3d..0000000000 --- a/changelogs/fragments/20240212-lookup-secretsmanager_secret-fix-issue-when-nested-is-missing-and-on_missing-is-set-to-warn.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - lookup/secretsmanager_secret - fix the issue when the nested secret is missing and on_missing is set to warn, the lookup was raising an error instead of a warning message (https://github.com/ansible-collections/amazon.aws/issues/1781). diff --git a/changelogs/fragments/20240227-fail_aws_error.yml b/changelogs/fragments/20240227-fail_aws_error.yml deleted file mode 100644 index b823c1d865..0000000000 --- a/changelogs/fragments/20240227-fail_aws_error.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - AnsibeAWSModule - added ``fail_json_aws_error()`` as a wrapper for ``fail_json()`` and ``fail_json_aws()`` when passed an ``AnsibleAWSError`` exception (https://github.com/ansible-collections/amazon.aws/pull/1997). diff --git a/changelogs/fragments/20240227-iam-refactor.yml b/changelogs/fragments/20240227-iam-refactor.yml deleted file mode 100644 index ca2d2bff4c..0000000000 --- a/changelogs/fragments/20240227-iam-refactor.yml +++ /dev/null @@ -1,14 +0,0 @@ -minor_changes: - - iam_access_key - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_access_key_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_group - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_instance_profile - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_instance_profile_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_managed_policy - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_mfa_device_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_role - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_role_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_user - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). - - iam_user_info - refactored code to use ``AnsibleIAMError`` and ``IAMErrorHandler`` as well as moving shared code into module_utils.iam (https://github.com/ansible-collections/amazon.aws/pull/1998). -deprecated_features: - - iam_role_info - in a release after 2026-05-01 paths must begin and end with ``/`` (https://github.com/ansible-collections/amazon.aws/pull/1998). diff --git a/galaxy.yml b/galaxy.yml index 865f927fb4..524fc342a8 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: amazon name: aws -version: 7.3.0 +version: 7.4.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 7dfbf6223a..6739157259 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.3.0" +AMAZON_AWS_COLLECTION_VERSION = "7.4.0" _collection_info_context = {