Skip to content

amplify add env creates new Amplify project and app ID #11580

Open
@josefaidt

Description

@josefaidt

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmultienvIssues tied to multiple environment feature in the CLIp2regressionFlair label to track regressions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions