diff --git a/changelogs/fragments/404-fix-dict-element-for-rule-param-in-aws-s3-cors.yml b/changelogs/fragments/404-fix-dict-element-for-rule-param-in-aws-s3-cors.yml new file mode 100644 index 00000000000..e6eb68bbabd --- /dev/null +++ b/changelogs/fragments/404-fix-dict-element-for-rule-param-in-aws-s3-cors.yml @@ -0,0 +1,2 @@ +bugfixes: +- aws_s3_cors - fix element type for rules parameter. (https://github.com/ansible-collections/community.aws/pull/408). diff --git a/plugins/modules/aws_s3_cors.py b/plugins/modules/aws_s3_cors.py index 820530dc08d..58e33cf1104 100644 --- a/plugins/modules/aws_s3_cors.py +++ b/plugins/modules/aws_s3_cors.py @@ -25,7 +25,7 @@ description: - Cors rules to put on the s3 bucket type: list - elements: str + elements: dict state: description: - Create or remove cors on the s3 bucket @@ -147,7 +147,7 @@ def main(): argument_spec = dict( name=dict(required=True, type='str'), - rules=dict(type='list', elements='str'), + rules=dict(type='list', elements='dict'), state=dict(type='str', choices=['present', 'absent'], required=True) )