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.

質問済み 3年前234ビュー
1回答
0

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

回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ