community.aws 版本说明
v9.0.0
版本概要
此版本包含一些新功能、错误修复和重大更改。一些模块已迁移到 amazon.aws,并且需要更新这些模块的完整限定集合名称。community.aws 集合已放弃对 botocore<1.31.0 和 boto3<1.28.0 的支持。由于 AWS SDK 宣布不再支持 Python 3.8 以下版本(https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对 Python 3.8 以下版本的支持在此版本中已弃用,并将在 10.0.0 版本中移除(https://github.com/ansible-collections/community.aws/pull/2194)。
次要更改
autoscaling_instance_refresh - 在
preference
中添加对skip_matching
和max_healthy_percentage
的支持(https://github.com/ansible-collections/community.aws/pull/2150)。autoscaling_instance_refresh - 重构模块以使用来自
ansible_collections.amazon.aws.plugins.module_utils.autoscaling
的共享代码并添加类型提示(https://github.com/ansible-collections/community.aws/pull/2150)。autoscaling_instance_refresh_info - 重构模块以使用来自
ansible_collections.amazon.aws.plugins.module_utils.autoscaling
的共享代码并添加类型提示(https://github.com/ansible-collections/community.aws/pull/2150)。ec2_launch_template - 添加选项
tag_specifications
以定义要应用于使用启动模板创建的资源的标签(https://github.com/ansible-collections/community.aws/issues/176)。ec2_launch_template - 向
block_device_mappings
参数添加子选项throughput
(https://github.com/ansible-collections/community.aws/issues/1944)。ec2_launch_template - 添加支持
purge_tags
参数(https://github.com/ansible-collections/community.aws/issues/176)。ec2_launch_template - 使用
versions_to_delete
添加删除启动模板特定版本的功能(https://github.com/ansible-collections/community.aws/pull/2164)。ec2_launch_template - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码并更新RETURN
块(https://github.com/ansible-collections/community.aws/pull/2164)。ec2_placement_group - 添加了使用
tags
创建的支持(https://github.com/ansible-collections/community.aws/pull/2081)。ec2_placement_group - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码并更新RETURN
块(https://github.com/ansible-collections/community.aws/pull/2167)。ec2_transit_gateway - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码并更新RETURN
块(https://github.com/ansible-collections/community.aws/pull/2158)。ec2_transit_gateway - 支持在 Transit Gateway 上启用组播功能 (https://github.com/ansible-collections/community.aws/pull/2063).
ec2_transit_gateway_info - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码并更新RETURN
块 (https://github.com/ansible-collections/community.aws/pull/2158).ec2_transit_gateway_vpc_attachment - 修改文档并重构以符合编码规范 (https://github.com/ansible-collections/community.aws/pull/2157).
ec2_vpc_egress_igw - 添加了更新/添加仅限出口互联网网关标签的可能性 (https://github.com/ansible-collections/community.aws/pull/2152).
ec2_vpc_egress_igw - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码 (https://github.com/ansible-collections/community.aws/pull/2152).ec2_vpc_nacl - 重构模块以使用来自 amazon.aws.plugins.module_utils.ec2 的共享代码 (https://github.com/ansible-collections/community.aws/pull/2159).
ec2_vpc_nacl_info - 重构模块以使用来自 amazon.aws.plugins.module_utils.ec2 的共享代码 (https://github.com/ansible-collections/community.aws/pull/2159).
ec2_vpc_peer - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码 (https://github.com/ansible-collections/community.aws/pull/2153).ec2_vpc_peering_info - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码 (https://github.com/ansible-collections/community.aws/pull/2153).ec2_vpc_vgw - 修复对
VGWRetry
类中父静态方法的调用 (https://github.com/ansible-collections/community.aws/pull/2140).ec2_vpc_vgw - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码并更新RETURN
块 (https://github.com/ansible-collections/community.aws/pull/2171).ec2_vpc_vgw_info - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码并更新RETURN
块 (https://github.com/ansible-collections/community.aws/pull/2171).ec2_vpc_vpn - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码 (https://github.com/ansible-collections/community.aws/pull/2160).ec2_vpc_vpn_info - 重构模块以使用来自
amazon.aws.plugins.module_utils.ec2
的共享代码 (https://github.com/ansible-collections/community.aws/pull/2160).elb_classic_lb_info - 重构 elb_classic_lb_info 模块 (https://github.com/ansible-collections/community.aws/pull/2139).
重大变更/移植指南
community.aws 集合已停止支持
botocore<1.31.0
和boto3<1.28.0
。大多数模块将继续与较旧版本的 AWS SDK 兼容。但是,不能保证与较旧版本 SDK 的兼容性,并且不会对其进行测试。使用较旧版本的 SDK 时,Ansible 将发出警告 (https://github.com/ansible-collections/community.aws/pull/2195).autoscaling_instance_refresh - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.autoscaling_instance_refresh
(https://github.com/ansible-collections/community.aws/pull/2177).autoscaling_instance_refresh_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.autoscaling_instance_refresh_info
(https://github.com/ansible-collections/community.aws/pull/2177).ec2_launch_template - 使用选项
tags
定义的标签现在应用于启动模板资源,而不是使用此启动模板创建的资源 (https://github.com/ansible-collections/community.aws/issues/176).ec2_launch_template - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_launch_template
(https://github.com/ansible-collections/community.aws/pull/2185).ec2_placement_group - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_placement_group
。ec2_placement_group_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_placement_group_info
。ec2_transit_gateway - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway
。ec2_transit_gateway_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway_info
。ec2_transit_gateway_vpc_attachment - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway_vpc_attachment
。ec2_transit_gateway_vpc_attachment_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway_vpc_attachment_info
。ec2_vpc_egress_igw - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_egress_igw
(https://api.github.com/repos/ansible-collections/community.aws/pulls/2169).ec2_vpc_nacl - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_nacl
(https://github.com/ansible-collections/community.aws/pull/2178).ec2_vpc_nacl_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_nacl_info
(https://github.com/ansible-collections/community.aws/pull/2178).ec2_vpc_peer - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_peer
。ec2_vpc_peering_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_peering_info
。ec2_vpc_vgw - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vgw
。ec2_vpc_vgw_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vgw_info
。ec2_vpc_vpn - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vpn
。ec2_vpc_vpn_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vpn_info
。ecs_cluster - 参数
purge_capacity_providers
默认为 true。(https://github.com/ansible-collections/community.aws/pull/2165).elb_classic_lb_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.elb_classic_lb_info
。iam_policy -
connection_properties
返回键之前已弃用,现已删除,请改用raw_connection_properties
(https://github.com/ansible-collections/community.aws/pull/2165).
已弃用的功能
community.aws 集合 - 由于 AWS SDK 宣布停止支持低于 3.8 的 Python 版本 (https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对低于 3.8 的 Python 版本的支持已被弃用,并将在 10.0.0 版本中删除 (https://github.com/ansible-collections/community.aws/pull/2195).
错误修复
autoscaling_instance_refresh - 修复模块
exit_json
中的拼写错误(https://github.com/ansible-collections/community.aws/issues/2019)。ecs_taskdefinition - 通过使用重试机制,避免在具有大量修订的任务定义上出现节流异常(https://github.com/ansible-collections/community.aws/issues/2123)。
v8.0.0
发行概要
此主要版本带来了几个新功能、错误修复和弃用功能。它还包括删除已迁移到amazon.aws
集合的多个模块。我们还删除了对ansible-core<2.15
的支持。
次要更改
api_gateway - 在适当的地方使用f字符串(https://github.com/ansible-collections/amazon.aws/pull/1962)。
api_gateway_info - 在适当的地方使用f字符串(https://github.com/ansible-collections/amazon.aws/pull/1962)。
community.aws 集合 - 应用isort代码格式化以确保代码格式的一致性(https://github.com/ansible-collections/community.aws/pull/1962)。
ecs_taskdefinition - 添加参数
runtime_platform
(https://github.com/ansible-collections/community.aws/issues/1891)。eks_nodegroup - 确保当
wait==True
时,等待也等待删除完成(https://github.com/ansible-collections/community.aws/pull/1994)。elb_network_lb - 为TLS监听器添加对应用程序层协议协商(ALPN)策略
AlpnPolicy
的支持(https://github.com/ansible-collections/community.aws/issues/1566)。elb_network_lb - 添加了更新TLS监听器的
SslPolicy
和Certificates
的可能性。
重大更改/移植指南
community.aws 集合已放弃对
botocore<1.29.0
和boto3<1.26.0
的支持。大多数模块将继续与较旧版本的AWS SDK一起使用,但是,不保证与较旧版本SDK的兼容性,并且不会对其进行测试。使用较旧版本的SDK时,Ansible将发出警告(https://github.com/ansible-collections/amazon.aws/pull/1763)。aws_region_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.aws_region_info
。aws_s3_bucket_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.aws_s3_bucket_info
。community.aws 集合 - 已放弃对ansible-core < 2.15的支持(https://github.com/ansible-collections/community.aws/pull/2074)。
community.aws 集合 - 由于AWS SDK宣布终止对低于3.7的Python版本的支持(https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对低于3.7的Python版本的支持已在6.0.0版本中弃用,并在7.0.0版本中删除。(https://github.com/ansible-collections/amazon.aws/pull/1763)。
iam_access_key - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_access_key
。iam_access_key_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_access_key_info
。iam_group - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_group
(https://github.com/ansible-collections/community.aws/pull/1945)。iam_managed_policy - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_managed_policy
(https://github.com/ansible-collections/community.aws/pull/1954)。iam_mfa_device_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_mfa_device_info
(https://github.com/ansible-collections/community.aws/pull/1953)。iam_password_policy - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_password_policy
。iam_role - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_role
(https://github.com/ansible-collections/community.aws/pull/1948)。iam_role_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_role_info
(https://github.com/ansible-collections/community.aws/pull/1948)。s3_bucket_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.s3_bucket_info
。sts_assume_role - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.sts_assume_role
。
弃用功能
aws_glue_connection - 将
connection_parameters
返回键从after 2024-06-01
的删除弃用更新为9.0.0
版本,它将被raw_connection_parameters
键替换(https://github.com/ansible-collections/community.aws/pull/518)。ecs_cluster - 更新了
purge_capacity_providers
更新默认值的弃用说明,当前的默认值False
将在9.0.0
版本中更改为True
。要保持当前行为,请显式设置purge_capacity_providers=False
(https://github.com/ansible-collections/community.aws/pull/1640)。ecs_service - 更新了
purge_placement_constraints
更新默认值的弃用说明,当前的默认值False
将在9.0.0
版本中更改为True
。要保持当前行为,请显式设置purge_placement_constraints=False
(https://github.com/ansible-collections/community.aws/pull/1716)。ecs_service - 更新了
purge_placement_strategy
更新默认值的弃用说明,当前的默认值False
将在9.0.0
版本中更改为True
。要保持当前行为,请显式设置purge_placement_strategy=False
(https://github.com/ansible-collections/community.aws/pull/1716)。
错误修复
mq_broker - 确保在传递
tags
时使用tags
创建代理(https://github.com/ansible-collections/community.aws/issues/1832)。opensearch - 不要尝试从域配置中读取不存在的键(https://github.com/ansible-collections/community.aws/pull/1910)。
v7.2.0
发行概要
此版本包含一个新模块dynamodb_table_info
,glue_job
和msk_cluster
模块的新功能,以及aws_ssm
连接插件的错误修复。
次要更改
glue_job - 添加对两种新的实例类型G.4X和G.8X的支持(https://github.com/ansible-collections/community.aws/pull/2048)。
msk_cluster - 支持其他
m5
和m7g
类型的MSK集群(https://github.com/ansible-collections/community.aws/pull/1947)。
错误修复
ssm(连接) - 修复区域为
us-east-1
时的bucket区域逻辑(https://github.com/ansible-collections/community.aws/pull/1908)。
新模块
dynamodb_table_info - 返回有关Dynamo DB表的相关信息。
v7.1.0
发行概要
此版本包含针对cloudfront_distribution
和mq_broker
模块的新功能,以及针对连接到使用 Bash 5.1.0 及更高版本的宿主机时所需的aws_ssm
连接插件的错误修复。
次要更改
aws_ssm - 更新了文档,明确说明需要 S3 存储桶、该存储桶中文件的行为以及相关要求。(https://github.com/ansible-collections/community.aws/issues/1775)。
cloudfront_distribution - 为行为添加了对
cache_policy_id
和origin_request_policy_id
的支持。(https://github.com/ansible-collections/community.aws/pull/1589)mq_broker - 通过
wait
和wait_timeout
参数值添加了等待代理状态的支持。(https://github.com/ansible-collections/community.aws/pull/1879)。
错误修复
aws_ssm - 禁用
enable-bracketed-paste
以修复 Amazon Linux 2023 和其他操作系统的问题。(https://github.com/ansible-collections/community.aws/issues/1756)
v7.0.0
发行概要
此版本包含一些新功能、错误修复和重大更改。一些模块已迁移到 amazon.aws,需要更新这些模块的完全限定集合名称。community.aws 集合已放弃对botocore<1.29.0
和boto3<1.26.0
的支持。由于 AWS SDK 宣布终止对低于 3.7 的 Python 版本的支持(https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对低于 3.7 的 Python 版本的支持已在 6.0.0 版本中弃用,并在 7.0.0 版本中移除。(https://github.com/ansible-collections/amazon.aws/pull/1763)。
次要更改
api_gateway - 在适当的地方使用f字符串(https://github.com/ansible-collections/amazon.aws/pull/1962)。
api_gateway_info - 在适当的地方使用f字符串(https://github.com/ansible-collections/amazon.aws/pull/1962)。
community.aws 集合 - 应用isort代码格式化以确保代码格式的一致性(https://github.com/ansible-collections/community.aws/pull/1962)。
ecs_taskdefinition - 添加参数
runtime_platform
(https://github.com/ansible-collections/community.aws/issues/1891)。eks_nodegroup - 确保当
wait==True
时,等待也等待删除完成(https://github.com/ansible-collections/community.aws/pull/1994)。
重大更改/移植指南
community.aws 集合已放弃对
botocore<1.29.0
和boto3<1.26.0
的支持。大多数模块将继续与较旧版本的AWS SDK一起使用,但是,不保证与较旧版本SDK的兼容性,并且不会对其进行测试。使用较旧版本的SDK时,Ansible将发出警告(https://github.com/ansible-collections/amazon.aws/pull/1763)。aws_region_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.aws_region_info
。aws_s3_bucket_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.aws_s3_bucket_info
。community.aws 集合 - 由于AWS SDK宣布终止对低于3.7的Python版本的支持(https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对低于3.7的Python版本的支持已在6.0.0版本中弃用,并在7.0.0版本中删除。(https://github.com/ansible-collections/amazon.aws/pull/1763)。
iam_access_key - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_access_key
。iam_access_key_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_access_key_info
。iam_group - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_group
(https://github.com/ansible-collections/community.aws/pull/1945)。iam_managed_policy - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_managed_policy
(https://github.com/ansible-collections/community.aws/pull/1954)。iam_mfa_device_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_mfa_device_info
(https://github.com/ansible-collections/community.aws/pull/1953)。iam_password_policy - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_password_policy
。iam_role - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_role
(https://github.com/ansible-collections/community.aws/pull/1948)。iam_role_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_role_info
(https://github.com/ansible-collections/community.aws/pull/1948)。s3_bucket_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.s3_bucket_info
。sts_assume_role - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.sts_assume_role
。
错误修复
mq_broker - 确保在传递
tags
时使用tags
创建代理(https://github.com/ansible-collections/community.aws/issues/1832)。opensearch - 不要尝试从域配置中读取不存在的键(https://github.com/ansible-collections/community.aws/pull/1910)。
v6.2.0
发行概要
此版本包含针对community.aws.ec2_vpc_vpn
和community.aws.api_gateway
模块的一些新功能。
次要更改
api_gateway - 添加了对参数
name
、lookup
、tags
和purge_tags
的支持。(https://github.com/ansible-collections/community.aws/pull/1845)。ec2_vpc_vpn - 添加了对将 VPN 连接到传输网关的支持。(https://github.com/ansible-collections/community.aws/pull/1877)。
错误修复
从 meta/runtime.yml 中删除
apigateway
和apigateway_deployment
。(https://github.com/ansible-collections/community.aws/pull/1905)。
v6.1.0
发行概要
此版本带来一个新的清单插件、一些新功能和几个错误修复。
次要更改
dynamodb_table - 更新索引时添加了等待器,以避免并发问题。(https://github.com/ansible-collections/community.aws/pull/1866)。
dynamodb_table - 基于在 CI 中更新索引所需的时间增加了默认超时时间。(https://github.com/ansible-collections/community.aws/pull/1866)。
iam_group - 重构了 ARN 验证处理。(https://github.com/ansible-collections/community.aws/pull/1848)。
iam_role - 重构了 ARN 验证处理。(https://github.com/ansible-collections/community.aws/pull/1848)。
sns_topic - 重构了 ARN 验证处理。(https://github.com/ansible-collections/community.aws/pull/1848)。
错误修复
batch_compute_environment - 修复了
compute_environment_name
参数中 Gov Cloud ARN 的处理错误。(https://github.com/ansible-collections/community.aws/issues/1846)。cloudfront_distribution - 源现在可以识别包含区域部分的 s3 域名。(https://github.com/ansible-collections/community.aws/issues/1819)。
cloudfront_distribution - 创建完成时不再崩溃。(https://github.com/ansible-collections/community.aws/issues/255)。
cloudfront_distribution - 现在遵守
enabled
设置。(https://github.com/ansible-collections/community.aws/issues/1823)。dynamodb_table - 现在可以创建辅助索引。(https://github.com/ansible-collections/community.aws/issues/1825)。
ec2_launch_template - 修复了
compute_environment_name
参数中 Gov Cloud ARN 的处理错误。(https://github.com/ansible-collections/community.aws/issues/1846)。elasticache_info - 删除了硬编码的
aws
分区的使用。(https://github.com/ansible-collections/community.aws/issues/1846)。iam_role - 修复了
boundary
参数中 Gov Cloud ARN 的错误拒绝。(https://github.com/ansible-collections/community.aws/issues/1846)。msk_cluster - 删除了硬编码的
aws
分区的使用。(https://github.com/ansible-collections/community.aws/issues/1846)。redshift - 修复了硬编码的
aws
分区的使用。(https://github.com/ansible-collections/community.aws/issues/1846)。
新的插件
清单
aws_mq - MQ 代理清单源
v6.0.0
发行概要
此版本带来了一些新的插件和功能。还包含一些错误修复、重大更改和弃用的功能。community.aws 集合已放弃对botocore<1.25.0
和boto3<1.22.0
的支持。还放弃了对 Python 3.6 的支持。
次要更改
已在整个集合中运行
black
代码格式化程序,以提高代码一致性。(https://github.com/ansible-collections/community.aws/pull/1784)。aws_config_delivery_channel - 通过 KMS 密钥添加了对 S3 中加密对象的的支持。(https://github.com/ansible-collections/community.aws/pull/1786)。
aws_ssm - 更新了文档,明确提到该插件不支持
ansible_user
和remote_user
变量。(https://github.com/ansible-collections/community.aws/pull/1682)。批量迁移
%
和.format()
到 f-string。(https://github.com/ansible-collections/community.aws/pull/1810)。cloudfront_distribution - 通过
http_version
参数的http2and3
参数值添加了http3
支持。(https://github.com/ansible-collections/community.aws/pull/1753)。cloudfront_distribution - 添加了
origin_shield
选项。(https://github.com/ansible-collections/community.aws/pull/1557)。cloudfront_distribution - 文档化了
connection_attempts
和connection_timeout
,模块已经能够使用它们。community.aws - 基于 amazon.aws 中的更改更新了文档片段。(https://github.com/ansible-collections/community.aws/pull/1738)。
community.aws - 基于 amazon.aws 中的更改更新了导入。(https://github.com/ansible-collections/community.aws/pull/1738)。
ecs_ecr - 在比较生命周期策略时,使用
compare_policies
代替简单的sort_json_policy_dict
比较。(https://github.com/ansible-collections/community.aws/pull/1551)。elasticache - 在示例中使用
cache.t3.small
节点类型。cache.m1.small
未弃用。次要代码修复并为 cloudfront_distribution、cloudfront_invalidation 和 cloudfront_origin_access_identity 模块启用集成测试。(https://github.com/ansible-collections/community.aws/pull/1596)。
module_utils.botocore - 添加 Ansible AWS 用户代理标识。(https://github.com/ansible-collections/community.aws/pull/1632)。
wafv2_rule_group_info - 删除未使用的和已弃用的
state
参数。(https://github.com/ansible-collections/community.aws/pull/1555)。
重大更改/移植指南
community.aws 集合已停止支持
botocore<1.25.0
和boto3<1.22.0
。大多数模块将继续与旧版本的 AWS SDK 兼容,但是,我们不保证与旧版 SDK 的兼容性,也不会对其进行测试。使用旧版 SDK 时,Ansible 将发出警告(https://github.com/ansible-collections/community.aws/pull/1743)。aws_ssm - AWS SSM 插件错误地将
sudo
添加到大多数命令之前。此行为不正确,现已移除。要以特定用户(包括root
用户)身份执行命令,应使用become
和become_user
指令。有关更多信息,请参阅Ansible 文档(https://github.com/ansible-collections/community.aws/issues/853)。codebuild_project -
tags
参数现在接受表示标签的字典,而不是 boto3 格式(https://github.com/ansible-collections/community.aws/pull/1643)。
已弃用的功能
community.aws 集合 - 由于 AWS SDK 的 Python 支持策略(https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对 Python 3.8 以下版本的支持预计将在 2024-12-01 后的某个版本中移除(https://github.com/ansible-collections/community.aws/pull/1743)。
community.aws 集合 - 由于 AWS SDK 宣布停止支持 Python 3.7 以下版本(https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对 Python 3.7 以下版本的支持已被弃用,并将在 7.0.0 版本中移除。(https://github.com/ansible-collections/community.aws/pull/1743)。
错误修复
opensearch_info - 修复示例中 domain_name 密钥的名称(https://github.com/ansible-collections/community.aws/pull/1811)。
ses_identity - 修复清除通知主题的问题(https://github.com/ansible-collections/community.aws/issues/150)。
新增模块
ec2_carrier_gateway - 管理 AWS VPC 运营商网关
ec2_carrier_gateway_info - 收集有关 AWS 中运营商网关的信息
lightsail_snapshot - 创建 AWS Lightsail 实例的快照
mq_broker - MQ 代理管理
mq_broker_config - 更新 Amazon MQ 代理配置
mq_broker_info - 检索 MQ 代理详细信息
mq_user - 管理现有 Amazon MQ 代理中的用户
mq_user_info - 列出 Amazon MQ 代理的用户
ssm_inventory_info - 获取 EC2 实例的 SSM 库存信息
v5.5.1
发行摘要
此版本包含一些错误修复。
错误修复
cloudfront_distribution - 创建完成时不再崩溃。(https://github.com/ansible-collections/community.aws/issues/255)。
cloudfront_distribution - 现在遵守
enabled
设置。(https://github.com/ansible-collections/community.aws/issues/1823)。
v5.5.0
发行摘要
此版本包含许多针对各个模块的错误修复,以及 ec2_launch_template
和 msk_cluster
模块的新功能。这是 6.0.0 版本发布之前的最后一个计划的次要版本。
次要更改
ec2_launch_template - 添加参数
version_description
(https://github.com/ansible-collections/community.aws/pull/1763)。msk_cluster - 添加 SASL/IAM 身份验证选项,并添加对禁用未经身份验证的客户端的支持(https://github.com/ansible-collections/community.aws/issues/1761)。
错误修复
cloudformation_stack_set - 添加等待程序以确保更新操作完成,然后再添加堆栈实例(https://github.com/ansible-collections/community.aws/issues/1608)。
eks_nodegroup - 修复
remote_access
选项的处理方式(https://github.com/ansible-collections/community.aws/issues/1771)。elasticache_info - 收集标签时忽略
CacheClusterNotFound
异常(https://github.com/ansible-collections/community.aws/pull/1777)。elb_target_group - 确保在传递
Id
和Port
时,目标定义中保留AvailabilityZone
(https://github.com/ansible-collections/community.aws/issues/1736)。elb_target_group - 仅当存在时,从
target_group
属性中获取ProtocolVersion
密钥(https://github.com/ansible-collections/community.aws/pull/1800)。msk_cluster - 修复使用 SASL/SCRAM 身份验证创建集群的问题(https://github.com/ansible-collections/community.aws/issues/1761)。
s3_lifecycle - 修复 transitions 列表的无效值类型(https://github.com/ansible-collections/community.aws/issues/1774)。
v5.4.0
发行摘要
此次次要版本为 sns
和 ecs_service
模块带来了次要的新功能。
次要更改
ecs_service - 添加了新参数
enable_execute_command
(https://github.com/ansible-collections/community.aws/pull/488)。ecs_service - 在更新失败时更清晰地处理 SDK 错误(https://github.com/ansible-collections/community.aws/pull/488)。
sns - 添加对
message_group_id
和message_deduplication_id
的支持(https://github.com/ansible-collections/community.aws/pull/1733)。
v5.3.0
发行摘要
此版本带来了一些次要更改、错误修复和弃用。
次要更改
aws_ssm - 添加了对指定连接到 S3 API 时要使用的端点的支持(https://github.com/ansible-collections/community.aws/pull/1619)。
aws_ssm - 删除未使用的导入(https://github.com/ansible-collections/community.aws/pull/1707)。
aws_ssm - 重构环境变量处理以使用内置的 Ansible 插件支持(https://github.com/ansible-collections/community.aws/pull/514)。
batch_job_definition - 将尾随逗号元组显式设置为元组(https://github.com/ansible-collections/community.aws/pull/1707)。
ecs_service - 当
force_new_deployment
为True
时,task_definition
现在是可选的(https://github.com/ansible-collections/community.aws/pull/1680)。ecs_service - 新参数
purge_placement_constraints
用于删除 ECS 服务的放置约束(https://github.com/ansible-collections/community.aws/pull/1716)。ecs_service - 新参数
purge_placement_strategy
用于删除 ECS 服务的放置策略(https://github.com/ansible-collections/community.aws/pull/1716)。iam_role - 向角色返回值添加了
assume_role_policy_document_raw
,这不会将策略文档内容从 CamelCase 转换为 snake_case(https://github.com/ansible-collections/community.aws/issues/551)。iam_role_info - 向角色返回值添加了
assume_role_policy_document_raw
,这不会将策略文档内容从 CamelCase 转换为 snake_case(https://github.com/ansible-collections/community.aws/issues/551)。inspector_target - 轻微的 lint 修复(https://github.com/ansible-collections/community.aws/pull/1707)。
s3_lifecycle - 添加参数
noncurrent_version_keep_newer
以设置要保留的最新非当前版本的数量(https://github.com/ansible-collections/community.aws/pull/1606)。secretsmanager_secret - 使用
replica
参数添加了对区域复制的支持(https://github.com/ansible-collections/community.aws/pull/827)。secretsmanager_secret - 添加了
overwrite
参数以支持仅在密钥不存在时设置密钥(https://github.com/ansible-collections/community.aws/pull/1628)。sns_topic - 添加对
content_based_deduplication
参数的支持(https://github.com/ansible-collections/community.aws/pull/1693)。sns_topic - 添加对
tags
和purge_tags
的支持(https://github.com/ansible-collections/community.aws/pull/972)。sqs_queue - 添加对
deduplication_scope
参数的支持(https://github.com/ansible-collections/community.aws/pull/1603)。sqs_queue - 添加对
fifo_throughput_limit
参数的支持(https://github.com/ansible-collections/community.aws/pull/1603)。ssm_parameter - 为 SSM 参数添加对标签的支持 (https://github.com/ansible-collections/community.aws/issues/1573).
已弃用功能
ecs_service - 在 2024-06-01 之后的发行版中,
purge_placement_constraints
的默认值将从false
更改为true
(https://github.com/ansible-collections/community.aws/pull/1716).ecs_service - 在 2024-06-01 之后的发行版中,
purge_placement_strategy
的默认值将从false
更改为true
(https://github.com/ansible-collections/community.aws/pull/1716).iam_role - 除
iam_role
和changed
之外的所有顶级返回值均已弃用,并将在 2023-12-01 之后的发行版中删除 (https://github.com/ansible-collections/community.aws/issues/551).iam_role - 在 2023-12-01 之后的发行版中,
assume_role_policy_document
的内容将不再从 CamelCase 转换为 snake_case。assume_role_policy_document_raw
返回值已以这种未来格式返回策略文档 (https://github.com/ansible-collections/community.aws/issues/551).iam_role_info - 在 2023-12-01 之后的发行版中,
assume_role_policy_document
的内容将不再从 CamelCase 转换为 snake_case。assume_role_policy_document_raw
返回值已以这种未来格式返回策略文档 (https://github.com/ansible-collections/community.aws/issues/551).
错误修复
aws_ssm - 修复使用较旧的 curl 版本复制空文件的问题 (https://github.com/ansible-collections/community.aws/issues/1686).
eks_cluster - 向 EKS 集群创建添加标签 (https://github.com/ansible-collections/community.aws/pull/1591).
sns_topic - 在不设置订阅者属性时避免获取订阅者的属性,这可能会导致权限问题 (https://github.com/ansible-collections/community.aws/pull/1418).
新模块
eks_nodegroup - 管理 EKS 节点组模块
v5.2.0
发行说明
一个次要版本,包含针对 aws_ssm
连接插件以及 ecs_service
、s3_lifecycle
和 ssm_parameter
模块的错误修复。以及对 ecs_cluster
、ec2_ecr
、ecs_service
、iam_role
和 ssm_parameter
插件的改进。
次要更改
aws_ssm - 添加
ansible_aws_ssm_s3_addressing_style
以允许设置 S3 定址样式 (https://github.com/ansible-collections/community.aws/pull/1633).aws_ssm - 添加对自定义 SSM 文档的支持 (https://github.com/ansible-collections/community.aws/pull/876).
aws_ssm - 避免重载
subprocess
(https://github.com/ansible-collections/community.aws/pull/1660).aws_ssm - 清理日志输出 (https://github.com/ansible-collections/community.aws/pull/1660).
aws_ssm - 次要重构 (https://github.com/ansible-collections/community.aws/pull/1660).
aws_ssm - 重构 boto3 客户端初始化 (https://github.com/ansible-collections/community.aws/pull/1663).
aws_ssm - 重构远程命令生成 (https://github.com/ansible-collections/community.aws/pull/1664).
ecs_cluster - 添加对
capacity_providers
和capacity_provider_strategy
功能的支持 (https://github.com/ansible-collections/community.aws/pull/1640).ecs_cluster - 将默认值添加到文档中 (https://github.com/ansible-collections/community.aws/pull/1636).
ecs_ecr - 添加
encryption_configuration
选项 (https://github.com/ansible-collections/community.aws/pull/1623).ecs_service - 支持对现有 ECS 服务进行负载均衡器更新 (https://github.com/ansible-collections/community.aws/pull/1625).
iam_role - 删除弃用警告,因为 purge 参数的标准值为
true
(https://github.com/ansible-collections/community.aws/pull/1636).ssm_parameter - 修复示例中的错字
paramater
(https://github.com/ansible-collections/community.aws/issues/1642).
错误修复
aws_ssm - 修复某些操作系统上的
invalid literal for int
错误 (https://github.com/ansible-collections/community.aws/issues/113).aws_ssm - 修复了 2019 年后 AWS 区域中预签名 S3 URL 的错误 (https://github.com/ansible-collections/community.aws/issues/1616).
ecs_service - 尊重现有 ECS 服务的
placement_constraints
(https://github.com/ansible-collections/community.aws/pull/1601).s3_lifecycle - 如果没有更改,模块将不再调用
put_lifecycle_configuration
(https://github.com/ansible-collections/community.aws/issues/1624).ssm_parameter - 修复在向现有参数添加描述时出现的
KeyError
(https://github.com/ansible-collections/community.aws/issues/1471).
v5.1.0
发行说明
这是 community.aws
集合的次要版本。此更改日志包含自上次发布以来对该集合中模块和插件所做的所有更改。
次要更改
elasticache_parameter_group - 在模块输入选项中添加
redis6.x
组族 (https://github.com/ansible-collections/community.aws/pull/1476).elb_target_group - 添加对
protocol_version
参数的支持 (https://github.com/ansible-collections/community.aws/pull/1496).
错误修复
aws_ssm - 通过确保 boto 客户端具有正确的凭据并存在于正确的分区中来修复 S3 存储桶区域检测 (https://github.com/ansible-collections/community.aws/pull/1428).
ec2_snapshot_copy - 包含标签会导致错误
Tag specification resource type must have a value
。修复将 ResourceType 设置为快照以解决此问题 (https://github.com/ansible-collections/community.aws/pull/1419).ecs_ecr - 在检查模式下尝试创建存储库时修复
RepositoryNotFound
异常 (https://github.com/ansible-collections/community.aws/pull/1550).opensearch - 使用高级安全选项时修复集群创建问题 (https://github.com/ansible-collections/community.aws/pull/1613).
v5.0.0
发行说明
在此版本中,许多社区模块已提升到 Red Hat 支持状态。这些模块已从 community.aws 移动到 amazon.aws 集合。
community.aws 集合已放弃对 botocore<1.21.0
和 boto3<1.18.0
的支持。对 ansible-core<2.11
的支持也已放弃。
此版本还带来了一些新功能、错误修复、重大更改和已弃用功能。
次要更改
acm_certificate - 切换到抖动回退 (https://github.com/ansible-collections/amazon.aws/pull/946).
acm_certificate_info - 切换到抖动回退 (https://github.com/ansible-collections/amazon.aws/pull/946).
api_gateway_domain - 切换到抖动回退 (https://github.com/ansible-collections/community.aws/pull/1386).
autoscaling_group_info - 次要健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410).
aws_acm -
aws_acm
模块已重命名为acm_certificate
,aws_acm
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1263).aws_acm_info -
aws_acm_info
模块已重命名为acm_certificate_info
,aws_acm_info
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1263).aws_api_gateway -
aws_api_gateway
模块已重命名为api_gateway
,aws_api_gateway
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1288).aws_api_gateway_domain -
aws_api_gateway_domain
模块已重命名为api_gateway_domain
,aws_api_gateway_domain
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1288).aws_application_scaling_policy -
aws_application_scaling_policy
模块已重命名为application_autoscaling_policy
,aws_application_scaling_policy
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1314).aws_batch_compute_environment -
aws_batch_compute_environment
模块已重命名为batch_compute_environment
,aws_batch_compute_environment
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1272).aws_batch_job_definition -
aws_batch_job_definition
模块已重命名为batch_job_definition
,aws_batch_job_definition
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1272).aws_batch_job_queue -
aws_batch_job_queue
模块已重命名为batch_job_queue
,aws_batch_job_queue
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1272).aws_codebuild -
aws_codebuild
模块已重命名为codebuild_project
,aws_codebuild
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1308).aws_codecommit -
aws_codecommit
模块已重命名为codecommit_repository
,aws_codecommit
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1308).aws_codepipeline -
aws_codepipeline
模块已重命名为codepipeline
,aws_codepipeline
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1308).aws_config_aggregation_authorization -
aws_config_aggregation_authorization
模块已重命名为config_aggregation_authorization
,aws_config_aggregation_authorization
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1305).aws_config_aggregator -
aws_config_aggregator
模块已重命名为config_aggregator
,aws_config_aggregator
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1305).aws_config_delivery_channel -
aws_config_delivery_channel
模块已重命名为config_delivery_channel
,aws_config_delivery_channel
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1305).aws_config_recorder -
aws_config_recorder
模块已重命名为config_recorder
,aws_config_recorder
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1305).aws_config_rule -
aws_config_rule
模块已重命名为config_rule
,aws_config_rule
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1305).aws_direct_connect_confirm_connection -
aws_direct_connect_confirm_connection
模块已重命名为directconnect_confirm_connection
,aws_direct_connect_confirm_connection
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1286).aws_direct_connect_connection -
aws_direct_connect_connection
模块已重命名为directconnect_connection
,aws_direct_connect_connection
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1286).aws_direct_connect_gateway -
aws_direct_connect_gateway
模块已重命名为directconnect_gateway
,aws_direct_connect_gateway
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1286).aws_direct_connect_link_aggregation_group -
aws_direct_connect_link_aggregation_group
模块已重命名为directconnect_link_aggregation_group
,aws_direct_connect_link_aggregation_group
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1286).aws_direct_connect_virtual_interface -
aws_direct_connect_virtual_interface
模块已重命名为directconnect_virtual_interface
,aws_direct_connect_virtual_interface
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1286).aws_eks_cluster -
aws_eks_cluster
模块已重命名为eks_cluster
,aws_eks_cluster
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1269).aws_glue_connection -
aws_glue_connection
模块已重命名为glue_connection
,aws_glue_connection
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1300).aws_glue_crawler -
aws_glue_crawler
模块已重命名为glue_crawler
,aws_glue_crawler
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1300).aws_glue_job -
aws_glue_job
模块已重命名为glue_job
,aws_glue_job
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1300).aws_inspector_target -
aws_inspector_target
模块已重命名为inspector_target
,aws_inspector_target
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1318).aws_kms -
aws_kms
模块已重命名为kms_key
,aws_kms
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1284).aws_kms_info -
aws_kms_info
模块已重命名为kms_key_info
,aws_kms_info
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1284).aws_msk_cluster -
aws_msk_cluster
模块已重命名为msk_cluster
,aws_msk_cluster
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1311).aws_msk_config -
aws_msk_config
模块已重命名为msk_config
,aws_msk_config
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1311).aws_s3_bucket_info -
aws_s3_bucket_info
模块已重命名为s3_bucket_info
,aws_s3_bucket_info
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1271).aws_s3_cors -
aws_s3_cors
模块已重命名为s3_cors
,aws_s3_cors
保留为别名 (https://github.com/ansible-collections/community.aws/pull/1271).aws_secret 模块 - `aws_secret` 模块已重命名为 `secretsmanager_secret`,`aws_secret` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1315](https://github.com/ansible-collections/community.aws/pull/1315))。
aws_ses_identity 模块 - `aws_ses_identity` 模块已重命名为 `ses_identity`,`aws_ses_identity` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1264](https://github.com/ansible-collections/community.aws/pull/1264))。
aws_ses_identity_policy 模块 - `aws_ses_identity_policy` 模块已重命名为 `ses_identity_policy`,`aws_ses_identity_policy` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1264](https://github.com/ansible-collections/community.aws/pull/1264))。
aws_ses_rule_set 模块 - `aws_ses_rule_set` 模块已重命名为 `ses_rule_set`,`aws_ses_rule_set` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1264](https://github.com/ansible-collections/community.aws/pull/1264))。
aws_sgw_info 模块 - `aws_sgw_info` 模块已重命名为 `storagegateway_info`,`aws_sgw_info` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1301](https://github.com/ansible-collections/community.aws/pull/1301))。
aws_ssm_parameter_store 模块 - `aws_ssm_parameter_store` 模块已重命名为 `ssm_parameter`,`aws_ssm_parameter_store` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1313](https://github.com/ansible-collections/community.aws/pull/1313))。
aws_step_functions_state_machine 模块 - `aws_step_functions_state_machine` 模块已重命名为 `stepfunctions_state_machine`,`aws_step_functions_state_machine` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1310](https://github.com/ansible-collections/community.aws/pull/1310))。
aws_step_functions_state_machine_execution 模块 - `aws_step_functions_state_machine_execution` 模块已重命名为 `stepfunctions_state_machine_execution`,`aws_step_functions_state_machine_execution` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1310](https://github.com/ansible-collections/community.aws/pull/1310))。
aws_waf_condition 模块 - `aws_waf_condition` 模块已重命名为 `waf_condition`,`aws_waf_condition` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1299](https://github.com/ansible-collections/community.aws/pull/1299))。
aws_waf_info 模块 - `aws_waf_info` 模块已重命名为 `waf_info`,`aws_waf_info` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1299](https://github.com/ansible-collections/community.aws/pull/1299))。
aws_waf_rule 模块 - `aws_waf_rule` 模块已重命名为 `waf_rule`,`aws_waf_rule` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1299](https://github.com/ansible-collections/community.aws/pull/1299))。
aws_waf_web_acl 模块 - `aws_waf_web_acl` 模块已重命名为 `waf_web_acl`,`aws_waf_web_acl` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1299](https://github.com/ansible-collections/community.aws/pull/1299))。
cloudfront_distribution - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
cloudfront_info 模块 - `cloudfront_info` 模块已重命名为 `cloudfront_distribution_info`,`cloudfront_info` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1352](https://github.com/ansible-collections/community.aws/pull/1352))。
cloudfront_origin_access_identity - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
cloudtrail - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
community.aws 模块 - 为保持一致性,`ec2_url` 参数已重命名为 `endpoint_url`,`ec2_url` 保留为别名 ([https://github.com/ansible-collections/amazon.aws/pull/992](https://github.com/ansible-collections/amazon.aws/pull/992))。
ec2_asg 模块 - `ec2_asg` 模块已重命名为 `autoscaling_group`,`ec2_asg` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_asg_info 模块 - `ec2_asg_info` 模块已重命名为 `autoscaling_group_info`,`ec2_asg_info` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_asg_instance_refresh 模块 - `ec2_asg_instance_refresh` 模块已重命名为 `autoscaling_instance_refresh`,`ec2_asg_instance_refresh` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_asg_instance_refresh_info 模块 - `ec2_asg_instance_refresh_info` 模块已重命名为 `autoscaling_instance_refresh_info`,`ec2_asg_instance_refresh_info` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_asg_lifecycle_hook 模块 - `ec2_asg_lifecycle_hook` 模块已重命名为 `autoscaling_lifecycle_hool`,`ec2_asg_lifecycle_hook` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_asg_scheduled_action 模块 - `ec2_asg_scheduled_action` 模块已重命名为 `autoscaling_scheduled_action`,`ec2_asg_scheduled_action` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_lc 模块 - `ec2_lc` 模块已重命名为 `autoscaling_launch_config`,`ec2_lc` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_lc_find 模块 - `ec2_lc_find` 模块已重命名为 `autoscaling_launch_config_find`,`ec2_lc_find` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_lc_info 模块 - `ec2_lc_info` 模块已重命名为 `autoscaling_launch_config_info`,`ec2_lc_info` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_metric_alarm 模块 - `ec2_metric_alarm` 模块已重命名为 `cloudwatch_metric_alarm`,`ec2_metric_alarm` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1304](https://github.com/ansible-collections/community.aws/pull/1304))。
ec2_scaling_policy 模块 - `ec2_scaling_policy` 模块已重命名为 `autoscaling_policy`,`ec2_scaling_policy` 保留为别名 ([https://github.com/ansible-collections/community.aws/pull/1294](https://github.com/ansible-collections/community.aws/pull/1294))。
ec2_vpc_nacl - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
ec2_vpc_vpn - 对 `VPNConnectionException` 进行了细微调整,以便将消息传递给超类 ([https://github.com/ansible-collections/community.aws/pull/1407](https://github.com/ansible-collections/community.aws/pull/1407))。
eks_fargate_profile - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
elb_target_group - 如果未提供
health_check_protocol
,则不再完全忽略health_check_path
和successful_response_codes
,而是引发错误(https://github.com/ansible-collections/community.aws/issues/29)。redshift - 次要的健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410)。
s3_bucket_info - 次要的健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410)。
waf_condition - 切换到抖动式回退 (https://github.com/ansible-collections/amazon.aws/pull/946)。
waf_info - 切换到抖动式回退 (https://github.com/ansible-collections/amazon.aws/pull/946)。
waf_rule - 切换到抖动式回退 (https://github.com/ansible-collections/amazon.aws/pull/946)。
waf_web_acl - 切换到抖动式回退 (https://github.com/ansible-collections/amazon.aws/pull/946)。
重大变更/移植指南
acm_certificate - 之前已弃用的默认值
purge_tags=False
已更新为purge_tags=True
(https://github.com/ansible-collections/community.aws/pull/1343)。autoscaling_group - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.autoscaling_group
。autoscaling_group_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.autoscaling_group_info
。cloudfront_distribution - 之前已弃用的默认值
purge_tags=False
已更新为purge_tags=True
(https://github.com/ansible-collections/community.aws/pull/1343)。cloudtrail - 此模块已迁移到
amazon.aws
集合。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.cloudtrail
。cloudwatch_metric_alarm - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.cloudwatch_metric_alarm
。cloudwatchevent_rule - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.cloudwatchevent_rule
。cloudwatchlogs_log_group - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.cloudwatchlogs_log_group
。cloudwatchlogs_log_group_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.cloudwatchlogs_log_group_info
。cloudwatchlogs_log_group_metric_filter - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.cloudwatchlogs_log_group_metric_filter
。community.aws 集合 - 已停止支持 ansible-core < 2.11 (https://github.com/ansible-collections/community.aws/pull/1541)。
community.aws 集合 - community.aws 集合已停止支持
botocore<1.21.0
和boto3<1.18.0
。大多数模块将继续与较旧版本的AWS SDK兼容,但是,不能保证与较旧版本的SDK的兼容性,并且不会对其进行测试。使用较旧版本的SDK时,Ansible将发出警告(https://github.com/ansible-collections/community.aws/pull/1362)。ec2_eip - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_eip
。ec2_eip_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_eip_info
。ec2_vpc_vpn - 之前已弃用的默认值
purge_tags=False
已更新为purge_tags=True
(https://github.com/ansible-collections/community.aws/pull/1343)。elb_application_lb - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.elb_application_lb
。elb_application_lb_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.elb_application_lb_info
。execute_lambda - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.execute_lambda
。iam_policy - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_policy
。iam_policy_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_policy_info
。iam_server_certificate - 已移除向
cert
、chain_cert
和key
参数传递文件名的方式。我们建议改为使用查找插件读取文件,请参阅文档以了解示例 (https://github.com/ansible-collections/community.aws/pull/1265)。iam_server_certificate -
dup_ok
参数的默认值已更改为true
。若要保留原始行为,请显式将dup_ok
参数设置为false
(https://github.com/ansible-collections/community.aws/pull/1265)。iam_user - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_user
。iam_user_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.iam_user_info
。kms_key - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.kms_key
。kms_key - 之前已弃用的通过
policy_mode
和policy_grant_types
管理KMS IAM策略的方式已移除,改为使用policy
选项 (https://github.com/ansible-collections/community.aws/pull/1344)。kms_key - 之前已弃用的默认值
purge_tags=False
已更新为purge_tags=True
(https://github.com/ansible-collections/community.aws/pull/1343)。kms_key_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.kms_key_info
。lambda - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.lambda
。lambda_alias - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.lambda_alias
。lambda_event - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.lambda_event
。lambda_execute - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.lambda_execute
。lambda_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.lambda_info
。lambda_policy - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.lambda_policy
。rds_cluster - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_cluster
。rds_cluster_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_cluster_info
。rds_cluster_snapshot - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_cluster_snapshot
。rds_instance - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_instance
。rds_instance_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_instance_info
。rds_instance_snapshot - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_instance_snapshot
。rds_option_group - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_option_group
。rds_option_group_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_option_group_info
。rds_param_group - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_param_group
。rds_param_group - 此前已弃用的默认值
purge_tags=False
已更新为purge_tags=True
(https://github.com/ansible-collections/community.aws/pull/1343)。rds_snapshot_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_snapshot_info
。rds_subnet_group - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.rds_subnet_group
。route53 - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.route53
。route53_health_check - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.route53_health_check
。route53_health_check - 此前已弃用的默认值
purge_tags=False
已更新为purge_tags=True
(https://github.com/ansible-collections/community.aws/pull/1343)。route53_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.route53_info
。route53_zone - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.route53_zone
。route53_zone - 此前已弃用的默认值
purge_tags=False
已更新为purge_tags=True
(https://github.com/ansible-collections/community.aws/pull/1343)。sqs_queue - 此前已弃用的默认值
purge_tags=False
已更新为purge_tags=True
(https://github.com/ansible-collections/community.aws/pull/1343)。
已弃用的功能
community.aws 集合 - 由于 AWS SDK 宣布停止支持低于 3.7 的 Python 版本 (https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对低于 3.7 的 Python 版本的支持已被弃用,并将在 2023-05-31 之后的版本中移除 (https://github.com/ansible-collections/community.aws/pull/1361)。
错误修复
ec2_placement_group - 在创建新的放置组期间处理潜在的竞争创建问题 (https://github.com/ansible-collections/community.aws/pull/1477)。
elb_network_lb - 修复返回值中
ip_address_type
未更新的错误 (https://github.com/ansible-collections/community.aws/pull/1365)。rds_cluster - 修复指定 RDS 集群参数组时引发
KeyError
的错误 (https://github.com/ansible-collections/community.aws/pull/1417)。s3_sync - 修复在 FIPS 模式下运行时的 etag 生成问题 (https://github.com/ansible-collections/community.aws/issues/757)。
新增模块
accessanalyzer_validate_policy_info - 执行 IAM 策略验证
v4.5.1
发行摘要
此版本包含对 sns_topic
模块的少量错误修复,以及对各种模块文档的更正。这是 4.x 系列的最后一个计划版本。
错误修复
sns_topic - 在不设置订阅者属性时避免获取订阅者的属性,这可能会导致权限问题 (https://github.com/ansible-collections/community.aws/pull/1418).
v4.5.0
发行摘要
这是 community.aws
集合的次要版本。
次要更改
ecs_service - 支持对现有 ECS 服务进行负载均衡器更新 (https://github.com/ansible-collections/community.aws/pull/1625)。
iam_role - 删除弃用警告,因为 purge 参数的标准值为
true
(https://github.com/ansible-collections/community.aws/pull/1636)。
错误修复
aws_ssm - 修复某些操作系统上的
invalid literal for int
错误 (https://github.com/ansible-collections/community.aws/issues/113).ecs_service - 尊重现有 ECS 服务的
placement_constraints
(https://github.com/ansible-collections/community.aws/pull/1601)。s3_lifecycle - 如果没有更改,模块将不再调用
put_lifecycle_configuration
。(https://github.com/ansible-collections/community.aws/issues/1624)ssm_parameter - 修复向现有参数添加描述时出现的
KeyError
(https://github.com/ansible-collections/community.aws/issues/1471)。
v4.4.0
发行摘要
这是 community.aws
集合的次要版本。此更改日志包含自上次发布以来对该集合中模块和插件所做的所有更改。
次要更改
elasticache_parameter_group - 在模块输入选项中添加
redis6.x
组族 (https://github.com/ansible-collections/community.aws/pull/1476).
错误修复
aws_ssm - 通过确保 boto 客户端具有正确的凭据并存在于正确的分区中来修复 S3 存储桶区域检测 (https://github.com/ansible-collections/community.aws/pull/1428).
ecs_ecr - 在检查模式下尝试创建存储库时修复
RepositoryNotFound
异常 (https://github.com/ansible-collections/community.aws/pull/1550).opensearch - 使用高级安全选项时修复集群创建问题 (https://github.com/ansible-collections/community.aws/pull/1613).
v4.3.0
发行摘要
community.aws 4.3.0 版本包含许多次要错误修复和改进。在 amazon.aws 5.0.0 版本发布后,对 4.x 系列的反向移植将仅限于安全问题和错误修复。
次要更改
autoscaling_group_info - 次要健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410).
cloudfront_distribution - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
cloudfront_origin_access_identity - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
cloudtrail - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
ec2_vpc_nacl - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
eks_fargate_profile - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
redshift - 次要的健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410)。
s3_bucket_info - 次要的健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410)。
错误修复
ec2_placement_group - 在创建新的放置组期间处理潜在的竞争创建问题 (https://github.com/ansible-collections/community.aws/pull/1477)。
rds_cluster - 修复指定 RDS 集群参数组时引发
KeyError
的错误 (https://github.com/ansible-collections/community.aws/pull/1417)。
v4.2.0
错误修复
s3_lifecycle - 修复删除具有空前缀的规则时的错误 (https://github.com/ansible-collections/community.aws/pull/1398)。
v4.1.1
错误修复
ecs_service - 修复了
deployment_controller
参数的 KeyError 错误 (https://github.com/ansible-collections/community.aws/pull/1393).
v4.1.0
次要更改
aws_glue_connection - 添加了新的
raw_connection_parameters
返回键,该键不使用蛇形命名法对连接参数进行命名 (https://github.com/ansible-collections/community.aws/pull/518).aws_ssm_parameter_store - 添加了对 check_mode 的支持 (https://github.com/ansible-collections/community.aws/pull/1309).
cloudwatchevent_rule - 添加了
targets.input_transformer.input_paths_map
和targets.input_transformer.input_template
参数,以支持配置 CloudWatch 事件规则输入转换 (https://github.com/ansible-collections/community.aws/pull/623).cloudwatchevent_rule - 应用了对
targets
参数的验证 (https://github.com/ansible-collections/community.aws/issues/201).cloudwatchlogs_log_group - 添加了 check_mode 支持 (https://github.com/ansible-collections/community.aws/pull/1373).
ec2_launch_template - 添加了对指定
source_version
的支持,模板更新基于此版本 (https://github.com/ansible-collections/community.aws/pull/239).ec2_scaling_policy - 添加 TargetTrackingScaling 作为缩放策略选项 (https://github.com/ansible-collections/community.aws/pull/771)
ec2_vpc_vgw_info - 更新为在 check_mode 下运行时不抛出错误 (https://github.com/ansible-collections/community.aws/issues/137).
ecs_ecr - 添加了
force_absent
参数,用于删除包含镜像的仓库 (https://github.com/ansible-collections/community.aws/pull/1316).ecs_service - 添加了
wait
参数和等待器,用于删除服务 (https://github.com/ansible-collections/community.aws/pull/1209).ecs_service - 为模块添加了
tags
和tag_propagation
支持 (https://github.com/ansible-collections/community.aws/pull/543).ecs_service - 添加了参数
deployment_controller
,以便可以通过 Code Deploy 控制服务 (https://github.com/ansible-collections/community.aws/pull/340).ecs_task - 添加了
wait
参数和等待器,用于运行和停止任务 (https://github.com/ansible-collections/community.aws/pull/1209).elasticache_info - 为 elasticache 集群的返回信息添加了
replication_group
(https://github.com/ansible-collections/community.aws/pull/646).iam_policy - 添加了对
--diff
模式的支持 (https://github.com/ansible-collections/community.aws/issues/560).iam_policy - 当 IAM 策略拒绝读取请求时,尝试继续执行 (https://github.com/ansible-collections/community.aws/pull/1375).
iam_server_certificate -
iam_cert
别名的弃用期限已从 4.0.0 版本延长至 5.0.0 版本 (https://github.com/ansible-collections/community.aws/pull/1257).iam_server_certificate -
cert_chain
、cert
、key
和dup_ok
的弃用期限已从 4.0.0 版本延长至 5.0.0 版本 (https://github.com/ansible-collections/community.aws/pull/1256).lambda_info - 添加返回键
functions
,它返回字典列表,而不是以前返回的function
(返回字典的字典) (https://github.com/ansible-collections/community.aws/pull/1239).lambda_info - 现在返回每个 lambda 函数的基本配置信息,而不管查询如何 (https://github.com/ansible-collections/community.aws/pull/1239).
rds_instance_snapshot -
rds_snapshot
别名的弃用期限已从 4.0.0 版本延长至 5.0.0 版本 (https://github.com/ansible-collections/community.aws/pull/1257).route53_health_check - 添加了新参数
health_check_id
和别名id
,允许通过 ID 更新和删除运行状况检查 (https://github.com/ansible-collections/community.aws/pull/1143).route53_health_check - 添加了新参数
use_unique_names
,与新参数health_check_name
(别名name
) 一起使用,将运行状况检查名称设置为唯一标识符 (https://github.com/ansible-collections/community.aws/pull/1143).s3_sync - 改善了
HEAD
操作期间的错误处理,用于比较现有文件 (https://github.com/ansible-collections/community.aws/issues/58).secretsmanager_secret - 添加了对在密钥中存储 JSON 的支持 (https://github.com/ansible-collections/community.aws/issues/656).
sns_topic - 在
subscriptions
项目中添加了attributes
参数,并支持 RawMessageDelievery (SQS)
已弃用的功能
aws_glue_connection -
connection_parameters
返回键已弃用,将在 2024-06-01 之后的一个版本中删除,它将被raw_connection_parameters
键替换 (https://github.com/ansible-collections/community.aws/pull/518).community.aws 集合 - 由于 AWS SDK 宣布停止支持低于 3.7 的 Python 版本 (https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对低于 3.7 的 Python 版本的支持已被弃用,并将在 2023-05-31 之后的版本中移除 (https://github.com/ansible-collections/community.aws/pull/1361)。
iam_policy -
policies
返回值已重命名为policy_names
,并将从 2024-08-01 之后的一个版本中删除,当前同时返回这两个值 (https://github.com/ansible-collections/community.aws/pull/1375).lambda_info -
function
返回键返回字典的字典,并且已被弃用。在 2025-01-01 之后的一个版本中,此键将被functions
替换,后者返回字典列表 (https://github.com/ansible-collections/community.aws/pull/1239).route53_info -
DelegationSets
、CheckerIpRanges
和HealthCheck
的驼峰式命名法返回值已弃用,在将来的版本中,必须分别使用蛇形命名法返回值delegation_sets
、checker_ip_ranges
和health_check
(https://github.com/ansible-collections/community.aws/pull/1322).
错误修复
aws_api_gateway_domain - 将
aws_api_gateway_domain
模块添加到 aws module_defaults 组 (https://github.com/ansible-collections/community.aws/pull/1283).aws_config_aggregator - 修复了更新现有聚合器时出现的
KeyError
(https://github.com/ansible-collections/community.aws/pull/645).aws_config_aggregator - 修复了未指定
account_sources
参数时的幂等性问题 (https://github.com/ansible-collections/community.aws/pull/645).aws_ssm - 在 playbook 中为文件传输生成的会话中提取 S3 存储桶区域 (https://github.com/ansible-collections/community.aws/issues/1190).
aws_ssm_parameter_store - 修复了模块不一致幂等性的错误 (https://github.com/ansible-collections/community.aws/pull/1309).
cloudfront_response_headers_policy - 将
cloudfront_response_headers_policy
模块添加到 aws module_defaults 组 (https://github.com/ansible-collections/community.aws/pull/1283).ec2_vpc_peer - 修复了请求者/接受者反转时的幂等性问题 (https://github.com/ansible-collections/community.aws/issues/580).
kms_key_info - 更宽松地处理访问被拒错误 (https://github.com/ansible-collections/community.aws/issues/206).
route53 - 修复了阻止创建权重为零的 DNS 记录的错误 (https://github.com/ansible-collections/community.aws/issues/1378)
route53_info - 修复了与非分页命令一起使用时的
max_items
参数问题 (https://github.com/ansible-collections/community.aws/issues/1383).sns_topic - 修复了阻止在 GovCloud 中使用该模块的错误 (https://github.com/ansible-collections/community.aws/issues/836).
新模块
autoscaling_complete_lifecycle_action - 完成实例的生命周期操作
aws_glue_crawler - 管理 AWS Glue 爬虫
lightsail_static_ip - 管理 AWS Lightsail 中的静态 IP 地址
v4.0.0
主要变更
community.aws 集合 - amazon.aws 集合已停止支持
botocore<1.20.0
和boto3<1.17.0
。大多数模块将继续与较旧版本的 AWS SDK 兼容,但是不保证与旧版 SDK 的兼容性,并且不会对其进行测试。使用旧版 SDK 时,Ansible 将发出警告 (https://github.com/ansible-collections/community.aws/pull/956).
次要变更
aws_acm - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1185).aws_glue_job - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1182).aws_kms - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1185).aws_kms - 向返回数据添加额外的键值对 (key_policies),将每个策略作为字典而不是 JSON 字符串返回 (https://github.com/ansible-collections/community.aws/pull/1052).
aws_kms - 修复集成测试中的一些错误,并为密钥轮换添加检查模式支持,以及记录请求更改反映在 AWS 上所需时间的相关问题 (https://github.com/ansible-collections/community.aws/pull/1052).
aws_kms -
tags
的默认值已更新,要删除所有标签,必须将tags
参数显式设置为空字典{}
并将purge_tags
设置为True
(https://github.com/ansible-collections/community.aws/pull/1183).aws_msk_cluster - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1182).aws_secret - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1182).aws_secret - 添加了
purge_tags
参数 (https://github.com/ansible-collections/community.aws/issues/1146).aws_ssm_parameter_store - 将 parameter_metadata 添加到返回值中 (https://github.com/ansible-collections/community.aws/pull/1241).
aws_step_functions_state_machine - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1182).cloudfront_distribution - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1185).cloudfront_distribution -
tags
的默认值已更新,要删除所有标签,必须将tags
参数显式设置为空字典{}
并将purge_tags
设置为True
(https://github.com/ansible-collections/community.aws/pull/1183).cloudtrail - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1219).cloudtrail -
tags
的默认值已更新,要删除所有标签,必须将tags
参数显式设置为空字典{}
(https://github.com/ansible-collections/community.aws/pull/1219).cloudtrail - 更新为将标签作为创建 API 调用的部分传递,而不是在创建后标记跟踪 (https://github.com/ansible-collections/community.aws/pull/1219).
cloudwatchlogs_log_group - 添加了对返回标签的支持 (https://github.com/ansible-collections/community.aws/pull/1233).
cloudwatchlogs_log_group - 添加了对更新标签的支持 (https://github.com/ansible-collections/community.aws/pull/1233).
cloudwatchlogs_log_group - 现在一致地返回返回文档中定义的值 (https://github.com/ansible-collections/community.aws/pull/1233).
cloudwatchlogs_log_group_info - 添加了对返回标签的支持 (https://github.com/ansible-collections/community.aws/pull/1233).
data_pipeline - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1204).dms_endpoint - 删除端点时不再需要
endpointtype
和enginename
(https://github.com/ansible-collections/community.aws/pull/1234).dms_endpoint - 添加
resource_tags
作为tags
的别名 (https://github.com/ansible-collections/community.aws/pull/1234).dms_endpoint - 添加了对
purge_tags
的支持 (https://github.com/ansible-collections/community.aws/pull/1234).dms_endpoint - 现在返回端点的详细信息 (https://github.com/ansible-collections/community.aws/pull/1234).
dynamodb_table - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1199).ec2_ami_copy - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1204).ec2_asg - 添加检查模式支持 (https://github.com/ansible-collections/community.aws/pull/1033).
ec2_asg - 修复测试设置仅运行一次的错误 (https://github.com/ansible-collections/community.aws/pull/1061).
ec2_asg_lifecycle_hook - 添加了检查模式支持 (https://github.com/ansible-collections/community.aws/pull/1060).
ec2_asg_lifecycle_hook - 添加集成测试 (https://github.com/ansible-collections/community.aws/pull/1048).
ec2_asg_lifecycle_hook - 模块现在返回有关生命周期挂钩的信息 (https://github.com/ansible-collections/community.aws/pull/1048).
ec2_eip - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1182).ec2_launch_template - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1204).ec2_snapshot_copy - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1201).ec2_snapshot_copy - 更新为将标签作为复制 API 调用的部分传递,而不是在创建后标记快照 (https://github.com/ansible-collections/community.aws/pull/1201).
ec2_transit_gateway - 代码更新为使用通用的
ensure_ec2_tags
辅助函数 (https://github.com/ansible-collections/community.aws/pull/1183).ec2_transit_gateway -
tags
的默认值已更新,要删除所有标签,必须将tags
参数显式设置为空字典{}
(https://github.com/ansible-collections/community.aws/pull/1183).ec2_transit_gateway - 如果 API 返回 IncorrectState 错误,则等待并重试。
ec2_vpc_nacl - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1189).ec2_vpc_nacl - 添加对
purge_tags
参数的支持 (https://github.com/ansible-collections/community.aws/pull/1189).ec2_vpc_nacl -
tags
的默认值已更新,要删除所有标签,必须将tags
参数显式设置为空字典{}
并将purge_tags
设置为True
(https://github.com/ansible-collections/community.aws/pull/1189).ec2_vpc_peer - 已添加
resource_tags
作为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1182).ec2_vpc_vgw - 新增对
purge_tags
参数的支持(https://github.com/ansible-collections/community.aws/pull/1232)。ec2_vpc_vgw -
tags
参数的默认行为已更新,要移除所有标签,必须将tags
参数显式设置为空字典{}
且purge_tags
设置为True
(https://github.com/ansible-collections/community.aws/pull/1232)。ec2_vpc_vgw - 更新为在创建 VGW 时设置标签,而不是在创建后添加标签(https://github.com/ansible-collections/community.aws/pull/1232)。
ec2_vpc_vgw_info - 在返回值中添加了
resource_tags
(https://github.com/ansible-collections/community.aws/pull/1232)。ec2_vpc_vpn -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1185)。ec2_vpc_vpn -
tags
参数的默认值已更新,要移除所有标签,必须将tags
参数显式设置为空字典{}
且purge_tags
设置为True
(https://github.com/ansible-collections/community.aws/pull/1183)。ecs_ecr - 现在即使我们没有创建或修改存储库权限策略,也会返回它(如果存在)。(https://github.com/ansible-collections/community.aws/pull/1171)。
ecs_service - 现在允许在创建/更新服务时使用
capacity_provider_strategy
(https://github.com/ansible-collections/community.aws/pull/1181)。ecs_task -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1204)。efs -
tags
参数的默认值已更新,要移除所有标签,必须将tags
参数显式设置为空字典{}
(https://github.com/ansible-collections/community.aws/pull/1183)。eks_fargate_profile -
tags
参数的默认值已更新,要移除所有标签,必须将tags
参数显式设置为空字典{}
(https://github.com/ansible-collections/community.aws/pull/1183)。elb_application_lb -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1182)。elb_network_lb -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1182)。elb_target_group - 将
tags
参数显式设置为空字典{}
现在将移除所有标签,除非purge_tags
显式设置为False
(https://github.com/ansible-collections/community.aws/pull/1183)。iam_policy - 更新损坏的示例并向文档添加 RETURN 部分;为幂等性检查模式运行添加额外的集成测试(https://github.com/ansible-collections/community.aws/pull/1093)。
iam_role -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1182)。iam_role - 删除角色之前先删除内联策略(https://github.com/ansible-collections/community.aws/pull/1054)。
iam_role - 删除全局变量并相应地重构(https://github.com/ansible-collections/community.aws/pull/1054)。
iam_user -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1182)。iam_user - 向返回的数据结构中添加
user
值以弃用旧的iam_user
(https://github.com/ansible-collections/community.aws/pull/1059)。lambda -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1202)。lambda - 添加 kms_key_arn 参数(https://github.com/ansible-collections/community.aws/pull/1108)。
lambda -
tags
的行为已更新,要移除所有标签,必须将tags
参数显式设置为空字典{}
且purge_tags
设置为True
(https://github.com/ansible-collections/community.aws/pull/1202)。rds_cluster -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1182)。rds_instance -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1182)。rds_instance - 添加
deletion_protection
参数(https://github.com/ansible-collections/community.aws/pull/1105)。rds_instance - 支持向数据库实例添加/删除 IAM 角色(https://github.com/ansible-collections/community.aws/pull/1002)。
rds_instance_snapshot -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1200)。rds_instance_snapshot - 添加
check_mode
(https://github.com/ansible-collections/community.aws/pull/789)。rds_instance_snapshot - 添加 copy_db_snapshot 功能(https://github.com/ansible-collections/community.aws/pull/1078)。
rds_instance_snapshot - 添加集成测试(https://github.com/ansible-collections/community.aws/pull/789)。
rds_instance_snapshot - 更新模块以使用 module_utils/rds.py 中定义的处理程序(https://github.com/ansible-collections/community.aws/pull/789)。
rds_option_group -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1182)。rds_param_group -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1185)。rds_param_group -
tags
参数的默认值已更新,要移除所有标签,必须将tags
参数显式设置为空字典{}
且purge_tags
设置为True
(https://github.com/ansible-collections/community.aws/pull/1183)。rds_subnet_group -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1182)。redshift -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1182)。route53 - 新增对 GeoLocation 参数的支持(https://github.com/ansible-collections/amazon.aws/pull/1117)。
route53_health_check -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1185)。route53_info - 向文档添加 RETURN 部分(https://github.com/ansible-collections/community.aws/pull/1240)。
route53_zone -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1185)。sqs_queue -
resource_tags
已作为tags
参数的别名添加(https://github.com/ansible-collections/community.aws/pull/1185)。wafv2_ip_set - 新增对
purge_tags
参数的支持(https://github.com/ansible-collections/community.aws/pull/1205)。wafv2_ip_set - 新增对返回标签的支持(https://github.com/ansible-collections/community.aws/pull/1205)。
wafv2_ip_set - 新增对更新标签的支持(https://github.com/ansible-collections/community.aws/pull/1205)。
wafv2_ip_set_info - 新增了返回标签的支持 (https://github.com/ansible-collections/community.aws/pull/1205).
wafv2_rule_group - 新增了对
purge_tags
参数的支持 (https://github.com/ansible-collections/community.aws/pull/1210).wafv2_rule_group - 新增了返回标签的支持 (https://github.com/ansible-collections/community.aws/pull/1210).
wafv2_rule_group - 新增了更新标签的支持 (https://github.com/ansible-collections/community.aws/pull/1210).
wafv2_rule_group_info - 新增了返回标签的支持 (https://github.com/ansible-collections/community.aws/pull/1210).
wafv2_web_acl - 新增了对
purge_tags
的支持 (https://github.com/ansible-collections/community.aws/pull/1218).wafv2_web_acl - 新增了更新标签的支持 (https://github.com/ansible-collections/community.aws/pull/1218).
wafv2_web_acl -
resource_tags
已被添加为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1218).wafv2_web_acl - 新增了返回标签的支持 (https://github.com/ansible-collections/community.aws/pull/1218).
wafv2_web_acl_info - 新增了返回标签的支持 (https://github.com/ansible-collections/community.aws/pull/1218).
重大变更/移植指南
以
aws:
开头的标签在清除标签时不会被删除,这些标签是 Amazon 保留的,可能无法更新或删除 (https://github.com/ansible-collections/amazon.aws/issues/817).aws_secret - 当
tags
参数未设置时,标签将不再被删除。要删除所有标签,请设置tags={}
(https://github.com/ansible-collections/community.aws/issues/1146).community.aws 集合 -
community.aws
集合现已放弃对原始boto
AWS SDK 的支持和任何依赖关系,现在使用boto3
/botocore
AWS SDK (https://github.com/ansible-collections/community.aws/pull/898).community.aws 集合 -
profile
参数现在与aws_access_key
、aws_secret_key
和security_token
参数互斥 (https://github.com/ansible-collections/amazon.aws/pull/834).ec2_vpc_route_table - 模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.ec2_vpc_route_table
。ec2_vpc_route_table_info - 模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.ec2_vpc_route_table_info
。elb_instance - 已删除
ec2_elbs
fact,已将updated_elbs
添加到返回值中,并包含相同的信息 (https://github.com/ansible-collections/community.aws/pull/1173).elb_network_lb -
state
的默认值已从absent
更改为present
(https://github.com/ansible-collections/community.aws/pull/1167).script_inventory_ec2 - ec2.py 库存脚本已移动到新的存储库。该脚本现在可以从 https://github.com/ansible-community/contrib-scripts/blob/main/inventory/ec2.py 下载,并且已从此集合中删除。我们建议从脚本迁移到 amazon.aws.ec2 库存插件。(https://github.com/ansible-collections/community.aws/pull/898)
已弃用的功能
aws_acm -
purge_tags
的当前默认值False
已弃用,将在 5.0.0 版本中更新为True
。aws_kms -
purge_tags
的当前默认值False
已弃用,将在 5.0.0 版本中更新为True
。cloudfront_distribution -
purge_tags
的当前默认值False
已弃用,将在 5.0.0 版本中更新为True
。ec2_vpc_vpn -
purge_tags
的当前默认值False
已弃用,将在 5.0.0 版本中更新为True
。rds_param_group -
purge_tags
的当前默认值False
已弃用,将在 5.0.0 版本中更新为True
。route53_health_check -
purge_tags
的当前默认值False
已弃用,将在 5.0.0 版本中更新为True
。route53_zone -
purge_tags
的当前默认值False
已弃用,将在 5.0.0 版本中更新为True
。sqs_queue -
purge_tags
的当前默认值False
已弃用,将在 5.0.0 版本中更新为True
。
已移除的功能(之前已弃用)
aws_kms_info - 已删除未使用的已弃用
keys_attr
参数 (https://github.com/ansible-collections/amazon.aws/pull/1172).data_pipeline -
version
选项始终被忽略,现已删除 (https://github.com/ansible-collections/community.aws/pull/1160).ec2_eip - 已删除
wait_timeout
选项。它始终被模块忽略 (https://github.com/ansible-collections/community.aws/pull/1159).ec2_lc - 已删除
associate_public_ip_address
选项。它始终被模块忽略 (https://github.com/ansible-collections/community.aws/pull/1158).ec2_metric_alarm - 已放弃对使用
<=
、<
、>
和>=
运算符进行比较的支持。请改用LessThanOrEqualToThreshold
、LessThanThreshold
、GreaterThanThreshold
或GreaterThanOrEqualToThreshold
(https://github.com/ansible-collections/amazon.aws/pull/1164).ecs_ecr - 已删除已弃用的别名
delete_policy
。请改用purge_policy
(https://github.com/ansible-collections/community.aws/pull/1161).iam_managed_policy - 已删除未使用的
fail_on_delete
参数 (https://github.com/ansible-collections/community.aws/pull/1168).s3_lifecycle - 已删除未使用的参数
requester_pays
(https://github.com/ansible-collections/community.aws/pull/1165).s3_sync - 删除未使用的
retries
参数 (https://github.com/ansible-collections/community.aws/pull/1166).
错误修复
aws_ssm 连接插件 - 修复文档数据中的 lint 错误 (https://github.com/ansible-collections/community.aws/pull/965).
aws_ssm_parameter_store - 修复在设置 description 但未设置值时的异常 (https://github.com/ansible-collections/community.aws/pull/1241).
在 state = present 时,不再需要
db_instance_identifier
(https://github.com/ansible-collections/community.aws/pull/1078).dynamodb_table - 修复创建仅包含全局键的二级索引时出现的问题 (https://github.com/ansible-collections/community.aws/issues/967).
ec2_asg - 将
purge_tags
的默认值更改为false
。恢复之前的行为 (https://github.com/ansible-collections/community.aws/pull/1064).ec2_vpc_vpn - 修复在检查模式下未传递任何标签时发生的异常 (https://github.com/ansible-collections/community.aws/pull/1242).
ecs_service - 添加缺失的
health_check_grace_period_seconds
参数变更检测 (https://github.com/ansible-collections/community.aws/pull/1145).ecs_service - 修复
task_definition
的错误比较,该比较始终导致任务发生更改 (https://github.com/ansible-collections/community.aws/pull/1145).ecs_service - 修复
placement_constraints
的验证。现在可以使用distinctInstance
放置约束 (https://github.com/ansible-collections/community.aws/issues/1058).ecs_taskdefinition - 修复
launch_type
参数的错误变更检测 (https://github.com/ansible-collections/community.aws/pull/1145).elb_application_lb_info - 将分页调用的AWS回退重试的默认值增加。(https://github.com/ansible-collections/community.aws/pull/1113).
elb_target_group_info - 将分页调用的AWS回退重试的默认值增加。(https://github.com/ansible-collections/community.aws/pull/1113).
execute_lamba - 为function_updated添加等待器 (https://github.com/ansible-collections/community.aws/pull/1108).
execute_lambda - 修复检查模式并更新RETURN文档 (https://github.com/ansible-collections/community.aws/pull/1115).
iam_policy - 当状态为present时,要求
policy_document
和policy_json
至少有一个,以防止抛出MalformedPolicyDocumentException异常 (https://github.com/ansible-collections/community.aws/pull/1093).iam_user - 在检查模式下不要删除用户登录配置文件 (https://github.com/ansible-collections/community.aws/pull/1059).
iam_user_info - 在找不到用户时优雅地处理 (https://github.com/ansible-collections/community.aws/pull/1059).
lambda - 修复返回值中标签键被损坏的错误 (https://github.com/ansible-collections/community.aws/pull/1202).
lambda - 修复lambda模块在检查模式下修改标签的错误 (https://github.com/ansible-collections/community.aws/pull/1202).
lambda - 修复创建时的检查模式 (https://github.com/ansible-collections/community.aws/pull/1108).
rds_instance - 修复检查模式和幂等性问题,并为套件中的所有测试添加了集成测试 (https://github.com/ansible-collections/community.aws/pull/1002).
s3_lifecycle - 为
transition_days
添加对值0的支持 (https://github.com/ansible-collections/community.aws/pull/1077).s3_lifecycle - 在返回之前检查配置是否完整 (https://github.com/ansible-collections/community.aws/pull/1085).
wafv2_rule_group - 修复更新规则组时资源状态描述缺失的错误 (https://github.com/ansible-collections/community.aws/pull/1210).
wafv2_rule_group - 修复仅更新描述未更新更改状态的错误 (https://github.com/ansible-collections/community.aws/pull/1210).
新增模块
ec2_transit_gateway_vpc_attachment - 创建和删除AWS Transit Gateway VPC连接
ec2_transit_gateway_vpc_attachment_info - 描述AWS Transit Gateway VPC连接
eks_fargate_profile - 管理EKS Fargate Profile
networkfirewall - 管理AWS Network Firewall防火墙
networkfirewall_info - 描述AWS Network Firewall防火墙
networkfirewall_policy - 管理AWS Network Firewall策略
networkfirewall_policy_info - 描述AWS Network Firewall策略
networkfirewall_rule_group - 创建、删除和修改AWS Network Firewall规则组
networkfirewall_rule_group_info - 描述AWS Network Firewall规则组
opensearch - 创建OpenSearch或ElasticSearch域
opensearch_info - 获取一个或多个OpenSearch或ElasticSearch域的信息
rds_cluster_snapshot - 管理Amazon RDS数据库集群快照
v3.6.0
发行说明
继community.aws 5.0.0版本发布之后,3.6.0是一个bug修复版本,也是3.x系列的最终计划版本。
次要更改
autoscaling_group_info - 次要健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410).
cloudfront_distribution - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
cloudfront_origin_access_identity - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
cloudtrail - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
ec2_asg_lifecycle_hook - 次要健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410).
ec2_vpc_nacl - 进行了少量健全性测试修复 ([https://github.com/ansible-collections/community.aws/pull/1410](https://github.com/ansible-collections/community.aws/pull/1410))。
redshift - 次要的健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410)。
s3_bucket_info - 次要的健全性测试修复 (https://github.com/ansible-collections/community.aws/pull/1410)。
错误修复
ec2_placement_group - 在创建新的放置组期间处理潜在的竞争创建问题 (https://github.com/ansible-collections/community.aws/pull/1477)。
s3_lifecycle - 修复删除具有空前缀的规则时的错误 (https://github.com/ansible-collections/community.aws/pull/1398)。
v3.5.0
次要更改
iam_server_certificate -
iam_cert
别名的弃用期限已从 4.0.0 版本延长至 5.0.0 版本 (https://github.com/ansible-collections/community.aws/pull/1257).iam_server_certificate -
cert_chain
、cert
、key
和dup_ok
的弃用期限已从 4.0.0 版本延长至 5.0.0 版本 (https://github.com/ansible-collections/community.aws/pull/1256).rds_instance_snapshot -
rds_snapshot
别名的弃用期限已从 4.0.0 版本延长至 5.0.0 版本 (https://github.com/ansible-collections/community.aws/pull/1257).s3_sync - 改善了
HEAD
操作期间的错误处理,用于比较现有文件 (https://github.com/ansible-collections/community.aws/issues/58).
错误修复
aws_api_gateway_domain - 将
aws_api_gateway_domain
模块添加到 aws module_defaults 组 (https://github.com/ansible-collections/community.aws/pull/1283).aws_config_aggregator - 修复了更新现有聚合器时出现的
KeyError
(https://github.com/ansible-collections/community.aws/pull/645).aws_config_aggregator - 修复了未指定
account_sources
参数时的幂等性问题 (https://github.com/ansible-collections/community.aws/pull/645).aws_ssm - 在 playbook 中为文件传输生成的会话中提取 S3 存储桶区域 (https://github.com/ansible-collections/community.aws/issues/1190).
cloudfront_response_headers_policy - 将
cloudfront_response_headers_policy
模块添加到 aws module_defaults 组 (https://github.com/ansible-collections/community.aws/pull/1283).ec2_vpc_peer - 修复了请求者/接受者反转时的幂等性问题 (https://github.com/ansible-collections/community.aws/issues/580).
kms_key_info - 更宽松地处理访问被拒错误 (https://github.com/ansible-collections/community.aws/issues/206).
route53 - 修复了阻止创建权重为零的 DNS 记录的错误 (https://github.com/ansible-collections/community.aws/issues/1378)
route53_info - 修复了与非分页命令一起使用时的
max_items
参数问题 (https://github.com/ansible-collections/community.aws/issues/1383).
v3.4.0
次要更改
aws_codebuild - 添加对
purge_tags
参数的支持 (https://github.com/ansible-collections/community.aws/pull/1221).aws_codebuild - 添加
resource_tags
参数,该参数采用字典格式的标签,而不是字典列表格式 (https://github.com/ansible-collections/community.aws/pull/1221).aws_codebuild - 添加
resource_tags
返回值,该返回值返回标准字典格式的标签,而不是字典列表格式 (https://github.com/ansible-collections/community.aws/pull/1221).aws_codebuild - 除非创建新项目,否则
source
和artifacts
参数现在是可选的 (https://github.com/ansible-collections/community.aws/pull/1221).ecs_service -
deployment_circuit_breaker
已被添加为受支持的功能 (https://github.com/ansible-collections/community.aws/pull/1215).ecs_service - 添加
service
别名,以使用与ecs_service_info模块相同的参数来处理ecs服务名称 (https://github.com/ansible-collections/community.aws/pull/1187).ecs_service_info - 添加
name
别名,以使用与ecs_service模块相同的参数来处理ecs服务名称 (https://github.com/ansible-collections/community.aws/pull/1187).ecs_tag -
resource_tags
已被添加为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1184).efs_tag -
resource_tags
已被添加为tags
参数的别名 (https://github.com/ansible-collections/community.aws/pull/1184).rds_instance - 向测试套件中添加快照测试,以测试从快照还原数据库 (https://github.com/ansible-collections/community.aws/pull/1081).
rds_instance_info - 在常见的AWS故障上添加重试 (https://github.com/ansible-collections/community.aws/pull/1026).
wafv2_web_acl - 将botocore的要求放宽到最低要求 (https://github.com/ansible-collections/community.aws/pull/1216).
已弃用的功能
aws_codebuild -
tags
参数当前使用非标准格式,并且已被弃用。在 6.0.0 版本中,此参数将接受简单的键值对字典,而不是当前的字典列表。建议迁移到使用 `resource_tags` 参数,该参数已接受简单的字典格式 (https://github.com/ansible-collections/community.aws/pull/1221).route53_info -
HostedZones
、ResourceRecordSets
和HealthChecks
的驼峰命名法返回值已被弃用,在未来的版本中,必须使用蛇形命名法返回值hosted_zones
、resource_record_sets
和health_checks
来代替。
错误修复
aws_codebuild - 修复当项目上设置多个标签时,结果可能被错误地标记为
changed
的错误 (https://github.com/ansible-collections/community.aws/pull/1221).ecs_service - 修复未指定
health_check_grace_period_seconds
参数时,更改检测失败的问题 (https://github.com/ansible-collections/community.aws/pull/1212).ecs_service - 未输入时使用默认集群名称
default
(https://github.com/ansible-collections/community.aws/pull/1212).ecs_task - 不需要
cluster
,未输入时使用名称default
(https://github.com/ansible-collections/community.aws/pull/1212).lambda_info - 修复获取所有 Lambda 信息时强制使用 query=config 的错误。现在,如果指定了函数名称,则查询将默认为 all。当查询大量 Lambda 函数时,这可能会影响性能。如果未指定函数名称,则查询将默认为 config (https://github.com/ansible-collections/community.aws/pull/1152).
rds_instance - 修复与从快照恢复数据库实例相关的错误 (https://github.com/ansible-collections/community.aws/pull/1081).
wafv2_ip_set - 修复仅更改描述时返回不正确的更改状态的错误 (https://github.com/ansible-collections/community.aws/pull/1211).
wafv2_web_acl - 一致地返回模块文档中描述的 Web ACL 信息 (https://github.com/ansible-collections/community.aws/pull/1216).
wafv2_web_acl - 修复未指定描述时的
changed
状态 (https://github.com/ansible-collections/community.aws/pull/1216).
v3.3.0
发行说明
这是 community.aws
集合的次要版本。
次要更改
aws_kms - 向返回数据添加额外的键值对 (key_policies),将每个策略作为字典而不是 JSON 字符串返回 (https://github.com/ansible-collections/community.aws/pull/1052).
aws_kms - 修复集成测试中的一些错误,并为密钥轮换添加检查模式支持,以及记录请求更改反映在 AWS 上所需时间的相关问题 (https://github.com/ansible-collections/community.aws/pull/1052).
ec2_asg - 添加检查模式支持 (https://github.com/ansible-collections/community.aws/pull/1033).
iam_policy - 更新损坏的示例并向文档添加 RETURN 部分;为幂等性检查模式运行添加额外的集成测试(https://github.com/ansible-collections/community.aws/pull/1093)。
iam_user - 向返回的数据结构中添加
user
值以弃用旧的iam_user
(https://github.com/ansible-collections/community.aws/pull/1059)。lambda - 添加 kms_key_arn 参数(https://github.com/ansible-collections/community.aws/pull/1108)。
rds_instance - 添加
deletion_protection
参数(https://github.com/ansible-collections/community.aws/pull/1105)。rds_instance - 支持向数据库实例添加/删除 IAM 角色(https://github.com/ansible-collections/community.aws/pull/1002)。
rds_instance_snapshot - 添加
check_mode
(https://github.com/ansible-collections/community.aws/pull/789)。rds_instance_snapshot - 添加 copy_db_snapshot 功能(https://github.com/ansible-collections/community.aws/pull/1078)。
rds_instance_snapshot - 添加集成测试(https://github.com/ansible-collections/community.aws/pull/789)。
rds_instance_snapshot - 更新模块以使用 module_utils/rds.py 中定义的处理程序(https://github.com/ansible-collections/community.aws/pull/789)。
route53 - 新增对 GeoLocation 参数的支持(https://github.com/ansible-collections/amazon.aws/pull/1117)。
错误修复
dynamodb_table - 修复创建仅包含全局键的二级索引时出现的问题 (https://github.com/ansible-collections/community.aws/issues/967).
ecs_service - 添加缺失的
health_check_grace_period_seconds
参数变更检测 (https://github.com/ansible-collections/community.aws/pull/1145).ecs_service - 修复
task_definition
的错误比较,该比较始终导致任务发生更改 (https://github.com/ansible-collections/community.aws/pull/1145).ecs_service - 修复
placement_constraints
的验证。现在可以使用distinctInstance
放置约束 (https://github.com/ansible-collections/community.aws/issues/1058).ecs_taskdefinition - 修复
launch_type
参数的错误变更检测 (https://github.com/ansible-collections/community.aws/pull/1145).execute_lambda - 为 function_updated 添加等待器 (https://github.com/ansible-collections/community.aws/pull/1108).
execute_lambda - 修复检查模式并更新RETURN文档 (https://github.com/ansible-collections/community.aws/pull/1115).
iam_policy - 当状态为present时,要求
policy_document
和policy_json
至少有一个,以防止抛出MalformedPolicyDocumentException异常 (https://github.com/ansible-collections/community.aws/pull/1093).iam_user - 在检查模式下不要删除用户登录配置文件 (https://github.com/ansible-collections/community.aws/pull/1059).
iam_user_info - 在找不到用户时优雅地处理 (https://github.com/ansible-collections/community.aws/pull/1059).
lambda - 修复创建时的检查模式 (https://github.com/ansible-collections/community.aws/pull/1108).
rds_instance - 修复检查模式和幂等性问题,并为套件中的所有测试添加了集成测试 (https://github.com/ansible-collections/community.aws/pull/1002).
rds_instance_snapshot - 在 state = present 时,不需要
db_instance_identifier
(https://github.com/ansible-collections/community.aws/pull/1078).s3_lifecycle - 为
transition_days
添加对值0的支持 (https://github.com/ansible-collections/community.aws/pull/1077).s3_lifecycle - 在返回之前检查配置是否完整 (https://github.com/ansible-collections/community.aws/pull/1085).
新增模块
aws_api_gateway_domain - 管理 AWS API Gateway 自定义域名
v3.2.1
发行说明
这是一个 community.aws
集合的错误修复版本。在 community.aws 3.2.0
中引入的 ec2_asg
模块中的新参数 purge_tags
,其默认值为 true
,如果用户不更新其 playbook 并指定 purge_tags: false
,则可能会破坏现有 playbook。但是,此版本恢复了之前的行为。
次要更改
iam_role - 删除角色之前先删除内联策略(https://github.com/ansible-collections/community.aws/pull/1054)。
iam_role - 删除全局变量并相应地重构(https://github.com/ansible-collections/community.aws/pull/1054)。
错误修复
ec2_asg - 将
purge_tags
的默认值更改为false
。恢复之前的行为 (https://github.com/ansible-collections/community.aws/pull/1064).
v3.2.0
发行说明
这是 community.aws
集合的次要版本。此更改日志包含自上次发布以来对该集合中模块和插件所做的所有更改。
主要更改
s3_bucket_notifications - 重构模块以支持 SNS/SQS 目标以及现有对 Lambda 函数的支持 (https://github.com/ansible-collections/community.aws/issues/140).
次要更改
aws_acm - 向 ACM 中添加
tags
和purge_tags
参数以标记证书 (https://github.com/ansible-collections/community.aws/pull/870).cloudfront_distribution - 添加了对重试的支持 (AWSRetry.jittered_backoff) (https://github.com/ansible-collections/community.aws/issues/296)
ec2_asg - 添加了在不终止实例的情况下分离特定实例和/或减少 ASG 期望容量的功能 (https://github.com/ansible-collections/community.aws/pull/933).
ec2_asg - 重构集成测试以并行运行并减少运行时间 (https://github.com/ansible-collections/community.aws/pull/1036).
ec2_asg - 为 ec2_asg 添加对
purge_tags
的支持 (https://github.com/ansible-collections/community.aws/pull/960).ec2_eip - 通过修复 check_mode 和更清晰的返回对象来重构模块。添加了集成测试 (https://github.com/ansible-collections/community.aws/pull/936)
elb_application_lb - 添加对 alb 特定属性的支持以及对修改它们的 check_mode 支持 (https://github.com/ansible-collections/community.aws/pull/963).
elb_application_lb - 添加 check_mode 支持并重构集成测试 (https://github.com/ansible-collections/community.aws/pull/894)
elb_application_lb_info - 更新文档并重构集成测试 (https://github.com/ansible-collections/community.aws/pull/894)
elb_target_group - 添加对 alb target_type 的支持并更新文档 (https://github.com/ansible-collections/community.aws/pull/966).
elb_target_group - 添加对设置 load_balancing_algorithm_type 的支持 (https://github.com/ansible-collections/community.aws/pull/1016).
rds_instance - 为有效的引擎值添加
choices
(https://github.com/ansible-collections/community.aws/pull/1034).rds_subnet_group - 添加
check_mode
(https://github.com/ansible-collections/community.aws/pull/562).rds_subnet_group - 添加
tags
功能 (https://github.com/ansible-collections/community.aws/pull/562).
错误修复
ecs_taskdefinition - 在比较任务定义时包含 launch_type 比较 (https://github.com/ansible-collections/community.aws/pull/840)
elb_application_lb - 修复空安全组列表在创建/更新时行为不一致的问题,方法是将空安全组视为 VPC 的默认安全组 (https://github.com/ansible-collections/community.aws/pull/971).
elb_application_lb_info - 添加回退重试逻辑 (https://github.com/ansible-collections/community.aws/pull/977)
elb_target_group_info - 添加回退重试逻辑 (https://github.com/ansible-collections/community.aws/pull/1001)
iam_role - 删除在删除角色时不必要地删除角色权限边界。与内联策略不同,在删除 IAM 角色之前,不需要从 IAM 角色中删除权限边界。这种行为会在继承阻止删除权限边界的权限边界时导致问题。(https://github.com/ansible-collections/community.aws/pull/961)
redshift_info - 修复 botocore 异常的无效导入路径 (https://github.com/ansible-collections/community.aws/issues/968).
wafv2_web_acl - 修复规则包含列表值时的异常 (https://github.com/ansible-collections/community.aws/pull/962).
新增模块
cloudfront_response_headers_policy - 创建、更新和删除用于 Cloudfront 分发的响应头策略
ec2_asg_instance_refresh - 启动或取消 AWS 中的 EC2 自动伸缩组 (ASG) 实例刷新
ec2_asg_instance_refresh_info - 收集 AWS 中 EC2 自动伸缩组 (ASG) 实例刷新的信息
rds_cluster - rds_cluster 模块
rds_cluster_info - 获取一个或多个 RDS 集群的信息
sns_topic_info - sns_topic_info 模块
v3.1.0
发行说明
这是 community.aws
集合的次要版本。此更改日志包含自上次发布以来对该集合中模块和插件所做的所有更改。
次要更改
aws_secret - 添加
resource_policy
参数 (https://github.com/ansible-collections/community.aws/pull/843).aws_ssm 连接插件 - 为文件传输存储桶上的上传添加参数以显式指定 SSE 模式和 KMS 密钥 ID。(https://github.com/ansible-collections/community.aws/pull/763)
dynamodb_table - 已添加
table_class
参数 (https://github.com/ansible-collections/community.aws/pull/880).ec2_launch_template - 添加元数据选项参数
http_protocol_ipv6
和instance_metadata_tags
(https://github.com/ansible-collections/community.aws/pull/917).ec2_lc - 添加对吞吐量参数的支持 (https://github.com/ansible-collections/community.aws/pull/790).
ec2_placement_group - 添加对分区策略和分区计数的支持 (https://github.com/ansible-collections/community.aws/pull/872).
elb_instance -
wait
参数不再被忽略 (https://github.com/ansible-collections/community.aws/pull/826)elb_target_group - 添加对参数
deregistration_connection_termination
的支持 (https://github.com/ansible-collections/community.aws/pull/913).iam_managed_policy - 重构模块,添加
check_mode
和更好的 AWSRetry 回退逻辑 (https://github.com/ansible-collections/community.aws/pull/893).iam_user - 添加参数
password_reset_required
(https://github.com/ansible-collections/community.aws/pull/860).wafv2_web_acl - 文档更新 wafv2_web_acl 和 aws_waf_web_acl (https://github.com/ansible-collections/community.aws/pull/721).
wafv2_web_acl - 扩展 wafv2_web_acl 模块,使其也接受
custom_response_bodies
参数 (https://github.com/ansible-collections/community.aws/pull/721).
错误修复
向 route53_info 添加回退重试逻辑 (https://github.com/ansible-collections/community.aws/pull/865).
向 route53_zone 添加回退重试逻辑 (https://github.com/ansible-collections/community.aws/pull/865).
cloudfront_distribution - 不要将
s3_origin_access_identity_enabled
传递给 API 请求 (https://github.com/ansible-collections/community.aws/pull/881).execute_lambda - 在执行之前等待 Lambda 函数状态 = 活动 (https://github.com/ansible-collections/community.aws/pull/857)
lambda - 在更新之前等待 Lambda 函数状态 = 活动 & LastUpdateStatus = 成功 (https://github.com/ansible-collections/community.aws/pull/857)
rds_instance - 修复仅更改一个值时
io1
DB 实例的iops
或allocated_storage
更新 (https://github.com/ansible-collections/community.aws/pull/878).
v3.0.1
发行说明
这是 community.aws
集合的路径版本。
次要更改
aws_msk_config - 删除重复和不具体的依赖项 (https://github.com/ansible-collections/community.aws/pull/863).
ecs_taskdefinition - 删除重复和不具体的依赖项 (https://github.com/ansible-collections/community.aws/pull/863).
s3_lifecycle - 添加
abort_incomplete_multipart_upload_days
和expire_object_delete_marker
参数 (https://github.com/ansible-collections/community.aws/pull/794).
v3.0.0
重大更改
community.aws 集合 - community.aws 集合已停止支持
botocore<1.19.0
和boto3<1.16.0
。大多数模块将继续与较旧版本的 AWS SDK 兼容,但是不保证与较旧版本的 SDK 的兼容性,并且不会对其进行测试。使用较旧版本的 SDK 时,Ansible 将发出警告 (https://github.com/ansible-collections/community.aws/pull/809).
次要更改
aws_glue_job - 添加
command_python_version
参数 (https://github.com/ansible-collections/community.aws/pull/480).aws_glue_job - 添加
glue_version
参数 (https://github.com/ansible-collections/community.aws/pull/480).aws_glue_job - 添加对检查模式的支持 (https://github.com/ansible-collections/community.aws/pull/480).
aws_glue_job - 添加对标签的支持 (https://github.com/ansible-collections/community.aws/pull/480).
aws_ssm 连接插件 - 为文件传输存储桶上的上传添加参数以显式指定 SSE 模式和 KMS 密钥 ID。(https://github.com/ansible-collections/community.aws/pull/763)
iam_user - 为 iam 用户创建添加 boto3 等待程序 (https://github.com/ansible-collections/community.aws/pull/822).
iam_user - 添加密码管理支持,与
iam
模块保持一致 (https://github.com/ansible-collections/community.aws/pull/822).route53 - 删除记录时,
ttl
和value
不是必需的 (https://github.com/ansible-collections/community.aws/pull/801).route53_info -
max_items
和type
不再被忽略,修复了一个回归问题 (https://github.com/ansible-collections/community.aws/pull/813).
重大更改/移植指南
aws_acm_facts - 删除已弃用的别名
aws_acm_facts
。请改用aws_acm_info
。aws_kms_facts - 删除已弃用的别名
aws_kms_facts
。请改用aws_kms_info
。aws_kms_info - 已弃用的
keys_attr
字段现在被忽略 (https://github.com/ansible-collections/community.aws/pull/838).aws_region_facts - 删除已弃用的别名
aws_region_facts
。请改用aws_region_info
。aws_s3_bucket_facts - 删除已弃用的别名
aws_s3_bucket_facts
。请改用aws_s3_bucket_info
。aws_sgw_facts - 删除已弃用的别名
aws_sgw_facts
。请改用aws_sgw_info
。aws_waf_facts - 删除已弃用的别名
aws_waf_facts
。请改用aws_waf_info
。cloudfront_facts - 删除已弃用的别名
cloudfront_facts
。请改用cloudfront_info
。cloudwatchlogs_log_group_facts - 删除已弃用的别名
cloudwatchlogs_log_group_facts
。请改用cloudwatchlogs_log_group_info
。dynamodb_table - 当前为主键和 global_all 索引忽略的已弃用更新现在将导致失败。(https://github.com/ansible-collections/community.aws/pull/837).
ec2_asg_facts - 删除已弃用的别名
ec2_asg_facts
。请改用ec2_asg_info
。ec2_customer_gateway_facts - 删除已弃用的别名
ec2_customer_gateway_facts
。请改用ec2_customer_gateway_info
。ec2_eip_facts - 删除已弃用的别名
ec2_eip_facts
。请改用ec2_eip_info
。ec2_elb_facts - 删除已弃用的别名
ec2_elb_facts
。请改用ec2_elb_info
。ec2_elb_info -
ec2_elb_info
模块已被删除。请改用elb_classic_lb_info
模块。ec2_lc_facts - 已移除弃用的别名
ec2_lc_facts
。请改用ec2_lc_info
。ec2_placement_group_facts - 已移除弃用的别名
ec2_placement_group_facts
。请改用ec2_placement_group_info
。ec2_vpc_nacl_facts - 已移除弃用的别名
ec2_vpc_nacl_facts
。请改用ec2_vpc_nacl_info
。ec2_vpc_peering_facts - 已移除弃用的别名
ec2_vpc_peering_facts
。请改用ec2_vpc_peering_info
。ec2_vpc_route_table_facts - 已移除弃用的别名
ec2_vpc_route_table_facts
。请改用ec2_vpc_route_table_info
。ec2_vpc_vgw_facts - 已移除弃用的别名
ec2_vpc_vgw_facts
。请改用ec2_vpc_vgw_info
。ec2_vpc_vpn_facts - 已移除弃用的别名
ec2_vpc_vpn_facts
。请改用ec2_vpc_vpn_info
。ecs_service_facts - 已移除弃用的别名
ecs_service_facts
。请改用ecs_service_info
。ecs_taskdefinition_facts - 已移除弃用的别名
ecs_taskdefinition_facts
。请改用ecs_taskdefinition_info
。efs_facts - 已移除弃用的别名
efs_facts
。请改用efs_info
。elasticache_facts - 已移除弃用的别名
elasticache_facts
。请改用elasticache_info
。elb_application_lb_facts - 已移除弃用的别名
elb_application_lb_facts
。请改用elb_application_lb_info
。elb_classic_lb_facts - 已移除弃用的别名
elb_classic_lb_facts
。请改用elb_classic_lb_info
。elb_target_facts - 已移除弃用的别名
elb_target_facts
。请改用elb_target_info
。elb_target_group_facts - 已移除弃用的别名
elb_target_group_facts
。请改用elb_target_group_info
。iam - 已移除弃用的
community.aws.iam
模块。请改用community.aws.iam_user
、community.aws.iam_access_key
或community.aws.iam_group
(https://github.com/ansible-collections/community.aws/pull/839)。iam_cert_facts - 已移除弃用的别名
iam_cert_facts
。请改用iam_cert_info
。iam_mfa_device_facts - 已移除弃用的别名
iam_mfa_device_facts
。请改用iam_mfa_device_info
。iam_role_facts - 已移除弃用的别名
iam_role_facts
。请改用iam_role_info
。iam_server_certificate_facts - 已移除弃用的别名
iam_server_certificate_facts
。请改用iam_server_certificate_info
。lambda_facts - 已移除弃用模块 `lambda_facts`。请改用
lambda_info
。rds - 已移除弃用的
community.aws.rds
模块。请改用community.aws.rds_instance
(https://github.com/ansible-collections/community.aws/pull/839)。rds_instance_facts - 已移除弃用的别名
rds_instance_facts
。请改用rds_instance_info
。rds_snapshot_facts - 已移除弃用的别名
rds_snapshot_facts
。请改用rds_snapshot_info
。redshift_facts - 已移除弃用的别名
redshift_facts
。请改用redshift_info
。route53_facts - 已移除弃用的别名
route53_facts
。请改用route53_info
。
错误修复
aws_eks - 修复使用简短名称创建 EKS 集群的问题 (https://github.com/ansible-collections/community.aws/pull/818)。
v2.6.1
发行概要
由于 2.6.0 版本发布错误,将集合版本从 2.6.0 升级到 2.6.1。此版本完全取代了 2.6.0,用户应跳过 2.6.0。
v2.6.0
发行概要
这是 community.aws
集合的最后一个计划的 2.x 版本。请尽快考虑升级到 community.aws
的最新版本。
次要更改
ecs_service -
deployment_circuit_breaker
已被添加为受支持的功能 (https://github.com/ansible-collections/community.aws/pull/1215).ecs_service - 添加
service
别名,以使用与ecs_service_info模块相同的参数来处理ecs服务名称 (https://github.com/ansible-collections/community.aws/pull/1187).ecs_service_info - 添加
name
别名,以使用与ecs_service模块相同的参数来处理ecs服务名称 (https://github.com/ansible-collections/community.aws/pull/1187).
错误修复
ecs_service - 修复未指定
health_check_grace_period_seconds
参数时,更改检测失败的问题 (https://github.com/ansible-collections/community.aws/pull/1212).ecs_service - 未输入时使用默认集群名称
default
(https://github.com/ansible-collections/community.aws/pull/1212).ecs_task - 不需要
cluster
,未输入时使用名称default
(https://github.com/ansible-collections/community.aws/pull/1212).wafv2_ip_set - 修复仅更改描述时返回不正确的更改状态的错误 (https://github.com/ansible-collections/community.aws/pull/1211).
v2.5.0
发行概要
这是 community.aws
集合的次要版本。
次要更改
iam_policy - 更新损坏的示例并向文档添加 RETURN 部分;为幂等性检查模式运行添加额外的集成测试(https://github.com/ansible-collections/community.aws/pull/1093)。
iam_role - 删除角色之前先删除内联策略(https://github.com/ansible-collections/community.aws/pull/1054)。
iam_role - 删除全局变量并相应地重构(https://github.com/ansible-collections/community.aws/pull/1054)。
错误修复
ecs_service - 添加缺失的
health_check_grace_period_seconds
参数变更检测 (https://github.com/ansible-collections/community.aws/pull/1145).ecs_service - 修复
task_definition
的错误比较,该比较始终导致任务发生更改 (https://github.com/ansible-collections/community.aws/pull/1145).ecs_service - 修复
placement_constraints
的验证。现在可以使用distinctInstance
放置约束 (https://github.com/ansible-collections/community.aws/issues/1058).ecs_taskdefinition - 修复
launch_type
参数的错误变更检测 (https://github.com/ansible-collections/community.aws/pull/1145).execute_lambda - 修复检查模式并更新RETURN文档 (https://github.com/ansible-collections/community.aws/pull/1115).
iam_policy - 当状态为present时,要求
policy_document
和policy_json
至少有一个,以防止抛出MalformedPolicyDocumentException异常 (https://github.com/ansible-collections/community.aws/pull/1093).s3_lifecycle - 为
transition_days
添加对值0的支持 (https://github.com/ansible-collections/community.aws/pull/1077).s3_lifecycle - 在返回之前检查配置是否完整 (https://github.com/ansible-collections/community.aws/pull/1085).
v2.4.0
发行概要
这是 community.aws
集合的次要版本。此更改日志包含自上次发布以来对该集合中模块和插件所做的所有更改。
次要更改
为 cloudfront_distribution 添加了重试支持 (AWSRetry.jittered_backoff) (https://github.com/ansible-collections/community.aws/issues/296)
错误修复
为 elb_application_lb_info 添加了回退重试逻辑 (https://github.com/ansible-collections/community.aws/pull/977)
ecs_taskdefinition - 在比较任务定义时包含 launch_type 比较 (https://github.com/ansible-collections/community.aws/pull/840)
elb_target_group_info - 添加回退重试逻辑 (https://github.com/ansible-collections/community.aws/pull/1001)
iam_role - 删除在删除角色时不必要地删除角色权限边界。与内联策略不同,在删除 IAM 角色之前,不需要从 IAM 角色中删除权限边界。这种行为会在继承阻止删除权限边界的权限边界时导致问题。(https://github.com/ansible-collections/community.aws/pull/961)
redshift_info - 修复 botocore 异常的无效导入路径 (https://github.com/ansible-collections/community.aws/issues/968).
wafv2_web_acl - 修复规则包含列表值时的异常 (https://github.com/ansible-collections/community.aws/pull/962).
v2.3.0
发行概要
这是 community.aws
集合的次要版本。此更改日志包含自上次发布以来对该集合中模块和插件所做的所有更改。
次要更改
elb_instance -
wait
参数不再被忽略 (https://github.com/ansible-collections/community.aws/pull/826)
错误修复
cloudfront_distribution - 不要将
s3_origin_access_identity_enabled
传递给 API 请求 (https://github.com/ansible-collections/community.aws/pull/881).execute_lambda - 在执行之前等待 Lambda 函数状态 = 活动 (https://github.com/ansible-collections/community.aws/pull/857)
lambda - 在更新之前等待 Lambda 函数状态 = 活动 & LastUpdateStatus = 成功 (https://github.com/ansible-collections/community.aws/pull/857)
v2.2.0
发行概要
这是一个 community.aws
集合的反向移植版本。
次要更改
aws_msk_config - 删除重复和不具体的依赖项 (https://github.com/ansible-collections/community.aws/pull/863).
aws_ssm 连接插件 - 为文件传输存储桶上的上传添加参数以显式指定 SSE 模式和 KMS 密钥 ID。(https://github.com/ansible-collections/community.aws/pull/763)
ecs_taskdefinition - 删除重复和不具体的依赖项 (https://github.com/ansible-collections/community.aws/pull/863).
iam_user - 为 iam 用户创建添加 boto3 等待程序 (https://github.com/ansible-collections/community.aws/pull/822).
iam_user - 添加密码管理支持,与
iam
模块保持一致 (https://github.com/ansible-collections/community.aws/pull/822).s3_lifecycle - 添加
abort_incomplete_multipart_upload_days
和expire_object_delete_marker
参数 (https://github.com/ansible-collections/community.aws/pull/794).
错误修复
aws_eks - 修复使用简短名称创建 EKS 集群的问题 (https://github.com/ansible-collections/community.aws/pull/818)。
新模块
ec2_asg_scheduled_action - 创建、修改和删除 ASG 预约式扩缩操作。
v2.1.0
次要更改
aws_config_delivery_channel - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764)。
aws_direct_connect_confirm_connection - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764)。
aws_direct_connect_connection - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764)。
aws_direct_connect_link_aggregation_group - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764)。
aws_direct_connect_virtual_interface - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764)。
aws_inspector_target - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
aws_kms - 添加了对
kms_spec
和kms_usage
参数的支持 (https://github.com/ansible-collections/community.aws/pull/774).aws_kms - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
aws_kms_info - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
cloudformation_stack_set - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
cloudfront_distribution - 为查看器连接添加了
TLSv1.2_2021
安全策略 (https://github.com/ansible-collections/community.aws/pull/707).dms_endpoint - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
dms_replication_subnet_group - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
dynamodb_table - 添加了对设置
billing_mode
选项的支持 (https://github.com/ansible-collections/community.aws/pull/753).dynamodb_table - 模块已更新为使用 boto3 AWS SDK (https://github.com/ansible-collections/community.aws/pull/726).
ec2_asg - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
ec2_eip - 添加了对 EIP 添加标签的支持 (https://github.com/ansible-collections/community.aws/pull/332).
ec2_eip_info - 为常见的临时 API 失败添加了自动重试功能 (https://github.com/ansible-collections/community.aws/pull/332).
ec2_eip_info - 添加了对 EIP 添加标签的支持 (https://github.com/ansible-collections/community.aws/pull/332).
ec2_elb_info - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
ec2_win_password - 模块已更新为使用 boto3 AWS SDK (https://github.com/ansible-collections/community.aws/pull/759).
ecs_service - 添加了强制删除服务的支持 (https://github.com/ansible-collections/community.aws/pull/228).
ecs_service_info - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
ecs_taskdefinition - 添加了
placement_constraints
选项 (https://github.com/ansible-collections/community.aws/pull/741).efs - 添加了
transition_to_ia
参数,用于指定将数据转换到非活动存储之前的几天数 (https://github.com/ansible-collections/community.aws/pull/522).elb_instance - 添加了新的返回值
updated_elbs
(https://github.com/ansible-collections/community.aws/pull/773).elb_instance - 模块已迁移到 boto3 AWS SDK (https://github.com/ansible-collections/community.aws/pull/773).
elb_target_group - 添加了
preserve_client_ip_enabled
选项 (https://github.com/ansible-collections/community.aws/pull/670).elb_target_group - 添加了
proxy_protocol_v2_enabled
选项 (https://github.com/ansible-collections/community.aws/pull/670).iam_managed_policy - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
iam_role - 为 IAM 角色创建/更新添加了
wait
选项 (https://github.com/ansible-collections/community.aws/pull/767).iam_saml_federation - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
iam_server_certificate - 添加了对 check_mode 的支持 (https://github.com/ansible-collections/community.aws/pull/737).
iam_server_certificate - 模块迁移到使用 boto3 SDK (https://github.com/ansible-collections/community.aws/pull/737).
lambda_info - 为可恢复错误添加了自动重试功能 (https://github.com/ansible-collections/community.aws/pull/777).
lambda_info - 添加了对标签的支持 (https://github.com/ansible-collections/community.aws/pull/375).
lambda_info - 使用分页器进行列表查询 (https://github.com/ansible-collections/community.aws/pull/777).
rds - 替换了已弃用的 backoff 装饰器 (https://github.com/ansible-collections/community.aws/pull/764).
redshift_subnet_group - 添加了对 check_mode 的支持 (https://github.com/ansible-collections/community.aws/pull/724).
redshift_subnet_group -
group_description
选项已重命名为description
,现在是可选的。旧的参数名称仍然有效 (https://github.com/ansible-collections/community.aws/pull/724).redshift_subnet_group -
group_subnets
选项已重命名为subnets
,现在只有在创建新组时才需要。旧的参数名称仍然有效 (https://github.com/ansible-collections/community.aws/pull/724).redshift_subnet_group - 模块已迁移到 boto3 AWS SDK (https://github.com/ansible-collections/community.aws/pull/724).
route53_health_check - 添加了对为运行状况检查添加标签的支持 (https://github.com/ansible-collections/community.aws/pull/765).
route53_health_check - 添加了对 check_mode 的支持 (https://github.com/ansible-collections/community.aws/pull/734).
route53_health_check - 添加了对禁用运行状况检查的支持 (https://github.com/ansible-collections/community.aws/pull/756).
route53_health_check - 迁移到 boto3 SDK (https://github.com/ansible-collections/community.aws/pull/734).
route53_zone - 添加了对为 Route 53 区域添加标签的支持 (https://github.com/ansible-collections/community.aws/pull/565).
sqs_queue - 提供 kms_master_key_id 现在将正确启用 SSE (https://github.com/ansible-collections/community.aws/pull/762)
已弃用的功能
dynamodb_table - DynamoDB 不支持在创建
ALL
索引时指定非键属性。目前忽略此类索引的includes
传递,但在 3.0.0 版本之后将导致失败 (https://github.com/ansible-collections/community.aws/pull/726).dynamodb_table - DynamoDB 不支持更新表的 primary indexes。目前忽略此类更改的尝试,但在 3.0.0 版本之后将导致失败 (https://github.com/ansible-collections/community.aws/pull/726).
elb_instance -
ec2_elb
事实的设置已被弃用,将在集合的 4.0.0 版本中删除。请参阅模块文档中使用 register 关键字的替代示例 (https://github.com/ansible-collections/community.aws/pull/773).iam_cert - iam_cert 模块已重命名为 iam_server_certificate,以与配套的 iam_server_certificate_info 模块保持一致。模块的使用方式没有改变。iam_cert 别名将在 4.0.0 版本中删除 (https://github.com/ansible-collections/community.aws/pull/728).
iam_server_certificate - 将文件名传递给
cert
、chain_cert
和key
参数已被弃用。我们建议改为使用 lookup 插件读取文件,请参阅文档中的示例 (https://github.com/ansible-collections/community.aws/pull/735).iam_server_certificate -
dup_ok
参数的默认值为false
,在 4.0.0 版本中将更新为true
。要保留当前行为,请显式将dup_ok
参数设置为false
(https://github.com/ansible-collections/community.aws/pull/737).rds_snapshot - rds_snapshot 模块已重命名为 rds_instance_snapshot。模块的使用方式没有改变。rds_snapshot 别名将在 4.0.0 版本中删除 (https://github.com/ansible-collections/community.aws/pull/783).
错误修复
AWS 操作组 - 添加了缺失的
aws_direct_connect_confirm_connection
和efs_tag
条目 (https://github.com/ansible-collections/amazon.aws/issues/557).cloudfront_info - 切换到原生 boto3 分页器以修复超过 100 个分发时报告的错误 (https://github.com/ansible-collections/community.aws/issues/769).
ec2_eip - 修复了分配 EIP 但未将其关联到 VPC 时的错误 (https://github.com/ansible-collections/community.aws/pull/731).
elb_classic_lb_info - 修复了未定义名称时返回空列表的错误 (https://github.com/ansible-collections/community.aws/pull/693).
elb_instance - Python 3 兼容性修复 (https://github.com/ansible-collections/community.aws/issues/384).
iam_role_info - 切换到抖动回退以减少速率限制失败 (https://github.com/ansible-collections/community.aws/pull/748).
rds_instance - 修复了在现有 RDS 实例上启用增强型监控的问题 (https://github.com/ansible-collections/community.aws/pull/747).
route53 - 在 resource_record_set 中添加了缺失的 set 标识符 (https://github.com/ansible-collections/community.aws/pull/595).
route53 - 修复了删除记录时的 diff 模式 (https://github.com/ansible-collections/community.aws/pull/802).
route53 - 为不存在的记录返回空结果 (https://github.com/ansible-collections/community.aws/pull/799).
sns_topic - 定义 delivery_policy 选项的子选项 (https://github.com/ansible-collections/community.aws/issues/713).
新增模块
iam_access_key - 管理 AWS IAM 用户访问密钥
iam_access_key_info - 获取 AWS IAM 用户访问密钥信息
rds_option_group - rds_option_group 模块
rds_option_group_info - rds_option_group_info 模块
v2.0.0
主要变更
community.aws 集合 - community.aws 集合已停止支持
botocore<1.18.0
和boto3<1.15.0
(https://github.com/ansible-collections/community.aws/pull/711)。大多数模块将继续与较旧版本的 AWS SDK 兼容,但是,不保证与较旧版本 SDK 的兼容性,并且不会对其进行测试。使用旧版本 SDK 时,Ansible 将发出警告 (https://github.com/ansible-collections/amazon.aws/pull/442).
次要变更
aws_eks_cluster - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
aws_kms_info - 使用生成器而不是列表推导式 (https://github.com/ansible-collections/community.aws/pull/688).
aws_s3_bucket_info - 在尝试获取存储桶所有权控制时,添加了对 botocore>=1.18.11 的测试 (https://github.com/ansible-collections/community.aws/pull/682)
aws_ses_rule_set - 使用生成器而不是列表推导式 (https://github.com/ansible-collections/community.aws/pull/688).
aws_sgw_info - 确保模块在 check_mode 下运行 (https://github.com/ansible-collections/community.aws/issues/659).
cloudformation_exports_info - 确保模块在 check_mode 下运行 (https://github.com/ansible-collections/community.aws/issues/659).
cloudformation_stack_set - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
cloudfront_info - 确保模块在 check_mode 下运行 (https://github.com/ansible-collections/community.aws/issues/659).
cloudwatchevent_rule - 使用生成器而不是列表推导式 (https://github.com/ansible-collections/community.aws/pull/688).
dynamodb_table - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
dynamodb_ttl - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ec2_ami_copy - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ec2_asg - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ec2_asg_info - 确保模块在 check_mode 下运行 (https://github.com/ansible-collections/community.aws/issues/659).
ec2_launch_template - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ec2_lc_info - 确保模块在 check_mode 下运行 (https://github.com/ansible-collections/community.aws/issues/659).
ec2_transit_gateway - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ec2_transit_gateway_info - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ec2_vpc_peer - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ec2_vpc_peer - 使用共享代码为对等连接添加标签 (https://github.com/ansible-collections/community.aws/pull/614).
ec2_vpc_route_table - 使用共享代码为路由表添加标签 (https://github.com/ansible-collections/community.aws/pull/616).
ec2_vpc_vgw - 修复 arguments-renamed pylint 问题 (https://github.com/ansible-collections/community.aws/pull/686).
ec2_vpc_vpn - 修复 arguments-renamed pylint 问题 (https://github.com/ansible-collections/community.aws/pull/686).
ecs_ecr - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ecs_service - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ecs_task - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
ecs_task - 删除未使用的导入 (https://github.com/ansible-collections/community.aws/pull/686).
ecs_taskdefinition - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
efs - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
efs_info - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
elasticache_subnet_group - 添加返回值 (https://github.com/ansible-collections/community.aws/pull/723).
elasticache_subnet_group - 添加对 check_mode 的支持 (https://github.com/ansible-collections/community.aws/pull/723).
elasticache_subnet_group - 模块迁移到 boto3 AWS SDK (https://github.com/ansible-collections/community.aws/pull/723).
elb_application_lb - 添加
ip_address_type
参数以支持更改应用程序负载均衡器配置 (https://github.com/ansible-collections/community.aws/pull/499).elb_application_lb_info - 在收集应用程序负载均衡器参数时,在输出中添加
ip_address_type
(https://github.com/ansible-collections/community.aws/pull/499).elb_instance - 注销实例时使 elb_instance 幂等。合并自 ec2_elb U(https://github.com/ansible/ansible/pull/31660).
elb_network_lb - 添加
ip_address_type
参数以支持更改网络负载均衡器配置 (https://github.com/ansible-collections/community.aws/pull/499).elb_target_group - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
elb_target_group - 使用生成器而不是列表推导式 (https://github.com/ansible-collections/community.aws/pull/688).
iam - 使用生成器而不是列表推导式 (https://github.com/ansible-collections/community.aws/pull/688).
iam_group - 使用生成器而不是列表推导式 (https://github.com/ansible-collections/community.aws/pull/688).
iam_mfa_device_info - 确保模块在 check_mode 下运行 (https://github.com/ansible-collections/community.aws/issues/659).
iam_role - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
iam_role - 使用生成器而不是列表推导式 (https://github.com/ansible-collections/community.aws/pull/688).
iam_server_certificate_info - 确保模块在 check_mode 下运行 (https://github.com/ansible-collections/community.aws/issues/659).
iam_user - 使用生成器而不是列表推导式 (https://github.com/ansible-collections/community.aws/pull/688).
kms_info - 添加了一个新的
keys_attr
参数,以继续在keys
属性以及kms_keys
属性中返回密钥详细信息 (https://github.com/ansible-collections/community.aws/pull/648).lambda - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
rds_instance - 已删除与旧版 AWS SDK 兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
rds_instance - 将
preferred_maintenance_window
天数转换为小写,以便更改正确返回 (https://github.com/ansible-collections/community.aws/pull/516).rds_instance - 使用生成器而不是列表推导式 (https://github.com/ansible-collections/community.aws/pull/688).
route53 - 在等待更改传播时添加速率限制重试 (https://github.com/ansible-collections/community.aws/pull/564).
route53 - 在
PriorRequestNotComplete
错误上添加重试功能 (https://github.com/ansible-collections/community.aws/pull/564).route53 - 更新重试
max_delay
设置,使其可以设置为超过60秒 (https://github.com/ansible-collections/community.aws/pull/564).sns_topic - 添加
topic_type
参数以选择SNS主题的类型(FIFO或标准)(https://github.com/ansible-collections/community.aws/pull/599).sqs_queue - 已删除与旧版AWS SDK兼容性测试 (https://github.com/ansible-collections/community.aws/pull/675).
多个community.aws模块 - 删除未使用的导入 (https://github.com/ansible-collections/community.aws/pull/629)
wafv2_resources_info - 确保模块在检查模式下运行 (https://github.com/ansible-collections/community.aws/issues/659).
wafv2_web_acl_info - 确保模块在检查模式下运行 (https://github.com/ansible-collections/community.aws/issues/659).
重大更改/移植指南
ec2_instance - 该模块已迁移到
amazon.aws
集合。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_instance
。ec2_instance_info - 该模块已迁移到
amazon.aws
集合。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_instance_info
。ec2_vpc_endpoint - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_endpoint
。ec2_vpc_endpoint_facts - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_endpoint_info
。ec2_vpc_endpoint_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_endpoint_info
。ec2_vpc_endpoint_service_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_endpoint_service_info
。ec2_vpc_igw - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_igw
。ec2_vpc_igw_facts - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_igw_info
。ec2_vpc_igw_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_igw_info
。ec2_vpc_nat_gateway - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_nat_gateway
。ec2_vpc_nat_gateway_facts - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_nat_gateway_info
。ec2_vpc_nat_gateway_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的Playbook应更新为使用amazon.aws.ec2_vpc_nat_gateway_info
。kms_info - 密钥详细信息现在返回在
kms_keys
属性中,而不是keys
属性中 (https://github.com/ansible-collections/community.aws/pull/648).
已弃用的功能
ec2_elb -
ec2_elb
模块已被移除并重定向到功能相同的elb_instance
模块。原始ec2_elb
名称现已弃用,将在3.0.0版本中移除 (https://github.com/ansible-collections/community.aws/pull/586).ec2_elb_info - 基于boto的
ec2_elb_info
模块已被弃用,取而代之的是基于boto3的elb_classic_lb_info
模块。ec2_elb_info
模块将在3.0.0版本中移除 (https://github.com/ansible-collections/community.aws/pull/586).elb_classic_lb -
elb_classic_lb
模块已被移除并重定向到功能相同的amazon.aws.ec2_elb_lb
模块。iam - 基于boto的
iam
模块已被弃用,取而代之的是基于boto3的iam_user
、iam_group
和iam_role
模块。iam
模块将在3.0.0版本中移除 (https://github.com/ansible-collections/community.aws/pull/664).rds - 基于boto的
rds
模块已被弃用,取而代之的是基于boto3的rds_instance
模块。rds
模块将在3.0.0版本中移除 (https://github.com/ansible-collections/community.aws/pull/663).script_inventory_ec2 - ec2.py清单脚本正在迁移到一个新的存储库。该脚本现在可以从https://github.com/ansible-community/contrib-scripts/blob/main/inventory/ec2.py下载,并将在此集合的3.0版本中移除。我们建议从该脚本迁移到
amazon.aws.ec2
清单插件。
错误修复
aws_secret - 修复在不使用立即删除的情况下删除幂等性问题 (https://github.com/ansible-collections/community.aws/pull/681).
aws_ssm - 将
retries
重命名为reconnection_retries
以避免与任务重试冲突ec2_vpc_peer - 在尝试标记新创建的对等连接时自动重试 (https://github.com/ansible-collections/community.aws/pull/614).
ec2_vpc_route_table - 在尝试修改新创建的路由表时自动重试 (https://github.com/ansible-collections/community.aws/pull/616).
ecs_taskdefinition - 确保转换为整数 (https://github.com/ansible-collections/community.aws/pull/574).
ecs_taskdefinition - 修复幂等性问题 (https://github.com/ansible-collections/community.aws/pull/574).
ecs_taskdefinition - 修复ecs任务定义中env文件验证的错别字 (https://github.com/ansible-collections/community.aws/pull/600).
iam_role - 修改iam_role内部代码,将update_role_description替换为update_role (https://github.com/ansible-collections/community.aws/pull/697).
route53 - 修复阻止延迟管理的等待器配置中的错别字 (https://github.com/ansible-collections/community.aws/pull/564).
s3_sync - 修复处理单个文件路径以将单个文件上传到s3存储桶的问题 (https://github.com/ansible-collections/community.aws/pull/692).
sqs_queue - 修复队列属性比较以使模块幂等 (https://github.com/ansible-collections/community.aws/pull/592).
新模块
aws_msk_cluster - 管理Amazon MSK集群。
aws_msk_config - 管理Amazon MSK集群配置。
efs_tag - 在Amazon EFS资源上创建和删除标签
v1.5.0
次要更改
aws_config_aggregator - 修复属性名称中的错别字 (https://github.com/ansible-collections/community.aws/pull/553).
aws_glue_connection - 添加了多种连接类型 (https://github.com/ansible-collections/community.aws/pull/503).
aws_glue_connection - 添加了对检查模式的支持 (https://github.com/ansible-collections/community.aws/pull/503).
aws_glue_job - 向模块添加了
number_of_workers
、worker_type
和glue_version
属性 (https://github.com/ansible-collections/community.aws/pull/370).aws_region_info - 为常见的 AWS 故障添加重试机制 (https://github.com/ansible-collections/community.aws/pull/422).
aws_s3_bucket_info - 新的模块选项
name
、name_filter
、bucket_facts
和transform_location
(https://github.com/ansible-collections/community.aws/pull/260).aws_ssm 连接插件 - 添加了对指定连接时使用的配置文件的支持 (https://github.com/ansible-collections/community.aws/pull/278).
aws_ssm_parameter_store - 添加了层级参数选项 (https://github.com/ansible/ansible/issues/59738).
ec2_asg 模块 - 添加了对所有 mixed_instances_policy 参数的支持 (https://github.com/ansible-collections/community.aws/issues/231).
ec2_asg_info - 收集有关 ASG 生命周期钩子的信息 (https://github.com/ansible-collections/community.aws/pull/233).
ec2_instance - 在尝试设置其他参数之前,等待新实例返回状态 (https://github.com/ansible-collections/community.aws/pull/533).
ec2_instance_info - 为常见的 AWS 故障添加重试机制 (https://github.com/ansible-collections/community.aws/pull/521).
ec2_launch_template - 添加了
metadata_options
参数以支持更改实例的 IMDS 配置 (https://github.com/ansible-collections/community.aws/pull/322).ec2_metric_alarm - 添加了对检查模式的支持 (https://github.com/ansible-collections/community.aws/pull/470).
ec2_metric_alarm - 将
unit
参数设置为可选 (https://github.com/ansible-collections/community.aws/pull/470).ec2_vpc_egress_igw - 为常见的 AWS 故障添加重试机制 (https://github.com/ansible-collections/community.aws/pull/421).
ec2_vpc_endpoint - 为常见的 AWS 故障添加重试机制。(https://github.com/ansible-collections/community.aws/pull/473)
ec2_vpc_endpoint - 添加了对指定
vpc_endpoint_type
的支持 (https://github.com/ansible-collections/community.aws/pull/460).ec2_vpc_endpoint - 模块现在支持标记端点。(https://github.com/ansible-collections/community.aws/pull/473)
ec2_vpc_endpoint - 模块现在将查找现有端点,并在创建新端点之前尝试与提供的参数匹配,以提高幂等性。(https://github.com/ansible-collections/community.aws/pull/473)
ec2_vpc_endpoint_info - 确保在常见的 AWS 故障时重试分页的端点描述 (https://github.com/ansible-collections/community.aws/pull/537).
ec2_vpc_endpoint_info - 获取服务时使用 boto3 分页器 (https://github.com/ansible-collections/community.aws/pull/537).
ec2_vpc_endpoint_service_info - 添加了用于获取可用 VPC 端点服务信息的模块 (https://github.com/ansible-collections/community.aws/pull/346).
ec2_vpc_nacl - 添加了对 IPv6 的支持 (https://github.com/ansible-collections/community.aws/pull/398).
ec2_vpc_nat_gateway - 添加 AWSRetry 装饰器以提高可靠性 (https://github.com/ansible-collections/community.aws/pull/427).
ec2_vpc_nat_gateway - 代码清理 (https://github.com/ansible-collections/community.aws/pull/445)
ec2_vpc_nat_gateway - 改进文档 (https://github.com/ansible-collections/community.aws/pull/445)
ec2_vpc_nat_gateway - 改进错误处理 (https://github.com/ansible-collections/community.aws/pull/445)
ec2_vpc_nat_gateway - 使用自定义等待器来管理 NAT 网关状态(已删除和可用)(https://github.com/ansible-collections/community.aws/pull/445)
ec2_vpc_nat_gateway - 在 describe 调用上使用分页以确保获取所有结果 (https://github.com/ansible-collections/community.aws/pull/427).
ec2_vpc_nat_gateway_info - 添加分页器 (https://github.com/ansible-collections/community.aws/pull/472).
ec2_vpc_nat_gateway_info - 改进文档 (https://github.com/ansible-collections/community.aws/pull/472).
ec2_vpc_nat_gateway_info - 改进错误处理 (https://github.com/ansible-collections/community.aws/pull/472)
ec2_vpc_nat_gateway_info - 使用 normalize_boto3_result (https://github.com/ansible-collections/community.aws/pull/472)
ec2_vpc_nat_gateway_info - 通过添加重试装饰器解决 RequestLimitExceeded 错误 (https://github.com/ansible-collections/community.aws/pull/446)
ec2_vpc_peer - 添加了更多返回信息,还简化了模块代码并扩展了测试 (https://github.com/ansible-collections/community.aws/pull/355)
ec2_vpc_peer - 添加了对等待状态更改的支持 (https://github.com/ansible-collections/community.aws/pull/501).
ec2_vpc_peering_info - 添加
vpc_peering_connections
返回值以与 boto3 模块保持一致 (https://github.com/ansible-collections/community.aws/pull/501).ec2_vpc_peering_info - 为常见的 AWS 故障添加重试机制 (https://github.com/ansible-collections/community.aws/pull/536).
ec2_vpc_route_table - 添加 AWSRetry 装饰器以提高可靠性 (https://github.com/ansible-collections/community.aws/pull/442).
ec2_vpc_route_table - 为某些搜索添加 boto3 分页 (https://github.com/ansible-collections/community.aws/pull/442).
ec2_vpc_route_table_info - 迁移到 boto3 (https://github.com/ansible-collections/community.aws/pull/442).
ec2_vpc_vgw - 为可恢复的错误添加自动重试 (https://github.com/ansible-collections/community.aws/pull/162).
ec2_vpc_vpn - 为可恢复的错误添加自动重试 (https://github.com/ansible-collections/community.aws/pull/162).
ecs_service - 向
ecs_service
添加platform_version
参数 (https://github.com/ansible-collections/community.aws/pull/353).ecs_task - 为 network_configuration 添加了
assign_public_ip
选项 (https://github.com/ansible-collections/community.aws/pull/395).ecs_taskdefinition - 文档改进 (https://github.com/ansible-collections/community.aws/issues/520)
elasticache - 略微改进文档,添加集成测试 (https://github.com/ansible-collections/community.aws/pull/410).
elb_classic_info - 如果提供的负载均衡器不存在,则返回空列表而不是抛出错误。(https://github.com/ansible-collections/community.aws/pull/215).
elb_target_group - 添加 elb 目标组属性
stickiness_app_cookie_name
和stickiness_app_cookie_duration_seconds
。还更新了 stickiness_type 的文档,以提及应用程序 Cookie (https://github.com/ansible-collections/community.aws/pull/548)iam - 在返回创建或删除的
user_name
时,使 iam 模块更可预测 (https://github.com/ansible-collections/community.aws/pull/369).iam_saml_federation - 模块现在在没有进行更改时返回提供程序的状态 (https://github.com/ansible-collections/community.aws/pull/419).
kinesis_stream - 检查模式现在基于实时设置,而不是与硬编码/虚拟流定义进行比较 (https://github.com/ansible-collections/community.aws/pull/27).
kinesis_stream - 现在更准确地返回已更改的内容 (https://github.com/ansible-collections/community.aws/pull/27).
kinesis_stream - 现在始终如一地返回标签 (https://github.com/ansible-collections/community.aws/pull/27).
kinesis_stream - 使用加密和未加密流时,返回值现在具有相同的格式 (https://github.com/ansible-collections/community.aws/pull/27).
lambda_alias - 为常见的 AWS 故障添加重试机制 (https://github.com/ansible-collections/community.aws/pull/396).
lambda_alias - 使用公共辅助函数创建 AWS 连接 (https://github.com/ansible-collections/community.aws/pull/396).
lambda_alias - 使用公共辅助函数执行 snake_case 到 CamelCase 的转换 (https://github.com/ansible-collections/community.aws/pull/396).
rds_instance - 新的
purge_security_groups
参数 (https://github.com/ansible-collections/community.aws/issues/385).rds_param_group - 添加 AWSRetry (https://github.com/ansible-collections/community.aws/pull/532).
rds_param_group - 修复集成测试 (https://github.com/ansible-collections/community.aws/pull/532).
rds_param_group - 支持检查模式 (https://github.com/ansible-collections/community.aws/pull/532).
rds_snapshot - 添加到 aws module_defaults 组 (https://github.com/ansible-collections/community.aws/pull/515).
route53 - 修复尝试创建别名记录时出现的 AWS API 错误 (https://github.com/ansible-collections/community.aws/issues/434).
s3_lifecycle - 添加
wait
参数以等待更改在设置后传播 (https://github.com/ansible-collections/community.aws/pull/448).s3_lifecycle - 为常见的 AWS 故障添加重试机制 (https://github.com/ansible-collections/community.aws/pull/448).
s3_lifecycle - 使用日期而不是天数时修复幂等性问题 (https://github.com/ansible-collections/community.aws/pull/448).
s3_logging - 新增对 check_mode 的支持 (https://github.com/ansible-collections/community.aws/pull/447).
s3_logging - 从 boto 迁移到 boto3 (https://github.com/ansible-collections/community.aws/pull/447).
s3_sync - 新的
storage_class
功能,允许在向 S3 存储桶添加任何对象时指定存储类别 (https://github.com/ansible-collections/community.aws/issues/358).完整性测试 - 为 2.12 版本添加 ignore.txt (https://github.com/ansible-collections/community.aws/pull/527).
state_machine_arn - 当状态不变时返回
state_machine_arn
(https://github.com/ansible-collections/community.aws/pull/302).
已弃用功能
ec2_vpc_endpoint_info -
query
选项已弃用,将于 2022-12-01 后移除 (https://github.com/ansible-collections/community.aws/pull/346)。ec2_vpc_endpoint_info 现在默认列出有关端点的信息。搜索可用服务信息的功能已移至专用模块ec2_vpc_endpoint_service_info
。
安全修复
aws_direct_connect_virtual_interface - 将
authentication_key
参数标记为no_log
,以避免意外泄露日志中的密钥 (https://github.com/ansible-collections/community.aws/pull/475).aws_secret - 将
secret
参数标记为包含敏感数据,不应记录 (https://github.com/ansible-collections/community.aws/pull/471).sts_assume_role - 将
mfa_token
参数标记为no_log
,以避免意外泄露日志中的密钥 (https://github.com/ansible-collections/community.aws/pull/475).sts_session_token - 将
mfa_token
参数标记为no_log
,以避免意外泄露日志中的密钥 (https://github.com/ansible-collections/community.aws/pull/475).
错误修复
aws_ssm - 添加 SSM 连接插件的析构函数,以确保在使用后正确清理连接 (https://github.com/ansible-collections/community.aws/pull/542).
aws_ssm - 如果缺少 **AWS_SESSION_TOKEN**,则启用 aws ssm 连接 (https://github.com/ansible-collections/community.aws/pull/535).
cloudtrail - 修复使用 kms 别名时始终报告 changed = true 的问题 (https://github.com/ansible-collections/community.aws/pull/506).
cloudtrail - 修复标签键的小写问题 (https://github.com/ansible-collections/community.aws/pull/506).
ec2_asg - 修复目标组更新逻辑 (https://github.com/ansible-collections/community.aws/pull/493).
ec2_instance - 确保在使用 check_mode 时不会修改终止保护 (https://github.com/ansible/ansible/issues/67716).
ec2_instance - 修复实例没有标签时的键错误 (https://github.com/ansible-collections/community.aws/pull/476).
ec2_launch_template - 确保在传递给 AWS 之前正确删除空参数 (https://github.com/ansible-collections/community.aws/issues/230).
ec2_launch_template - 修复传递实例配置文件 ARN 而不是仅角色名称时参数验证失败的问题 (https://github.com/ansible-collections/community.aws/pull/371).
ec2_vpc_peer - 修复拒绝和删除对等连接时的幂等性问题 (https://github.com/ansible-collections/community.aws/pull/501).
ec2_vpc_route_table - 在两次重新运行同一任务时捕获 RouteAlreadyExists 错误,以提高模块的幂等性 (https://github.com/ansible-collections/community.aws/issues/357).
elasticache - 修复更新安全组时的
KeyError
问题 (https://github.com/ansible-collections/community.aws/pull/410).kinesis_stream - 修复即使不需要加密操作,流也会被标记为已更改的问题 (https://github.com/ansible/ansible/issues/65928).
rds_instance - 修复从快照创建 RDS 实例时无法使用标签的错误 (https://github.com/ansible-collections/community.aws/issues/530).
route53 - 确保将旧返回值与新返回值一起重新添加 (https://github.com/ansible-collections/community.aws/issues/523).
route53 - 修复在私有区域提供 vpc_id 时
get_zone_id_by_name
中的AttributeError
问题 (https://github.com/ansible-collections/community.aws/issues/509).route53 - 修复AWS转义的记录名称中的字符处理,例如
*
和@
。这修复了此类记录名称的幂等性问题 (https://github.com/ansible-collections/community.aws/issues/524).route53 - 修复在私有DNS区域上使用
state=get
时的错误,并添加测试以涵盖这种情况 (https://github.com/ansible-collections/community.aws/pull/424).route53 - 确保在幂等性比较期间再次忽略CAA值的顺序 (https://github.com/ansible-collections/community.aws/issues/524).
sns_topic - 在 SMS 端点中添加
+
到允许的字符 (https://github.com/ansible-collections/community.aws/pull/454).sqs_queue - 修复传递布尔参数时出现的 UnboundLocalError 问题 (https://github.com/ansible-collections/community.aws/issues/172).
新增模块
ec2_vpc_endpoint_service_info - 获取 AWS VPC 端点服务详细信息
wafv2_ip_set - wafv2_ip_set
wafv2_ip_set_info - 获取有关 wafv2 ip 集的信息
wafv2_resources - wafv2_web_acl
wafv2_resources_info - wafv2_resources_info
wafv2_rule_group - wafv2_web_acl
wafv2_rule_group_info - wafv2_web_acl_info
wafv2_web_acl - wafv2_web_acl
wafv2_web_acl_info - wafv2_web_acl
v1.4.0
次要更改
aws_kms - 添加对使用
pending_window
(PendingWindowInDays) 设置删除窗口的支持 (https://github.com/ansible-collections/community.aws/pull/200).aws_kms_info - 添加
key_id
和alias
参数以支持获取单个密钥 (https://github.com/ansible-collections/community.aws/pull/200).dynamodb_ttl - 使用
botocore_at_least
辅助函数检查可用的 botocore 版本 (https://github.com/ansible-collections/community.aws/pull/280).ec2_instance - 为临时错误添加所有分页查询的自动重试 (https://github.com/ansible-collections/community.aws/pull/373).
ec2_instance - 迁移到共享的 get_ec2_security_group_ids_from_names 实现。如果提供的子网不在请求的 VPC 中,该模块现在将返回错误。(https://github.com/ansible-collections/community.aws/pull/214)
ec2_instance_info - 添加
minimum_uptime
选项,别名为uptime
,用于过滤仅在线一段时间(以分钟为单位)的实例 (https://github.com/ansible-collections/community.aws/pull/356).ec2_launch_template - 为常见的 AWS 故障添加重试 (https://github.com/ansible-collections/community.aws/pull/326).
ec2_vpc_peer - 使用
botocore_at_least
辅助函数检查可用的 botocore 版本 (https://github.com/ansible-collections/community.aws/pull/280).ecs_task - 使用
botocore_at_least
辅助函数检查可用的 botocore 版本 (https://github.com/ansible-collections/community.aws/pull/280).route53 - 从 boto 迁移到 boto3 (https://github.com/ansible-collections/community.aws/pull/405).
各种 community.aws 模块 - 清理错误处理以使用
is_boto3_error_code
和is_boto3_error_message
辅助函数 (https://github.com/ansible-collections/community.aws/pull/268).各种 community.aws 模块 - 清理 Python 导入 (https://github.com/ansible-collections/community.aws/pull/360).
各种 community.aws 模块 - 提高处理 Boto3 异常的一致性 (https://github.com/ansible-collections/community.aws/pull/268).
各种 community.aws 模块 - 将异常错误消息处理从 fail_json 迁移到 fail_json_aws (https://github.com/ansible-collections/community.aws/pull/361).
已弃用功能
ec2_eip - 正式弃用
device_id
的instance_id
别名 (https://github.com/ansible-collections/community.aws/pull/349).ec2_vpc_endpoint - 弃用 policy_file 选项,并建议使用带有查找的 policy (https://github.com/ansible-collections/community.aws/pull/366).
错误修复
aws_kms - 修复模块在没有 kms:GetKeyRotationStatus 权限的情况下执行失败的问题。(https://github.com/ansible-collections/community.aws/pull/200).
aws_kms_info - 确保当标签仅存在于某些 CMK 上时,按标签搜索也能正常工作 (https://github.com/ansible-collections/community.aws/issues/276).
aws_s3_cors - 修复 rules 参数的元素类型。(https://github.com/ansible-collections/community.aws/pull/408).
aws_ssm - 修复了由
_get_url()
函数生成的用于从 S3 存储桶下载 Ansible Python 文件的 CURL URL 的问题,该问题是由 URL 中未赋值 AWS 区域以及未按_get_boto_client()
函数在 (https://github.com/ansible-collections/community.aws/pull/352) 中指定的 AWS S3 签名 URL 使用 V4 签名造成的。aws_ssm - 修复了使用 Unicode 文件名时出现的
UnicodeEncodeError
错误 (https://github.com/ansible-collections/community.aws/pull/295)。ec2_eip - 修复了由于
PrivateIpAddress
参数区分大小写导致的按实例 ID 和私有 IP 地址关联 EIP 的问题 (https://github.com/ansible-collections/community.aws/pull/328)。ec2_vpc_endpoint - 确保在删除端点时正确设置
changed
(https://github.com/ansible-collections/community.aws/pull/362)。ec2_vpc_endpoint - 修复了尝试删除已删除的端点时出现的异常 (https://github.com/ansible-collections/community.aws/pull/362)。
ecs_task - 使用
required_if
根据指定的 operation 强制执行必填参数 (https://github.com/ansible-collections/community.aws/pull/402)。elb_application_lb - 在移除实例期间,关联的监听器也会被移除。
v1.3.0
次要更改
ec2_vpc_igw - 添加 AWSRetry 装饰器以提高可靠性 (https://github.com/ansible-collections/community.aws/pull/318)。
ec2_vpc_igw - 添加
purge_tags
参数,以便可以添加标签而无需清除现有标签以匹配集合标准的标签行为 (https://github.com/ansible-collections/community.aws/pull/318)。ec2_vpc_igw_info - 添加 AWSRetry 装饰器以提高可靠性 (https://github.com/ansible-collections/community.aws/pull/318)。
ec2_vpc_igw_info - 添加
convert_tags
参数,以便可以以标准字典格式而不是字典列表的格式返回标签 (https://github.com/ansible-collections/community.aws/pull/318)。rds_instance - 在
force_update_password
上设置no_log=False
以清除警告 (https://github.com/ansible-collections/community.aws/issues/241)。redshift - 添加了对设置标签的支持。
s3_lifecycle - 添加对智能分层和深度归档存储类的支持 (https://github.com/ansible-collections/community.aws/issues/270)
已弃用的功能
ec2_vpc_igw_info - 2022年6月22日之后,
convert_tags
参数的默认值将从False
更改为True
,以匹配集合的标准行为 (https://github.com/ansible-collections/community.aws/pull/318)。
错误修复
aws_kms_info - 修复了与外部和自定义密钥存储密钥的不兼容性。该模块试图调用
GetKeyRotationStatus
,但对于这些密钥类型会引发UnsupportedOperationException
(https://github.com/ansible-collections/community.aws/pull/311)。ec2_win_password - 成功时将状态返回为未更改 (https://github.com/ansible-collections/community.aws/issues/145)
ec2_win_password - 无法解码密码时返回失败 (https://github.com/ansible-collections/community.aws/issues/142)
ecs_service - 修复了
load_balancers
参数的元素类型 (https://github.com/ansible-collections/community.aws/issues/265)。ecs_taskdefinition - 修复了
containers
参数的元素类型 (https://github.com/ansible-collections/community.aws/issues/264)。iam_policy - 添加了 jittered_backoff 来处理 AWS 速率限制 (https://github.com/ansible-collections/community.aws/pull/324)。
iam_policy_info - 添加了 jittered_backoff 来处理 AWS 速率限制 (https://github.com/ansible-collections/community.aws/pull/324)。
kinesis_stream - 修复了具有 > 100 个分片的分片在无限循环中卡住的问题 (https://github.com/ansible-collections/community.aws/pull/93)
s3_sync - 修复了 chunk_size 计算 (https://github.com/ansible-collections/community.aws/issues/272)
新模块
s3_metrics_configuration - 管理 AWS 中的 s3 存储桶指标配置
v1.2.1
次要更改
aws_ssm 连接插件 - 将 (内部) 变量名从 timeout 更改为 plugin_timeout 以避免与 ansible/ansible 默认 timeout 冲突 (#69284,
aws_ssm 连接插件 - 向 aws_ssm 连接插件添加 STS 令牌选项。
ec2_scaling_policy - 添加对 step_adjustments 的支持
ec2_scaling_policy - 从 boto 迁移到 boto3
rds_subnet_group 模块 - 添加 Boto3 支持并删除 Boto 支持。
错误修复
aws_ssm 连接插件 - 将文件上传到 S3 的命名空间到每个主机上的唯一文件夹中,以防止名称冲突。还会从 S3 中删除文件,以确保不会留下临时文件。(https://github.com/ansible-collections/community.aws/issues/221, https://github.com/ansible-collections/community.aws/issues/222)
rds_instance - 修复了为创建只读副本的标签类型转换问题。
v1.2.0
次要更改
当 AWS 抛出
TooManyRequestsException
时,为 aws_api_gateway 添加重试。将剩余基于 boto3 的模块迁移到基于模块的助手以创建 AWS 连接。
错误修复
aws_codecommit - 修复了如果现有存储库具有空描述,则模块执行将失败的问题 (https://github.com/ansible-collections/community.aws/pull/195)
aws_kms_info - 修复了模块执行失败的问题,因为某些 AWS KMS 密钥(例如 aws/acm)不允许调用 API kms:GetKeyRotationStatus(示例 - https://forums.aws.amazon.com/thread.jspa?threadID=312992)(https://github.com/ansible-collections/community.aws/pull/199)
ec2_instance - 修复了在 check_mode 中更新标签的错误。
ec2_instance - 修复了如果实例已存在则安全组未更改的问题。 https://github.com/ansible-collections/community.aws/pull/22
iam - 修复了关于在
update_password
上使用no_log
的误报警告
v1.1.0
次要更改
其余基于 community.aws AnsibleModule 的模块迁移到 AnsibleAWSModule。
完整性检查 - 在所有缺少的地方添加 future 导入。
已弃用的功能
data_pipeline -
version
选项已被弃用,将在以后的版本中删除。该模块始终忽略它。ec2_eip -
wait_timeout
选项已被弃用,将在以后的版本中删除。自 Ansible 2.3 以来它一直没有效果。ec2_lc -
associate_public_ip_address
选项已被弃用,将在以后的版本中删除。该模块始终忽略它。elb_network_lb - 在以后的版本中,
state
选项的默认行为将从absent
更改为present
。要保持现有行为,请明确将 state 设置为absent
。iam_managed_policy -
fail_on_delete
选项已被弃用,将在以后的版本中删除。该模块始终忽略它。iam_policy - 在以后的版本中,
skip_duplicates
选项的默认值将从true
更改为false
。要保持现有行为,请明确将其设置为true
。iam_policy -
policy_document
选项已被弃用,将在以后的版本中删除。要保持现有行为,请使用policy_json
选项并使用lookup
插件读取文件。iam_role - 在以后的版本中,
purge_policies
选项(也称为purge_policy
)的默认值将从true
更改为false
s3_lifecycle -
requester_pays
选项已被弃用,将在以后的版本中删除。该模块始终忽略它。s3_sync -
retries
选项已被弃用,将在 2022 年 6 月 1 日后删除。该模块始终忽略它。
v1.0.0
细微改动
允许 `aws_api_gateway` 模块使用 boto 支持的所有参数。
aws_acm - 将模块添加到 `module_defaults` 中的 `group/aws`。
aws_acm - 更新自动重试以稳定集成测试。
aws_codecommit - 支持更新描述。
aws_kms - 添加了 `
enable_key_rotation
` 选项,用于启用或禁用自动密钥轮换。aws_kms - 代码重构,更新了一些错误消息。
aws_kms_info - 将 `
enable_key_rotation
` 信息添加到返回值中。ec2_asg - 添加对最大实例生命周期 (`Max Instance Lifetime`) 的支持。
ec2_asg - 添加了在启动模板驱动的自动伸缩组中使用 `mixed_instance_policy` 的能力。
ec2_asg - 迁移到 AnsibleAWSModule。
ec2_placement_group - 将 `
name
` 字段设为必填。ecs_task_definition - 添加 `network_mode=default` 以支持 Windows ECS 任务。
elb_network_lb - 添加了对 UDP 和 TCP_UDP 协议的支持。
elb_target - 添加 awsretry 以防止速率超过错误 (https://github.com/ansible/ansible/issues/51108)
elb_target_group - 允许 UDP 和 TCP_UDP 协议;仅允许使用响应代码和路径的 HTTP/HTTPS 健康检查。
iam - 将 `
name
` 字段设为必填。iam_cert - 将 `
name
` 字段设为必填。iam_policy - iam_policy 模块已从 boto 迁移到 boto3。
iam_policy - 将 `
iam_name
` 字段设为必填。iam_role - 添加了对管理最大会话持续时间的支持。
iam_role - 添加了在删除角色时删除相关实例配置文件的支持。
iam_role、iam_user 和 iam_group - `managed_policy` 选项已重命名为 `managed_policies`(并添加了别名)。
iam_role、iam_user 和 iam_group - `purge_policy` 选项已重命名为 `purge_policies`(并添加了别名)。
lambda - 添加了 `tracing_mode` 参数,用于设置 AWS X-Ray 的 TracingConfig。也允许更新 Lambda 运行时。
purefa_volume - 将 `I(qos)` 参数更改为 `I(bw_iops)`,但保留 `I(qos)` 作为向后兼容的别名 (https://github.com/ansible/ansible/pull/61577)。
redshift - 为超出我们控制范围的错误添加 AWSRetry 调用。
route53 - 该模块现在具有 diff 支持。
sns_topic - 在列出订阅时遇到主题 `
NotFound
` 异常时添加回退。sqs_queue - 添加了对标签、KMS 和 FIFO 队列的支持。
sqs_queue - 更新为使用 boto3 代替 boto。
已弃用的功能
cloudformation - `template_format` 选项自 Ansible 2.3 以来无效,将于 2022-06-01 后移除。
data_pipeline - `version` 选项无效,将于 2022-06-01 后移除。
ec2_eip - `wait_timeout` 选项无效,将于 2022-06-01 后移除。
ec2_key - `wait_timeout` 选项无效,将于 2022-06-01 后移除。
ec2_key - `wait` 选项无效,将于 2022-06-01 后移除。
ec2_lc - `associate_public_ip_address` 选项无效,将于 2022-06-01 后移除。
elb_network_lb - `state` 选项的当前默认值已弃用,将于 2022-06-01 后从 `absent` 更改为 `present`。
iam_managed_policy - `fail_on_delete` 选项无效,将于 2022-06-01 后移除。
iam_policy - `policy_document` 将于 2022-06-01 后移除。要保持现有行为,请使用 `policy_json` 选项并使用 `lookup` 插件读取文件。
iam_policy - `skip_duplicates` 的默认值将于 2022-06-01 后从 `true` 更改为 `false`。
iam_role - `purge_policies` 的默认值已弃用,将于 2022-06-01 后从 `true` 更改为 `false`。
s3_lifecycle - `requester_pays` 选项无效,将于 2022-06-01 后移除。
s3_sync - `retries` 选项无效,将于 2022-06-01 后移除。
错误修复
**安全问题** - 最初将 CLI 提供的密码转换为文本,以防止在 PlayContext 后处理期间从 bytes->text 转换时丢失不安全的上下文。这防止了 CLI 提供的密码被错误地模板化 (CVE-2019-14856)。
**安全问题** - 更新 `
AnsibleUnsafeText
` 和 `AnsibleUnsafeBytes
` 以通过覆盖 `.encode
` 和 `.decode
` 来保持不安全的上下文。这防止了将来使用 `to_text
`、`to_bytes
` 或 `to_native
` 在字符串类型之间转换时删除不安全包装器的问题 (CVE-2019-14856)。azure_rm_dnsrecordset_info - 当作为 `_info` 模块调用时,不再返回空的 `
azure_dnsrecordset
` 事实。azure_rm_resourcegroup_info - 当作为 `_info` 模块调用时,不再返回 `
azure_resourcegroups
` 事实。azure_rm_storageaccount_info - 当作为 `_info` 模块调用时,不再返回空的 `
azure_storageaccounts
` 事实。azure_rm_virtualmachineimage_info - 当作为 `_info` 模块调用时,不再返回空的 `
azure_vmimages
` 事实。azure_rm_virtualmachinescaleset_info - 修复了当作为 `_info` 模块调用时错误的空结果或 `
ansible_facts
` 结果的问题。azure_rm_virtualnetwork_info - 当作为 `_info` 模块调用时,不再返回空的 `
azure_virtualnetworks
` 事实。cloudfront_distribution - 始终将 `field_level_encryption_id` 添加到缓存行为中,以匹配 AWS 要求。
cloudwatchlogs_log_group - 修复了在更新没有保留期的日志组时发生的 KeyError (https://github.com/ansible/ansible/issues/47945)。
cloudwatchlogs_log_group_info - 删除了最大 50 个结果的限制。
ec2_asg - 确保在替换操作期间遵守 `wait`。
ec2_launch_template - 更新输出以包含 `latest_version` 和 `default_version`,与文档匹配。
ec2_transit_gateway - 在处理 ClientError 之前使用 AWSRetry 来描述 transit gateways。
ec2_transit_gateway - 修复了 `auto_attach` 设置为 `yes` 未被遵守的问题 (https://github.com/ansible/ansible/issues/61907)。
edgeos_config - 修复了模块会静默过滤加密密码的问题。
修复了 sns_topic 的 `delivery_policy` 选项导致 `changed` 始终为 `true` 的问题。
lineinfile - 在启用 backrefs 且该行已存在于文件中时,正确处理插入行的问题 (https://github.com/ansible/ansible/issues/63756)。
route53 - 改善对八进制编码字符的处理。
win_credential - 修复了尝试添加包含通配符的 `
name
` 时出错的问题。
新模块
aws_acm - 在 AWS Certificate Manager 服务中上传和删除证书。
aws_acm_info - 从 AWS Certificate Manager 服务检索证书信息。
aws_api_gateway - 管理 AWS API Gateway API。
aws_application_scaling_policy - 管理应用程序自动伸缩缩放策略。
aws_batch_compute_environment - 管理 AWS Batch 计算环境。
aws_batch_job_definition - 管理 AWS Batch 作业定义。
aws_batch_job_queue - 管理 AWS Batch 作业队列。
aws_codebuild - 创建或删除 AWS CodeBuild 项目。
aws_codecommit - 管理 AWS CodeCommit 中的存储库。
aws_codepipeline - 创建或删除 AWS CodePipeline。
aws_config_aggregation_authorization - 管理跨账户的 AWS Config 授权。
aws_config_aggregator - 管理跨多个账户的 AWS Config 聚合。
aws_config_delivery_channel - 管理 AWS Config 传送通道。
aws_config_recorder - 管理 AWS Config 记录器。
aws_config_rule - 管理 AWS Config 资源。
aws_direct_connect_connection - 创建、删除、修改 DirectConnect 连接。
aws_direct_connect_gateway - 管理 AWS Direct Connect 网关。
aws_direct_connect_link_aggregation_group - 管理 Direct Connect LAG 捆绑。
aws_direct_connect_virtual_interface - 管理 Direct Connect 虚拟接口。
aws_eks_cluster - 管理 Elastic Kubernetes Service 集群。
aws_elasticbeanstalk_app - 创建、更新和删除 Elastic Beanstalk 应用程序。
aws_glue_connection - 管理 AWS Glue 连接。
aws_glue_job - 管理 AWS Glue 作业
aws_inspector_target - 创建、更新和删除 Amazon Inspector 评估目标
aws_kms - 执行各种 KMS 管理任务。
aws_kms_info - 收集有关 AWS KMS 密钥的信息
aws_region_info - 收集有关 AWS 区域的信息。
aws_s3_bucket_info - 列出 AWS 中的 S3 存储桶
aws_s3_cors - 管理 AWS 中 S3 存储桶的 CORS
aws_secret - 管理存储在 AWS Secrets Manager 中的密钥。
aws_ses_identity - 管理 SES 电子邮件和域名身份
aws_ses_identity_policy - 管理 SES 发送授权策略
aws_ses_rule_set - 管理 SES 入站接收规则集
aws_sgw_info - 获取 AWS Storage Gateway 信息
aws_ssm_parameter_store - 管理 aws 参数存储中的键值对。
aws_step_functions_state_machine - 管理 AWS Step Functions 状态机
aws_step_functions_state_machine_execution - 启动或停止 AWS Step Functions 状态机的执行。
aws_waf_condition - 创建和删除 WAF 条件
aws_waf_info - 检索 WAF ACL、规则、条件和过滤器的信息。
aws_waf_rule - 创建和删除 WAF 规则
aws_waf_web_acl - 创建和删除 WAF Web ACL。
cloudformation_exports_info - 从 CloudFormation Exports 读取值
cloudformation_stack_set - 管理 CloudFormation 堆栈组
cloudfront_distribution - 创建、更新和删除 AWS CloudFront 分发。
cloudfront_info - 获取有关 AWS CloudFront 分发的详细信息
cloudfront_invalidation - 为 AWS CloudFront 分发创建失效
cloudfront_origin_access_identity - 为 CloudFront 分发创建、更新和删除源访问标识。
cloudtrail - 管理 CloudTrail 的创建、删除和更新
cloudwatchevent_rule - 管理 CloudWatch 事件规则和目标
cloudwatchlogs_log_group - 在 CloudWatchLogs 中创建或删除日志组
cloudwatchlogs_log_group_info - 获取有关 CloudWatchLogs 中日志组的信息
cloudwatchlogs_log_group_metric_filter - 管理 CloudWatch 日志组指标过滤器
data_pipeline - 创建和管理 AWS 数据管道
dms_endpoint - 创建或销毁数据迁移服务端点
dms_replication_subnet_group - 创建或销毁数据迁移服务子网组
dynamodb_table - 创建、更新或删除 AWS Dynamo DB 表
dynamodb_ttl - 为给定的 DynamoDB 表设置 TTL
ec2_ami_copy - 在 AWS 区域之间复制 AMI,返回新的镜像 ID
ec2_asg - 创建或删除 AWS 自动伸缩组 (ASG)
ec2_asg_info - 收集有关 AWS 中 ec2 自动伸缩组 (ASG) 的信息
ec2_asg_lifecycle_hook - 创建、删除或更新 AWS ASG 生命周期钩子。
ec2_customer_gateway - 管理 AWS 客户网关
ec2_customer_gateway_info - 收集有关 AWS 中客户网关的信息
ec2_eip - 管理 EC2 弹性 IP (EIP) 地址。
ec2_eip_info - 列出 EC2 EIP 详情
ec2_elb - 从 EC2 ELB 注销或注册实例
ec2_elb_info - 收集有关 AWS 中 EC2 弹性负载均衡器的信息
ec2_instance - 创建和管理 EC2 实例
ec2_instance_info - 收集有关 AWS 中 ec2 实例的信息
ec2_launch_template - 管理 EC2 启动模板
ec2_lc - 创建或删除 AWS 自动伸缩启动配置
ec2_lc_find - 查找 AWS 自动伸缩启动配置
ec2_lc_info - 收集有关 AWS 自动伸缩启动配置的信息。
ec2_metric_alarm - 创建/更新或删除 AWS Cloudwatch“指标警报”
ec2_placement_group - 创建或删除 EC2 置放组
ec2_placement_group_info - 列出 EC2 置放组详细信息
ec2_scaling_policy - 为自动伸缩组创建或删除 AWS 伸缩策略
ec2_snapshot_copy - 复制 EC2 快照并返回新的快照 ID。
ec2_transit_gateway - 创建和删除 AWS 转接网关
ec2_transit_gateway_info - 收集有关 AWS 中 ec2 转接网关的信息
ec2_vpc_egress_igw - 管理 AWS VPC 专用互联网网关
ec2_vpc_endpoint - 创建和删除 AWS VPC 端点。
ec2_vpc_endpoint_info - 使用 AWS 方法检索 AWS VPC 端点详细信息。
ec2_vpc_igw - 管理 AWS VPC 网关
ec2_vpc_igw_info - 收集有关 AWS 中互联网网关的信息
ec2_vpc_nacl - 创建和删除网络 ACL。
ec2_vpc_nacl_info - 收集 AWS VPC 中网络 ACL 的信息
ec2_vpc_nat_gateway - 管理 AWS VPC NAT 网关。
ec2_vpc_nat_gateway_info - 使用 AWS 方法检索 AWS VPC 托管 NAT 网关详细信息。
ec2_vpc_peer - 创建、删除、接受和拒绝两个 VPC 之间的 VPC 对等连接。
ec2_vpc_peering_info - 使用 AWS 方法检索 AWS VPC 对等详细信息。
ec2_vpc_route_table - 管理 AWS 虚拟私有云的路由表
ec2_vpc_route_table_info - 收集有关 AWS 中 ec2 VPC 路由表的信息
ec2_vpc_vgw - 创建和删除 AWS VPN 虚拟网关。
ec2_vpc_vgw_info - 收集有关 AWS 中虚拟网关的信息
ec2_vpc_vpn - 创建、修改和删除 EC2 VPN 连接。
ec2_vpc_vpn_info - 收集有关 AWS 中 VPN 连接的信息。
ec2_win_password - 获取 ec2 Windows 实例的默认管理员密码
ecs_attribute - 管理 ecs 属性
ecs_cluster - 创建或终止 ECS 集群。
ecs_ecr - 管理 Elastic Container Registry 存储库
ecs_service - 在 ECS 中创建、终止、启动或停止服务
ecs_service_info - 列出或描述 ECS 中的服务
ecs_tag - 在 Amazon ECS 资源上创建和删除标签
ecs_task - 在 ecs 中运行、启动或停止任务
ecs_taskdefinition - 在 ecs 中注册任务定义
ecs_taskdefinition_info - 描述 ECS 中的任务定义
efs - 创建和维护 EFS 文件系统
efs_info - 获取有关 Amazon EFS 文件系统的信息
elasticache - 管理 Amazon ElastiCache 中的缓存集群
elasticache_info - 检索 AWS ElastiCache 集群的信息
elasticache_parameter_group - 管理 Amazon ElastiCache 中的缓存参数组。
elasticache_snapshot - 管理 Amazon ElastiCache 中的缓存快照
elasticache_subnet_group - 管理 ElastiCache 子网组
elb_application_lb - 管理应用程序负载均衡器
elb_application_lb_info - 收集有关 AWS 中应用程序 ELB 的信息
elb_classic_lb - 创建或销毁 Amazon ELB。
elb_classic_lb_info - 收集有关 AWS 中 EC2 弹性负载均衡器的信息
elb_instance - 从 EC2 ELB 注销或注册实例
elb_network_lb - 管理网络负载均衡器
elb_target - 管理目标组中的目标
elb_target_group - 管理应用程序或网络负载均衡器的目标组
elb_target_group_info - 收集有关 AWS 中 ELB 目标组的信息
elb_target_info - 收集目标关联的目标组信息。
execute_lambda - 执行 AWS Lambda 函数
iam - 管理 IAM 用户、组、角色和密钥
iam_cert - 管理用于 ELB 和 CloudFront 的服务器证书
iam_group - 管理 AWS IAM 组
iam_managed_policy - 管理用户管理的 IAM 策略
iam_mfa_device_info - 列出为用户注册的 MFA(多因素身份验证)设备
iam_password_policy - 更新 IAM 密码策略
iam_policy - 管理用户、组和角色的内联 IAM 策略
iam_policy_info - 检索用户、组和角色的内联 IAM 策略
iam_role - 管理 AWS IAM 角色
iam_role_info - 收集有关 IAM 角色的信息
iam_saml_federation - 维护 IAM SAML 联合配置。
iam_server_certificate_info - 检索服务器证书的信息
iam_user - 管理 AWS IAM 用户
iam_user_info - 收集 AWS 中 IAM 用户的事实信息
kinesis_stream - 管理 Kinesis 流。
lambda - 管理 AWS Lambda 函数
lambda_alias - 创建、更新或删除 AWS Lambda 函数别名
lambda_event - 创建、更新或删除 AWS Lambda 函数事件映射
lambda_facts - 将 AWS Lambda 函数详细信息作为 Ansible 事实信息收集
lambda_info - 收集 AWS Lambda 函数详细信息
lambda_policy - 创建、更新或删除 AWS Lambda 策略语句。
lightsail - 管理 AWS Lightsail 中的实例
rds - 创建、删除或修改 Amazon RDS 实例、RDS 快照和相关信息
rds_instance - 管理 RDS 实例
rds_instance_info - 获取有关一个或多个 RDS 实例的信息
rds_param_group - 管理 RDS 参数组
rds_snapshot - 管理 Amazon RDS 快照。
rds_snapshot_info - 获取有关一个或多个 RDS 快照的信息
rds_subnet_group - 管理 RDS 数据库子网组
redshift_cross_region_snapshots - 管理 Redshift 跨区域快照
redshift_info - 收集有关 Redshift 集群的信息
route53 - 在 Amazon Route53 DNS 服务中添加或删除条目
route53_health_check - 在 Amazon Route53 DNS 服务中添加或删除运行状况检查
route53_info - 使用 AWS 方法检索 route53 详情
route53_zone - 添加或删除 Route53 区域
s3_bucket_notification - 为 lambda 创建、更新或删除 S3 存储桶通知
s3_lifecycle - 管理 AWS 中 s3 存储桶生命周期规则
s3_logging - 管理 AWS 中 s3 存储桶的日志记录功能
s3_sync - 高效地将多个文件上传到 S3
s3_website - 将 s3 存储桶配置为网站
sns - 发送 Amazon Simple Notification Service 消息
sns_topic - 管理 AWS SNS 主题和订阅
sqs_queue - 创建或删除 AWS SQS 队列。
sts_assume_role - 使用 AWS 安全令牌服务并获取临时凭据来承担角色
sts_session_token - 从 AWS 安全令牌服务获取会话令牌