copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Creation of demo app failed; copilot stopped functioning

Open haarts opened this issue 2 years ago • 1 comments

Dear all,

I've been trying to start a simple demo app. Something went wrong during init:

image

Some kind of timeout. It happens.

But now I can't do anything anymore with the copilot cli. Each and everyone of the subcommands comes back with an error like this: image

I can't delete the failed app b/c it can't be found:

image

I've logged in on the web console and I can't find anything there either (should I be able to?).

I've logged out. I've removed the .aws directory entirely. I don't think I have state on my local machine.

What else can I try?

haarts avatar Feb 22 '24 04:02 haarts

It is possible that there isn't any lingering resource in your AWS account. If your goal is to delete "demo" completely, that means you don't need to do anything from this point.

If there is anything at all, I think the only resource would be the "demo-infrastructure-roles" stack. To look for the stack - 1) go to CloudFormation console, 2) switch to the region that you ran init with (if you didn't set any AWS environment variables related to regions, e.g. AWS_REGION, AWS_DEFAULT_REGION, etc.), 3) see if there is a stack named "demo-infrastructure-roles" 4) If there isn't any, look for "Deleted" stacks and "Failed" stacks.

If you can't find any stack, or you found it in "Deleted" / "Failed", then you are good!

To elaborate on the error message - Copilot reads the copilot/.workspace file and finds out that there should an application called "demo". It then tries to read from your account & region an SSM parameter named "copilot/applications/demo", and emits the error that you saw when it can't find one.

Lou1415926 avatar Feb 26 '24 21:02 Lou1415926

This issue is stale because it has been open 60 days with no response activity. Remove the stale label, add a comment, or this will be closed in 14 days.

github-actions[bot] avatar Apr 27 '24 00:04 github-actions[bot]

This issue is closed due to inactivity. Feel free to reopen the issue if you have any further questions!

github-actions[bot] avatar May 11 '24 00:05 github-actions[bot]