Amplify-cli: amplify env checkout <env> should update aws-exports.js file

Created on 28 Oct 2019  路  4Comments  路  Source: aws-amplify/amplify-cli

Describe the bug

When you do amplify env checkout <env> the aws-exports.js file does not update, it will still contain settings of the previous environment.

To work around this, you can do amplify init and choose an existing environment and choose the you checkout to.

To Reproduce

  1. Check aws-exports.js
  2. Do amplify env checkout <env>
  3. Check aws-exports.js
  4. Realize that it hasn't changed to reflect the environment settings you are in.

Expected behavior

amplify env checkout <env> should update aws-exports.js file to reflect the settings of the current environment you checkout to.

Additional context

To work around this, you can do amplify init and choose an existing environment and choose the <env> you checkout to.

bug platform

Most helpful comment

@aprilmintacpineda it seems to be a valid request, I marked it as a bug, thanks for reporting it.

All 4 comments

@aprilmintacpineda it seems to be a valid request, I marked it as a bug, thanks for reporting it.

@aprilmintacpineda This should be fixed in the latest version of the CLI. Please report back if you're still seeing this issue.

Still not solved as of amplify -v 4.12.0

Still not solved amplify -v 4.18.1
Disappointing.

Was this page helpful?
0 / 5 - 0 ratings