-
Notifications
You must be signed in to change notification settings - Fork 824
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
Getting Error: Domain not available / error on HostedUICustomResourceInputs creation, on adding new amplify env #10796
Comments
Hello @BBopanna, On utilizing the reproduction steps, I was unable to reproduce the issue. Please find the following steps I utilized. Created a new Amplify application with dev as environment the.
Could you please provide us the steps utilized in adding the same env in your Amplify project. |
Following up on this issue, please do let us know if you would require any assistance. |
You have got the steps wrong
|
Hello @BBopanna, Thank you for you for the reproduction steps. Could you please provide me information on the use case for naming the environments the same. |
One account in on "Development" Sandbox while other one is for "Beta" testing - cross geo accounts. |
Hello @BBopanna, From the information provided the work flow is currently not supported. The following are the supported workflows.
Please refer to the document for additional information: https://docs.amplify.aws/cli/teams/overview/ |
Noted. So wont it be a problem if 2 customer with 2 different accounts name their amplify project the same - say "sameAmplifyProject" and attempt to deploy ? wont it lead to this use case ? |
Hey @BBopanna, if the accounts are different and the applications have the same name this should not cause any issues. As the Amplify apps are identified by the app Id created on a |
Try with 2 different accounts, same amplify project name and same amplify env name. |
Hey @BBopanna, on quick replication I can confirm that creating a same environment name and same app name in different accounts works. I have created two different apps in different folders same environment name and same app name in different accounts/profile connected to different accounts. |
Helllo @BBopanna, Glad to hear that you are back up and running. Do reach out to us again, we would be happy i assisting you. |
Before opening, please confirm:
How did you install the Amplify CLI?
yarn
If applicable, what version of Node.js are you using?
v16.15.1
Amplify CLI Version
9.1.0
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
None
Amplify Categories
auth, storage, function, api, hosting
Amplify Commands
push
Describe the bug
Adding a new env is giving the error : Failed to create HostedUICustomResourceInputs on looking into cloudwatch logs below is the error -
`2022-07-24T15:24:37.820+05:30
2022-07-24T09:54:37.814Z 2a2666a0-e31d-486f-941f-6b7815e90ceb INFO Error: Domain not available
at /var/task/index.js:54:25
at processTicksAndRejections (internal/process/task_queues.js:95:5)
2022-07-24T09:54:37.814Z 2a2666a0-e31d-486f-941f-6b7815e90ceb INFO Error: Domain not available at /var/task/index.js:54:25 at processTicksAndRejections (internal/process/task_queues.js:95:5)
2022-07-24T15:24:37.840+05:30
2022-07-24T09:54:37.840Z 2a2666a0-e31d-486f-941f-6b7815e90ceb INFO Response body:
{
"Status": "FAILED",
"Reason": "See the details in CloudWatch Log Stream: 2022/07/24/[$LATEST]<>",
"PhysicalResourceId": "2022/07/24/[$LATEST]03681359a3d446e1a642221adc765637",
"StackId": "arn:aws:cloudformation:ap-south-1:016616419379:stack/amplify-<>/<>",
"RequestId": "<>",
"LogicalResourceId": "HostedUICustomResourceInputs",
"NoEcho": false,
"Data": {
"err": {}
}
}`
Similar issue are mentioned here
[1] #4781
[2] #9173
We realised that we had the exact same project name and amplify env name in another development aws account and we were trying to create the same project with the same amplify env under another aws account - this was what gave away the cause.
After we delete the amplify env from the first aws account, the addition of the new amplify env with the same name was successful in the second aws account.
So, if there are 2 aws accounts where the same project is created (say one for development, one for beta testing) with the same amplify env the second one will fail.
Expected behavior
Should be able to add a amplify env for the same project name and amplify env name in different aws accounts.
Reproduction steps
Notice #2 will fail with the above error.
PS - possible solution - try adding to aws account number (or some parts of it Or any other unique identifier)
GraphQL schema(s)
# Put schemas below this line
Project Identifier
No response
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: