cloudfront_invalidation
create invalidations for AWS CloudFront distributions
Collection: community.aws
Full Name: community.aws.cloudfront_invalidation
Synopsis
create invalidations for AWS CloudFront distributions
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| alias | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| caller_reference | str | |||
| debug_botocore_endpoint_logs | bool | false | ||
| distribution_id | str | |||
| endpoint_url | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| target_paths | list | yes | ||
| validate_certs | bool | true |
Example
yaml
- name: create a batch of invalidations using a distribution_id for a reference
community.aws.cloudfront_invalidation:
distribution_id: E15BU8SDCGSG57
caller_reference: testing 123
target_paths:
- /testpathone/test1.css
- /testpathtwo/test2.js
- /testpaththree/test3.ss
- name: create a batch of invalidations using an alias as a reference and one path using a wildcard match
community.aws.cloudfront_invalidation:
alias: alias.test.com
caller_reference: testing 123
target_paths:
- /testpathone/test4.css
- /testpathtwo/test5.js
- /testpaththree/*