CloudFormation won't update CloudFrontDistribution DNS

0

I used this cloud formation stack 1.5 years ago, and both create/update worked fine. Now I'm finding I receiving an error.

I created my stack with...
aws cloudformation create-stack --template-body file://./blog.yml \
--region us-east-1 \
--stack-name ${stack_name} --parameters \
ParameterKey=DomainName,ParameterValue=${domain_name}

stack_name=blog-test-mydomain-org
domain_name=blog-test.mydomain.org

That worked just fine. Then I tried to update

aws cloudformation update-stack --template-body file://./blog.yml \
--region us-east-1 \
--stack-name blog-test-mydomain-org

And received...
One or more of the CNAMEs you provided are already associated with a different resource. (Service: AmazonCloudFront; Status Code: 409; Error Code: CNAMEAlreadyExists; Request ID: c5865945-1bff-410e-b33a-44332038fac6; Proxy: null)

I can't believe that cloudformation would try and create another CNAME when it's already in use by that stack. That's just weird. Any ideas here? Like I say, it worked 1.5 years ago and simply doesn't work now.

preguntada hace 3 años234 visualizaciones
1 Respuesta
0

Duh, never mind. I must not have tested it previously, I didn't pass parameters to the update-stack. lol

respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas