我正在使用Ansible Playbook推送到S3存储桶,然后使用Cloudfront发行版通过https为站点提供服务。
我想使用Ansible Playbook来实现这一点,但是我还没有能够正确地配置任务。我不确定在哪里指定存储桶的S3原点?
- cloudfront_distribution:
comment: 'description'
enabled: yes
state: present
default_root_object: index.html
validate_certs: yes
viewer_certificate:
acm_certificate_arn: {arn of certificate}
alias: {www.mydomain.com}
origins:
- id: 'id'
s3_origin_access_identity_enabled: yes在哪里可以指定我希望通过云前端服务的S3存储桶?
我尝试使用origins来指定S3存储桶的URL。但到目前为止,我只得到了错误。
有没有人可以帮我指定S3存储桶的位置,这样我就可以通过S3为站点服务了?
https://stackoverflow.com/questions/53089088
复制相似问题