Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant use cache_policy_id, because another parameters are required #59

Open
ByJacob opened this issue Mar 18, 2021 · 0 comments
Open

Cant use cache_policy_id, because another parameters are required #59

ByJacob opened this issue Mar 18, 2021 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@ByJacob
Copy link

ByJacob commented Mar 18, 2021

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

When try use cache_policy_id i got error
Error: error creating CloudFront Distribution: InvalidArgument: The parameter ForwardedValues cannot be used when a cache policy is associated to the cache behavior. status code: 400, request id: 9421ef45-20d3-4824-8e69-9b4e9c43af87
But when i try set null in forward parameters i get error:

Error: expected ordered_cache_behavior.0.forwarded_values.0.cookies.0.forward to be one of [all none whitelist], got 

Expected Behavior

CDN will implement with set policy

Steps to Reproduce

Steps to reproduce the behavior:

  1. Configure cdn (https://github.com/cloudposse/terraform-aws-cloudfront-cdn/tree/master/examples/wordpress)
  2. Set cache_policy_id to 4135ea2d-6df8-44a3-9df3-4b5a84be39ad
  3. terraform apply

Screenshots

If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:

  • OS: Linux
  • Version Ubuntu 20.04

Additional Context

Add any other context about the problem here.

@ByJacob ByJacob added the bug 🐛 An issue with the system label Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant