diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 54811a94b41..e283be2e88a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,47 @@ community.aws Release Notes .. contents:: Topics +v1.4.0 +====== + +Minor Changes +------------- + +- aws_kms - add support for setting the deletion window using `pending_window` (PendingWindowInDays) (https://github.com/ansible-collections/community.aws/pull/200). +- aws_kms_info - Add ``key_id`` and ``alias`` parameters to support fetching a single key (https://github.com/ansible-collections/community.aws/pull/200). +- dynamodb_ttl - use ``botocore_at_least`` helper for checking the available botocore version (https://github.com/ansible-collections/community.aws/pull/280). +- ec2_instance - add automatic retries on all paginated queries for temporary errors (https://github.com/ansible-collections/community.aws/pull/373). +- ec2_instance - migrate to shared implementation of get_ec2_security_group_ids_from_names. The module will now return an error if the subnet provided isn't in the requested VPC. (https://github.com/ansible-collections/community.aws/pull/214) +- ec2_instance_info - added ``minimum_uptime`` option with alias ``uptime`` for filtering instances that have only been online for certain duration of time in minutes (https://github.com/ansible-collections/community.aws/pull/356). +- ec2_launch_template - Add retries on common AWS failures (https://github.com/ansible-collections/community.aws/pull/326). +- ec2_vpc_peer - use ``botocore_at_least`` helper for checking the available botocore version (https://github.com/ansible-collections/community.aws/pull/280). +- ecs_task - use ``botocore_at_least`` helper for checking the available botocore version (https://github.com/ansible-collections/community.aws/pull/280). +- route53 - migrated from boto to boto3 (https://github.com/ansible-collections/community.aws/pull/405). +- various community.aws modules - cleanup error handling to use ``is_boto3_error_code`` and ``is_boto3_error_message`` helpers (https://github.com/ansible-collections/community.aws/pull/268). +- various community.aws modules - cleanup of Python imports (https://github.com/ansible-collections/community.aws/pull/360). +- various community.aws modules - improve consistency of handling Boto3 exceptions (https://github.com/ansible-collections/community.aws/pull/268). +- various community.aws modules - migrate exception error message handling from fail_json to fail_json_aws (https://github.com/ansible-collections/community.aws/pull/361). + +Deprecated Features +------------------- + +- ec2_eip - formally deprecate the ``instance_id`` alias for ``device_id`` (https://github.com/ansible-collections/community.aws/pull/349). +- ec2_vpc_endpoint - deprecate the policy_file option and recommend using policy with a lookup (https://github.com/ansible-collections/community.aws/pull/366). + +Bugfixes +-------- + +- aws_kms - fixes issue where module execution fails without the kms:GetKeyRotationStatus permission. (https://github.com/ansible-collections/community.aws/pull/200). +- aws_kms_info - ensure that searching by tag works when tag only exists on some CMKs (https://github.com/ansible-collections/community.aws/issues/276). +- aws_s3_cors - fix element type for rules parameter. (https://github.com/ansible-collections/community.aws/pull/408). +- aws_ssm - fix the generation of CURL URL used to download Ansible Python file from S3 bucket by ```_get_url()``` due to due to non-assignment of aws region in the URL and not using V4 signature as specified for AWS S3 signature URL by ```_get_boto_client()``` in (https://github.com/ansible-collections/community.aws/pull/352). +- aws_ssm - fixed ``UnicodeEncodeError`` error when using unicode file names (https://github.com/ansible-collections/community.aws/pull/295). +- ec2_eip - fix eip association by instance id & private ip address due to case-sensitivity of the ``PrivateIpAddress`` parameter (https://github.com/ansible-collections/community.aws/pull/328). +- ec2_vpc_endpoint - ensure ``changed`` is correctly set when deleting an endpoint (https://github.com/ansible-collections/community.aws/pull/362). +- ec2_vpc_endpoint - fix exception when attempting to delete an endpoint which has already been deleted (https://github.com/ansible-collections/community.aws/pull/362). +- ecs_task - use `required_if` to enforce mandatory parameters based on specified operation (https://github.com/ansible-collections/community.aws/pull/402). +- elb_application_lb - during the removal of an instance, the associated listeners are also removed. + v1.3.0 ====== diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 25102ab8cc6..156c7c57eba 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -802,3 +802,80 @@ releases: name: s3_metrics_configuration namespace: '' release_date: '2020-12-10' + 1.4.0: + changes: + bugfixes: + - aws_kms - fixes issue where module execution fails without the kms:GetKeyRotationStatus + permission. (https://github.com/ansible-collections/community.aws/pull/200). + - aws_kms_info - ensure that searching by tag works when tag only exists on + some CMKs (https://github.com/ansible-collections/community.aws/issues/276). + - aws_s3_cors - fix element type for rules parameter. (https://github.com/ansible-collections/community.aws/pull/408). + - aws_ssm - fix the generation of CURL URL used to download Ansible Python file + from S3 bucket by ```_get_url()``` due to due to non-assignment of aws region + in the URL and not using V4 signature as specified for AWS S3 signature URL + by ```_get_boto_client()``` in (https://github.com/ansible-collections/community.aws/pull/352). + - aws_ssm - fixed ``UnicodeEncodeError`` error when using unicode file names + (https://github.com/ansible-collections/community.aws/pull/295). + - ec2_eip - fix eip association by instance id & private ip address due to case-sensitivity + of the ``PrivateIpAddress`` parameter (https://github.com/ansible-collections/community.aws/pull/328). + - ec2_vpc_endpoint - ensure ``changed`` is correctly set when deleting an endpoint + (https://github.com/ansible-collections/community.aws/pull/362). + - ec2_vpc_endpoint - fix exception when attempting to delete an endpoint which + has already been deleted (https://github.com/ansible-collections/community.aws/pull/362). + - ecs_task - use `required_if` to enforce mandatory parameters based on specified + operation (https://github.com/ansible-collections/community.aws/pull/402). + - elb_application_lb - during the removal of an instance, the associated listeners + are also removed. + deprecated_features: + - ec2_eip - formally deprecate the ``instance_id`` alias for ``device_id`` (https://github.com/ansible-collections/community.aws/pull/349). + - ec2_vpc_endpoint - deprecate the policy_file option and recommend using policy + with a lookup (https://github.com/ansible-collections/community.aws/pull/366). + minor_changes: + - aws_kms - add support for setting the deletion window using `pending_window` + (PendingWindowInDays) (https://github.com/ansible-collections/community.aws/pull/200). + - aws_kms_info - Add ``key_id`` and ``alias`` parameters to support fetching + a single key (https://github.com/ansible-collections/community.aws/pull/200). + - dynamodb_ttl - use ``botocore_at_least`` helper for checking the available + botocore version (https://github.com/ansible-collections/community.aws/pull/280). + - ec2_instance - add automatic retries on all paginated queries for temporary + errors (https://github.com/ansible-collections/community.aws/pull/373). + - ec2_instance - migrate to shared implementation of get_ec2_security_group_ids_from_names. + The module will now return an error if the subnet provided isn't in the requested + VPC. (https://github.com/ansible-collections/community.aws/pull/214) + - ec2_instance_info - added ``minimum_uptime`` option with alias ``uptime`` + for filtering instances that have only been online for certain duration of + time in minutes (https://github.com/ansible-collections/community.aws/pull/356). + - ec2_launch_template - Add retries on common AWS failures (https://github.com/ansible-collections/community.aws/pull/326). + - ec2_vpc_peer - use ``botocore_at_least`` helper for checking the available + botocore version (https://github.com/ansible-collections/community.aws/pull/280). + - ecs_task - use ``botocore_at_least`` helper for checking the available botocore + version (https://github.com/ansible-collections/community.aws/pull/280). + - route53 - migrated from boto to boto3 (https://github.com/ansible-collections/community.aws/pull/405). + - various community.aws modules - cleanup error handling to use ``is_boto3_error_code`` + and ``is_boto3_error_message`` helpers (https://github.com/ansible-collections/community.aws/pull/268). + - various community.aws modules - cleanup of Python imports (https://github.com/ansible-collections/community.aws/pull/360). + - various community.aws modules - improve consistency of handling Boto3 exceptions + (https://github.com/ansible-collections/community.aws/pull/268). + - various community.aws modules - migrate exception error message handling from + fail_json to fail_json_aws (https://github.com/ansible-collections/community.aws/pull/361). + fragments: + - 200-aws_kms-deletion.yaml + - 214-get_ec2_security_group_ids_from_names.yml + - 268-is_boto3_error.yml + - 280-cleanup-botocore_at_least.yml + - 295-connection-aws_ssm.yml + - 326-launch_template_retry.yml + - 328-fix-ec2_eip-instance-id-private-ip-address.yml + - 349-ec2_eip-deprecate-instance_id.yml + - 350_elb_application_lb_purges_listeners.yaml + - 352-fix-aws-region-and-v4-signature-for-s3-boto-client.yml + - 356_add_minimum_uptime_parameter.yaml + - 360-imports-cleanup.yml + - 361-fail_json_aws.yml + - 362-ec2_vpc_endpoint-deletion-changed.yml + - 366-ec2_vpc_endpoint-policy_file.yml + - 373-ec2_instance-retry-pagination.yml + - 402-ecs_task-mandatory_params.yml + - 404-fix-dict-element-for-rule-param-in-aws-s3-cors.yml + - 405-route53-boto3.yml + release_date: '2021-02-16' diff --git a/changelogs/fragments/200-aws_kms-deletion.yaml b/changelogs/fragments/200-aws_kms-deletion.yaml deleted file mode 100644 index 4da546c93c0..00000000000 --- a/changelogs/fragments/200-aws_kms-deletion.yaml +++ /dev/null @@ -1,6 +0,0 @@ -bugfixes: -- aws_kms - fixes issue where module execution fails without the kms:GetKeyRotationStatus permission. (https://github.com/ansible-collections/community.aws/pull/200). -- aws_kms_info - ensure that searching by tag works when tag only exists on some CMKs (https://github.com/ansible-collections/community.aws/issues/276). -minor_changes: -- aws_kms - add support for setting the deletion window using `pending_window` (PendingWindowInDays) (https://github.com/ansible-collections/community.aws/pull/200). -- aws_kms_info - Add ``key_id`` and ``alias`` parameters to support fetching a single key (https://github.com/ansible-collections/community.aws/pull/200). diff --git a/changelogs/fragments/214-get_ec2_security_group_ids_from_names.yml b/changelogs/fragments/214-get_ec2_security_group_ids_from_names.yml deleted file mode 100644 index 65feeec7848..00000000000 --- a/changelogs/fragments/214-get_ec2_security_group_ids_from_names.yml +++ /dev/null @@ -1,4 +0,0 @@ -minor_changes: -- ec2_instance - migrate to shared implementation of get_ec2_security_group_ids_from_names. - The module will now return an error if the subnet provided isn't in the requested VPC. - (https://github.com/ansible-collections/community.aws/pull/214) diff --git a/changelogs/fragments/268-is_boto3_error.yml b/changelogs/fragments/268-is_boto3_error.yml deleted file mode 100644 index ad7b2ff1559..00000000000 --- a/changelogs/fragments/268-is_boto3_error.yml +++ /dev/null @@ -1,3 +0,0 @@ -minor_changes: -- various community.aws modules - cleanup error handling to use ``is_boto3_error_code`` and ``is_boto3_error_message`` helpers (https://github.com/ansible-collections/community.aws/pull/268). -- various community.aws modules - improve consistency of handling Boto3 exceptions (https://github.com/ansible-collections/community.aws/pull/268). diff --git a/changelogs/fragments/280-cleanup-botocore_at_least.yml b/changelogs/fragments/280-cleanup-botocore_at_least.yml deleted file mode 100644 index 359bfaa110e..00000000000 --- a/changelogs/fragments/280-cleanup-botocore_at_least.yml +++ /dev/null @@ -1,4 +0,0 @@ -minor_changes: -- dynamodb_ttl - use ``botocore_at_least`` helper for checking the available botocore version (https://github.com/ansible-collections/community.aws/pull/280). -- ec2_vpc_peer - use ``botocore_at_least`` helper for checking the available botocore version (https://github.com/ansible-collections/community.aws/pull/280). -- ecs_task - use ``botocore_at_least`` helper for checking the available botocore version (https://github.com/ansible-collections/community.aws/pull/280). diff --git a/changelogs/fragments/295-connection-aws_ssm.yml b/changelogs/fragments/295-connection-aws_ssm.yml deleted file mode 100644 index 049d3d9f334..00000000000 --- a/changelogs/fragments/295-connection-aws_ssm.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- aws_ssm - fixed ``UnicodeEncodeError`` error when using unicode file names (https://github.com/ansible-collections/community.aws/pull/295). diff --git a/changelogs/fragments/326-launch_template_retry.yml b/changelogs/fragments/326-launch_template_retry.yml deleted file mode 100644 index ab7506d8847..00000000000 --- a/changelogs/fragments/326-launch_template_retry.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- ec2_launch_template - Add retries on common AWS failures (https://github.com/ansible-collections/community.aws/pull/326). diff --git a/changelogs/fragments/328-fix-ec2_eip-instance-id-private-ip-address.yml b/changelogs/fragments/328-fix-ec2_eip-instance-id-private-ip-address.yml deleted file mode 100644 index 8701cdd8694..00000000000 --- a/changelogs/fragments/328-fix-ec2_eip-instance-id-private-ip-address.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - ec2_eip - fix eip association by instance id & private ip address due to case-sensitivity of the ``PrivateIpAddress`` parameter (https://github.com/ansible-collections/community.aws/pull/328). diff --git a/changelogs/fragments/349-ec2_eip-deprecate-instance_id.yml b/changelogs/fragments/349-ec2_eip-deprecate-instance_id.yml deleted file mode 100644 index 35bfd8835c7..00000000000 --- a/changelogs/fragments/349-ec2_eip-deprecate-instance_id.yml +++ /dev/null @@ -1,2 +0,0 @@ -deprecated_features: -- ec2_eip - formally deprecate the ``instance_id`` alias for ``device_id`` (https://github.com/ansible-collections/community.aws/pull/349). diff --git a/changelogs/fragments/350_elb_application_lb_purges_listeners.yaml b/changelogs/fragments/350_elb_application_lb_purges_listeners.yaml deleted file mode 100644 index 616ffa019bd..00000000000 --- a/changelogs/fragments/350_elb_application_lb_purges_listeners.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- elb_application_lb - during the removal of an instance, the associated listeners are also removed. diff --git a/changelogs/fragments/352-fix-aws-region-and-v4-signature-for-s3-boto-client.yml b/changelogs/fragments/352-fix-aws-region-and-v4-signature-for-s3-boto-client.yml deleted file mode 100644 index 8fe59379698..00000000000 --- a/changelogs/fragments/352-fix-aws-region-and-v4-signature-for-s3-boto-client.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - aws_ssm - fix the generation of CURL URL used to download Ansible Python file from S3 bucket by ```_get_url()``` due to due to non-assignment of aws region in the URL and not using V4 signature as specified for AWS S3 signature URL by ```_get_boto_client()``` in (https://github.com/ansible-collections/community.aws/pull/352). \ No newline at end of file diff --git a/changelogs/fragments/356_add_minimum_uptime_parameter.yaml b/changelogs/fragments/356_add_minimum_uptime_parameter.yaml deleted file mode 100644 index c436c96f0ea..00000000000 --- a/changelogs/fragments/356_add_minimum_uptime_parameter.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- ec2_instance_info - added ``minimum_uptime`` option with alias ``uptime`` for filtering instances that have only been online for certain duration of time in minutes (https://github.com/ansible-collections/community.aws/pull/356). diff --git a/changelogs/fragments/360-imports-cleanup.yml b/changelogs/fragments/360-imports-cleanup.yml deleted file mode 100644 index dae43e8d1ec..00000000000 --- a/changelogs/fragments/360-imports-cleanup.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- various community.aws modules - cleanup of Python imports (https://github.com/ansible-collections/community.aws/pull/360). diff --git a/changelogs/fragments/361-fail_json_aws.yml b/changelogs/fragments/361-fail_json_aws.yml deleted file mode 100644 index 6c7fc1ae1fe..00000000000 --- a/changelogs/fragments/361-fail_json_aws.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- various community.aws modules - migrate exception error message handling from fail_json to fail_json_aws (https://github.com/ansible-collections/community.aws/pull/361). diff --git a/changelogs/fragments/362-ec2_vpc_endpoint-deletion-changed.yml b/changelogs/fragments/362-ec2_vpc_endpoint-deletion-changed.yml deleted file mode 100644 index cb07235f8c0..00000000000 --- a/changelogs/fragments/362-ec2_vpc_endpoint-deletion-changed.yml +++ /dev/null @@ -1,3 +0,0 @@ -bugfixes: -- ec2_vpc_endpoint - ensure ``changed`` is correctly set when deleting an endpoint (https://github.com/ansible-collections/community.aws/pull/362). -- ec2_vpc_endpoint - fix exception when attempting to delete an endpoint which has already been deleted (https://github.com/ansible-collections/community.aws/pull/362). diff --git a/changelogs/fragments/366-ec2_vpc_endpoint-policy_file.yml b/changelogs/fragments/366-ec2_vpc_endpoint-policy_file.yml deleted file mode 100644 index 1057736bc5b..00000000000 --- a/changelogs/fragments/366-ec2_vpc_endpoint-policy_file.yml +++ /dev/null @@ -1,2 +0,0 @@ -deprecated_features: -- ec2_vpc_endpoint - deprecate the policy_file option and recommend using policy with a lookup (https://github.com/ansible-collections/community.aws/pull/366). diff --git a/changelogs/fragments/373-ec2_instance-retry-pagination.yml b/changelogs/fragments/373-ec2_instance-retry-pagination.yml deleted file mode 100644 index ff9ddb80804..00000000000 --- a/changelogs/fragments/373-ec2_instance-retry-pagination.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- ec2_instance - add automatic retries on all paginated queries for temporary errors (https://github.com/ansible-collections/community.aws/pull/373). diff --git a/changelogs/fragments/402-ecs_task-mandatory_params.yml b/changelogs/fragments/402-ecs_task-mandatory_params.yml deleted file mode 100644 index 924f15507b6..00000000000 --- a/changelogs/fragments/402-ecs_task-mandatory_params.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- ecs_task - use `required_if` to enforce mandatory parameters based on specified operation (https://github.com/ansible-collections/community.aws/pull/402). diff --git a/changelogs/fragments/404-fix-dict-element-for-rule-param-in-aws-s3-cors.yml b/changelogs/fragments/404-fix-dict-element-for-rule-param-in-aws-s3-cors.yml deleted file mode 100644 index e6eb68bbabd..00000000000 --- a/changelogs/fragments/404-fix-dict-element-for-rule-param-in-aws-s3-cors.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- aws_s3_cors - fix element type for rules parameter. (https://github.com/ansible-collections/community.aws/pull/408). diff --git a/changelogs/fragments/405-route53-boto3.yml b/changelogs/fragments/405-route53-boto3.yml deleted file mode 100644 index eb8f59fb18a..00000000000 --- a/changelogs/fragments/405-route53-boto3.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- route53 - migrated from boto to boto3 (https://github.com/ansible-collections/community.aws/pull/405). diff --git a/docs/community.aws.aws_kms_info_module.rst b/docs/community.aws.aws_kms_info_module.rst index c8a33762150..d13db70e882 100644 --- a/docs/community.aws.aws_kms_info_module.rst +++ b/docs/community.aws.aws_kms_info_module.rst @@ -41,6 +41,24 @@ Parameters
tag-key
, tag-value
and tag:tagName
) are available, as are key-id
and alias
60
return all instances that have run more than 60 minutes.