Describe the bug
After I made updates to my amplify project. I did amplify push and after the command succeeded, I pushed my code to the repo, which kicks off a build, but the build keeps failing on the amplify console which says the the BackendEnvironment feature already exist. (I was pushing my feature branch, which already has a feature backend env created and I have already built successfully on this backend for dozens of builds).
To Reproduce
Steps to reproduce the behavior:
amplify status and it show there are categories Updatedamplify push and wait util it secceeded.Expected behavior
The build command should not think that I am creating a new backend environment after I push the code. However, it should just update the existing one.
Screenshots
Build Log:

Additional context
versions:
4.8.0categories used:
Another observation is that in my last succeeded build, amplify was using @aws-amplify/cli 4.7.0 to build my project. However, my first failed build was using 4.8.0 instead..
The last succeeded build (See line 23)

The first failed build (See line 23)

There is a recent release (4.8.0) of @aws-amplify/cli here and I guess amplify is set to use the latest version of @aws-amplify/cli.
If this is the case, Is it possible the 4.8.0 version causes this issue?
Actually I was just poking around and found that we can actually set the version of the amplify cli we want to use in the Amplify Console -> App Settings -> Build Settings

I then set it to 4.7.0 and the builds started to succeded again.
So the version of @aws-amplify/cli is the problem.
So guys. I am sure Amplify team will deliver a fix for this but the temporary workaround is set the Amplify CLI version to 4.7.0 in Amplify Console -> App Settings -> Build Settings
Thanks for the detailed information @RobotCharlie, I will go ahead and move this to the Amplify Console issues for better exposure to fix this.
@jordanranz Thanks!
@RobotCharlie can you try 4.10? This was fixed.
@swaminator Thanks! Sure, I will try it tomorrow! I will let you know.
@swaminator I have verified the 4.10.0 fixed the issue. Thanks!
Most helpful comment
So guys. I am sure Amplify team will deliver a fix for this but the temporary workaround is set the Amplify CLI version to 4.7.0 in Amplify Console -> App Settings -> Build Settings