You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's just that these details are missing from the documentation.
I've managed to successfully create a CF distribution w/ the correct settings w/ the following minimal playbook:
---
# Standards: 1.2
- name: Try to create a CF distribution w/ ConnectionAttempts and ConnectionTimeout
hosts: localhost
tasks:
- name: create a distribution with an origin, logging and default cache behavior
community.aws.cloudfront_distribution:
profile: example-account
state: present
caller_reference: test 1
origins:
- id: 'my-test-origin-1234'
domain_name: www.example.com
custom_origin_config:
http_port: 80
https_port: 443
origin_keepalive_timeout: 10
origin_read_timeout: 5
connection_attempts: 2
connection_timeout: 5
enabled: true
comment: Test CloudFront distribution - ConnectionAttempts and ConnectionTimeout
register: result
- name: debug
debug:
var: result
I'll prepare a PR for the docs.
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
As seen in https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_Origin.html on each origin from a
CustomOriginConfig
there is the possibility to specifyConnectionAttempts
andConnectionTimeout
.Issue Type
Documentation Report
Component Name
cloudfront_distribution
Ansible Version
Collection Versions
Configuration
OS / Environment
Fedora release 36, Centos Stream 8
Additional Information
It's just that these details are missing from the documentation.
I've managed to successfully create a CF distribution w/ the correct settings w/ the following minimal playbook:
I'll prepare a PR for the docs.
Code of Conduct
The text was updated successfully, but these errors were encountered: