Skip to content

Should check if App Runner is available in current region before creating svc #4769

Open
@idawnwon

Description

Hi all! Thanks for your great work! ♥️

I tried to create a Request-Driven Web Service in ap-northeast-2.

At first I didn't know this region does not support App Runner.

While copilot is creating test env, an error popped up:

- Update regional resources with stack set "APP_NAME-infrastructure"  [failed]

get app resources: describing application resources: getting outputs for stack  in region ap-northeast-2: describe stack : ValidationError: 2 validation errors detected: Value '' at 'stackName' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '' at 'stackName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/._+]*

While it is easy to figure out App Runner is not supported in current region, but is hard to clean up with copilot app delete, the same error would pop up again, then command terminated. Ended up cleaning by hand:

  • Delete app name in SSM Parameter Store
  • Delete stack APP_NAME-infrastructure-roles in Cloudformation
  • Delete copilot folder in project

Is it possible to check if App Runner is available in current region before doing anything further?

I would like to create a PR for this great product, but I am not good at Go language, feeling so hard to find where to fix.

Given this is not a critical issue, I wish someone would give me some hint 😅, I would learn on the fly then fix it.
If pointing out problems is more trouble than fixing them, then don't let me, a newbie, mess around. 🤣

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/deploymentIssues related to deploymentssize/SWe should be able to deliver roughly 2 small issues in a sprint.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