Skip to content

Better error message when finding lingering .workspace file after an app delete #4228

Open
@Lou1415926

Description

When customers run copilot app delete, Copilot will delete all the application resources, as well as the .workpace file under copilot/ folder.

However, there are times when customers perform manual deletions instead of copilot app delete, or something interrupted during the execution of copilot app delete. These may end up in a state where the app has actually been deleted, but the .workspace file lingers. #3262 is an example. This may bring confusion to customers.

I proposal Copilot surface better error message / recommended actions when:

  1. It's found a .workspace file
  2. It is not able to find the application indicated by the .workspace file

In this case, we can provide recommended actions:

  1. To suggest deleting .workspace file if customer knows they've attempted to app delete before app init
  2. Suggest switching region otherwise.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/appIssues about applications.area/workspaceIssues about workspaces of applications.type/enhancementIssues that are improvements for existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions