<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Siddharth Ajith</title>
    <description>The latest articles on DEV Community by Siddharth Ajith (@siddddd17).</description>
    <link>https://dev.to/siddddd17</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1139493%2F646952f5-699c-418c-943e-63212c682d8b.jpg</url>
      <title>DEV Community: Siddharth Ajith</title>
      <link>https://dev.to/siddddd17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/siddddd17"/>
    <language>en</language>
    <item>
      <title>AWS CloudFront CNAME Conflict – “One or more of the CNAMEs you provided are already associated with a different resource”</title>
      <dc:creator>Siddharth Ajith</dc:creator>
      <pubDate>Thu, 03 Apr 2025 03:32:34 +0000</pubDate>
      <link>https://dev.to/siddddd17/aws-cloudfront-cname-conflict-one-or-more-of-the-cnames-you-provided-are-already-associated-with-1mp7</link>
      <guid>https://dev.to/siddddd17/aws-cloudfront-cname-conflict-one-or-more-of-the-cnames-you-provided-are-already-associated-with-1mp7</guid>
      <description>&lt;p&gt;I am trying to create a new CloudFront distribution and associate the alternate domain name &lt;em&gt;app.example.com&lt;/em&gt; with it. Additionally, I have a valid ACM SSL certificate issued for &lt;em&gt;app.example.com&lt;/em&gt; in N.Virginia.&lt;/p&gt;

&lt;p&gt;However, when I attempt to save the CloudFront distribution, I receive the following error:&lt;br&gt;&lt;br&gt;
"&lt;strong&gt;One or more of the CNAMEs you provided are already associated with a different resource&lt;/strong&gt;."&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting Steps Taken:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Checked existing CloudFront distributions using the command:&lt;br&gt;&lt;br&gt;
&lt;code&gt;_aws cloudfront list-distributions --query "DistributionList.Items[*].{Id:Id,Aliases:Aliases.Items}" --output json_&lt;/code&gt;&lt;br&gt;&lt;br&gt;
&lt;em&gt;app.example.com&lt;/em&gt; is not listed in any of the CloudFront distributions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Checked for deleted CloudFront distributions (in case the CNAME was retained):&lt;br&gt;&lt;br&gt;
&lt;code&gt;_aws cloudfront list-distributions --include-deleted --query "DistributionList.Items[*].{Id:Id,Aliases:Aliases.Items}" --output json_&lt;/code&gt;&lt;br&gt;&lt;br&gt;
The domain did not appear in deleted distributions either.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Checked Route 53 records:&lt;br&gt;&lt;br&gt;
&lt;em&gt;app.example.com&lt;/em&gt; currently has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An &lt;strong&gt;A record&lt;/strong&gt; pointing to an &lt;strong&gt;internal ALB&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;CNAME&lt;/strong&gt; for ACM certificate validation (which should not cause conflicts).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Has anyone faced a similar issue before?&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloudfront</category>
      <category>devops</category>
      <category>troubleshooting</category>
    </item>
  </channel>
</rss>
