Cloudformation CloudFront CachePolicy showing invalid request provided

0

I am using AWS CLI together with a yaml file to deploy my CloudFront resource. I am aiming to add a CachePolicy to my CloudFront distribution but I am always getting an "Invalid request provided" error on Cloudformation in AWS console. Is my yaml wrong or am I missing something?

Here is a snippet of the cache policy and response headers policy I am using:Enter image description here

feita há 2 anos336 visualizações
1 Resposta
2
Resposta aceita

If you have provided CookieBehavior, HeaderBehavior, and QueryStringBehavior with whitelist value, then you must also provide a list of values that must be included for those parameters. The values should be listed in the the corresponding Cookies, Headers, and QueryStrings parameter for each config.

Example for HeadersConfig:

          HeadersConfig: 
            HeaderBehavior: whitelist
            Headers:
              - Authorization
profile picture
joahna
respondido há 2 anos
profile pictureAWS
ESPECIALISTA
Toni_S
avaliado há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas