8000 cloudfront_distribution - Add support for setting cache and origin request policy ids in cache behavior · Issue #290 · ansible-collections/community.aws · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
cloudfront_distribution - Add support for setting cache and origin request policy ids in cache behavior #290
Closed
@sethernet

Description

@sethernet
SUMMARY

Add support for setting cache and origin request policy ids in the cache behaviors block when creating a distribution in cloudfront_distribution.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

cloudfront_distribution

ADDITIONAL INFORMATION

Currently we are unable to set cache policy or origin request policy ids in the cache behaviors section so that they are added to a distribution.

Example playbook code:

      cache_behaviors:
        - path_pattern: "*/"
          target_origin_id: ""
          field_level_encryption_id: ""
          cache_policy_id: "{{ cache_policy_id }}"
          origin_request_policy_id: "{{ origin_request_policy_id }}"

Example python code:

cache_behavior['cache_policy_id'] = cache_behavior.get('cache_policy_id', config.get('cache_policy_id'))
cache_behavior['origin_request_policy_id'] = cache_behavior.get('origin_request_policy_id', config.get('origin_request_policy_id'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects_2.10featureThis issue/PR relates to a feature requestmodulemodulepluginsplugin (any type)waiting_on_contributorNeeds help. Feel free to engage to get things unblocked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0