question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI says it's not avaiable in a region, but I can use it via console

See original GitHub issue

Describe the bug If I amplify init a project with a sa-east-1 profile, it will work. I’ll be able to add apis, authentication and etc. However, when I try to amplify add hosting it will yield a “Missing required key ‘appId’ in params” error. Then if I try to amplify init --appId with an Amplify app id that I already created via console in the region, it will say “Amplify service is not available in the region sa-east-1 init failed”.

That doesn’t make any sense, considering that I just created an app via the console, and all the features are available using it (for example, I can create a fullstack amplify app clicking the quick start examples).

Amplify CLI Version 4.29.0

To Reproduce Try to amplify init --appId with an app id in sa-east-1

Expected behavior To work, since I can do all the amplify cli things via the console, I expected them to work via cli.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
vargascookbookcommented, Sep 16, 2020

Hi ALL! Any news about this issue? We really need to use São Paulo through the CLI! Thank you!!

6reactions
akshbhucommented, Sep 9, 2020

Hi @Eduardogbg

As the appId you created via console is in region sa-east-1 and amplify-cli doesn’t support the region for amplify service ,thats why you are facing this issue. I have mark this as enhancement and 👍 to get this prioritized.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command line options - AWS Documentation
In the AWS CLI, command line options are global parameters you can use to ... available in each Region, see AWS Regions and...
Read more >
Error "You must specify a region" when running any aws CLI ...
"You must specify a region" is a not an ECS specific error, it can happen with any AWS API/CLI/SDK command. For the CLI,...
Read more >
Quickstart: Create a C# function in Azure from the command line
Learn how to create a C# function from the command line, then publish the local project to serverless hosting in Azure Functions.
Read more >
An Overview of AWS CLI (AWS Command Line Interface)
It is simple to use and does not require knowledge of scripting ... We can install AWS CLI on Windows using a standalone...
Read more >
Changing the default region or zone - Compute Engine
When you use the gcloud CLI, omit setting the --region and --zone flags to use ... There are no restrictions on which regions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found