PARALLAX

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

NameTypeRequiredDefaultDescription
access_keystr
aliasstr
aws_ca_bundlepath
aws_configdict
caller_referencestr
debug_botocore_endpoint_logsboolfalse
distribution_idstr
endpoint_urlstr
profilestr
regionstr
secret_keystr
session_tokenstr
target_pathslistyes
validate_certsbooltrue

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/*
Search
    ↑ ↓ move↵ openesc close