PARALLAX

s3_website

Configure an s3 bucket as a website

Collection: community.aws

Full Name: community.aws.s3_website

Synopsis

Configure an s3 bucket as a website

Parameters

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
debug_botocore_endpoint_logsboolfalse
endpoint_urlstr
error_keystr
namestryes
profilestr
redirect_all_requestsstr
regionstr
secret_keystr
session_tokenstr
statestryes
suffixstrindex.html
validate_certsbooltrue

Example

yaml
- name: Configure an s3 bucket to redirect all requests to example.com
  community.aws.s3_website:
    name: mybucket.com
    redirect_all_requests: example.com
    state: present

- name: Remove website configuration from an s3 bucket
  community.aws.s3_website:
    name: mybucket.com
    state: absent

- name: Configure an s3 bucket as a website with index and error pages
  community.aws.s3_website:
    name: mybucket.com
    suffix: home.htm
    error_key: errors/404.htm
    state: present
Search
    ↑ ↓ move↵ openesc close