diff --git a/plugins/modules/cloudfront_cache_policy.py b/plugins/modules/cloudfront_cache_policy.py index 13f091ed885..970524e548c 100644 --- a/plugins/modules/cloudfront_cache_policy.py +++ b/plugins/modules/cloudfront_cache_policy.py @@ -365,8 +365,7 @@ def __init__(self, module): def find_cache_policy(self, name): try: - # Only list the custom policies as those are the only ones we can change - policies = self.client.list_cache_policies(Type="custom").get("CachePolicyList", {}).get("Items", []) + policies = self.client.list_cache_policies()["CachePolicyList"]["Items"] for policy in policies: if policy["CachePolicy"]["CachePolicyConfig"]["Name"] == name: