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

custom domain add error - One or more of the CNAMEs you provided are already associated with a different resource #13266

Open
3 tasks done
nilyin opened this issue Apr 18, 2024 · 0 comments
Assignees
Labels
Hosting Issues related to Amplify Hosting pending-triage Issue is pending triage

Comments

@nilyin
Copy link

nilyin commented Apr 18, 2024

Before opening, please confirm:

JavaScript Framework

Vue

Amplify APIs

GraphQL API

Amplify Version

v5

Amplify Categories

auth, storage, function, api, hosting

Backend

Amplify CLI

Environment information

# Put output below this line
System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
    Memory: 22.97 GB / 31.90 GB
  Binaries:
    Node: 20.12.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 123.0.6312.107
    Edge: Chromium (123.0.2420.81)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    @aws-amplify/ui-vue: ^3.1.30 => 3.1.30
    @popperjs/core: ^2.11.8 => 2.11.8
    @prismicio/client: ^7.3.1 => 6.9.0
    @prismicio/vue: ^4.1.0 => 3.2.1
    @types/crypto-js: ^4.2.2 => 4.2.2
    @vue/cli-plugin-babel: ~5.0.8 => 5.0.8
    @vue/cli-plugin-eslint: ~5.0.8 => 5.0.8
    @vue/cli-service: ^5.0.8 => 5.0.8
    @vue/compiler-sfc: ^3.4.21 => 3.4.21
    aws-amplify: ^5.3.18 => 5.3.18
    bootstrap: ^5.3.3 => 5.3.3
    buffer: ^6.0.3 => 6.0.3 (4.9.2, 5.7.1)
    core-js: ^3.36.1 => 3.36.1 (2.6.12)
    crc: ^4.3.2 => 4.3.2
    crypto-js: ^4.2.0 => 4.2.0
    es6-promise: ^4.2.8 => 4.2.8
    eslint: ^8.57.0 => 9.0.0
    eslint-config-async: ^2.0.2 => 2.0.2
    eslint-config-prettier: ^9.1.0 => 9.1.0
    eslint-plugin-prettier: ^5.1.3 => 4.2.1
    eslint-plugin-vue: ^9.23.0 => 9.24.1
    util: ^0.12.5 => 0.12.5
    uuid: ^9.0.1 => 9.0.1 (3.4.0, 8.3.2, 8.0.0)
    vue: ^3.4.21 => 3.4.21
    vue-eslint-parser: ^9.4.2 => 9.4.2
    vue-image-crop-upload: ^3.0.3 => 3.0.3
    vue-loader-v16: ^16.0.0-beta.5.4 => 16.0.0-beta.5.4
    vue-router: ^4.3.0 => 4.3.0
    vue3-popper: ^1.5.0 => 1.5.0
    vuex: ^4.1.0 => 4.1.0
    vuex-persistedstate: ^4.1.0 => 4.1.0
  npmGlobalPackages:
    @aws-amplify/cli: 12.10.3
    @vue/cli: 5.0.8
    npm: 10.5.2
    yarn: 1.22.22

Describe the bug

adding cutom domain resulted to the following message:

Something went wrong. Please refer to our troubleshooting guide below to diagnose the issue. After fixing the issue, choose retry below.
Error message: One or more of the CNAMEs you provided are already associated with a different resource.

I've checked where my subdomains are pointing to (with dig command and online tools). They point correctly to url provided in amplify web console for domain management.

i suspect that subdomain can be connected to one of my previousd amplify account that has been discontinued a few years ago. if so, it looks like a bug.

i was also trying to use aws cloudfront list-conflicting-aliases --distribution-id ??? --alias name.mydomain.me but always got:
The specified distribution does not exist. I tried use hosting url and stackId but they do not work for distribution-id param.
Pls help to solve the problem and advise on how can i get distribution-id for my amplify dev and prod environments deployed in amplify cloud.

Expected behavior

custom domain is validated and added

Reproduction steps

  1. amplify push
  2. go to console and add custom subdomain for prod env (dev has already working subdomain and same master domain)
  3. go error above on last step

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line
Something went wrong. Please refer to our troubleshooting guide below to diagnose the issue. After fixing the issue, choose retry below.
Error message: One or more of the CNAMEs you provided are already associated with a different resource.

aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

@nilyin nilyin added the pending-triage Issue is pending triage label Apr 18, 2024
@cwomack cwomack added the GraphQL Related to GraphQL API issues label Apr 19, 2024
@chrisbonifacio chrisbonifacio added Hosting Issues related to Amplify Hosting and removed GraphQL Related to GraphQL API issues labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hosting Issues related to Amplify Hosting pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

3 participants