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.

configured env disappeared from amplify env list, resources still running

See original GitHub issue

Describe the bug I configured 2 environments for a project I’m building. Dev and Master using the same patterns described in the multi-env doc page. I have not done anything with the master environment for a couple of weeks and now it is no longer showing up when I type amplify env list. amplify env get --name master returns No environment found with the corresponding name provided

To Reproduce I’ve not reproduced this since but here’s what happened Steps to reproduce the behavior:

  1. Use amplify env add to add a new environment
  2. Switch development back to a different environment
  3. Wait for days (personal theory is that this is related to the timeout of API Keys like described in #980 but I’m not certain
  4. run amplify env list

Expected behavior I’d expect to see both the dev and the new env I created in the list

Observed Behavior

$ amplify env get --name master
No environment found with the corresponding name provided

All of the resources for that environment are still running - S3 buckets, API and Elasticsearch instances. I just can’t control them anymore.

Desktop (please complete the following information):

  • OS: MacOS 10.14.3

  • Browser n/a

  • Amplify version 1.1.7 - may be worth noting that `amplify env add was run in 1.1.0

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
kaustavghosh06commented, Mar 7, 2019

@poppybank If you didn’t check in your team-provider-info.json file in a VCS before you lost the reference to it, you could retrieve the “awscloudformation” information from the that environments corresponding to that environment from the parent Cloudformation stack (in the Outputs section) in the AWS Cloudformation console. screen shot 2019-03-07 at 10 04 35 am

You can copy-paste this info in the amplify/team-provider-info.json file (use your other enviornment as a reference) and then “amplify init” the project and select the environment that you just added to initialize and use the environment you just added to your team-provider-info.json file.

3reactions
ezagalacommented, Oct 30, 2020

amplify pull --appId [APP_ID_HERE] --envName [ENV_NAME_HERE] did the trick for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Functions - Environment variables - AWS Amplify Docs
To configure environment variables for an existing function, run amplify update function , and select Environment variables configuration . You can then add, ......
Read more >
Using Environment Variables | Cloud Functions Documentation
If you want to store your configuration in a file (e.g. under source ... This section lists runtime environment variables that are set...
Read more >
Configuring build settings - AWS Amplify Hosting
Configure the build settings for an app deployed with Amplify Hosting. ... version: 1 env: variables: key: value backend: phases: preBuild: commands: ...
Read more >
Missing credentials in config, if using AWS_CONFIG_FILE, set ...
By default, the SDK detects AWS credentials set in your environment and uses them to sign requests to AWS. That way you don't...
Read more >
The Amplify Series, Part 2: How does AWS Amplify work?
We can define our cloud environment, meaning the resources and their dependencies, ... You can do this by running “amplify configure” in the ......
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