community.aws icon indicating copy to clipboard operation
community.aws copied to clipboard

s3_website module - Please provide more examples about routing_rules with 1 or multiple redirect rules

Open devsecops-edu-vn opened this issue 1 year ago • 3 comments

Summary

At this link https://docs.ansible.com/ansible/latest/collections/community/aws/s3_website_module.html

I can not create a routing_rules with 1 or multiple redirect rules

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (community.aws.s3_website) module: condition, redirect. Supported parameters include: access_key, aws_ca_bundle, aws_config, debug_botocore_endpoint_logs, endpoint_url, error_key, name, profile, redirect_all_requests, region, secret_key, session_token, state, suffix, validate_certs (access_token, aws_access_key, aws_access_key_id, aws_endpoint_url, aws_profile, aws_region, aws_secret_access_key, aws_secret_key, aws_security_token, aws_session_token, ec2_access_key, ec2_region, ec2_secret_key, ec2_url, s3_url, security_token)."}

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (community.aws.s3_website) module: routing_rules. Supported parameters include: access_key, aws_ca_bundle, aws_config, debug_botocore_endpoint_logs, endpoint_url, error_key, name, profile, redirect_all_requests, region, secret_key, session_token, state, suffix, validate_certs (access_token, aws_access_key, aws_access_key_id, aws_endpoint_url, aws_profile, aws_region, aws_secret_access_key, aws_secret_key, aws_security_token, aws_session_token, ec2_access_key, ec2_region, ec2_secret_key, ec2_url, s3_url, security_token)."}

Please provide more examples about routing_rules with 1 or multiple redirect rules

By the way:

Is this module support read from JSON file redirect rules?

Thank you very much!

Issue Type

Feature Idea

Component Name

community.aws.s3_website module – Configure an s3 bucket as a website

Additional Information


Code of Conduct

  • [X] I agree to follow the Ansible Code of Conduct

devsecops-edu-vn avatar Jul 28 '23 09:07 devsecops-edu-vn

Files identified in the description: None

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Jul 28 '23 09:07 ansibullbot

Currently, no description about reading JSON file for redirecting rules.

Also no playbook examples about redirect rules

devsecops-edu-vn avatar Jul 28 '23 09:07 devsecops-edu-vn

@devsecops-edu-vn Thanks for bringing this up. The s3_website module does not seem to implement these features at the moment https://github.com/ansible-collections/community.aws/blob/main/plugins/modules/s3_website.py. Will you be willing to work on implementing these and open a pull request?

alinabuzachis avatar Jul 31 '23 12:07 alinabuzachis