aws-amplify / aws-amplify/amplify-cli

`amplify add env` creates new Amplify project and app ID

Open
#11,580 4 comments 6 reactions 0 assignees View on GitHub
bug multienv p2 regression
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### How did you install the Amplify CLI?

pnpm

### If applicable, what version of Node.js are you using?

18

### Amplify CLI Version

10.5.1

### What operating system are you using?

mac

### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

n/a

### Describe the bug

Creating a new environment with `amplify add env` creates a new Amplify project with a separate App ID.

### Expected behavior

An environment is created in the existing project

### Reproduction steps

1. `amplify init -y`
2. `amplify add env --envName next --yes`
3. observe new app id in `amplify/team-provider-info.json`

### Project Identifier

_No response_

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

### Before submitting, please confirm:

- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.