amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Amplify have multiple new Resources from Category "Parameters"

Open Stefan-WW opened this issue 3 years ago • 26 comments

How did you install the Amplify CLI?

npm install -g @aws-amplify/cli

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

14.19.3

Amplify CLI Version

10.5.2

What operating system are you using?

Windows

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

i tried to remove a dependency from one custom resource to the other one. But i rejected this change in the meantime.

Describe the bug

Today i updated my Amplify CLI from 9.1.0 to 10.5.2

i also refactored some resources. But when i try to push now, i get informed that there are multiple new resources.

image

Is this related to the new amplify upgrade? Can someone give me some informations about this new category??

i completly rejected my changes in git, but when i run amplify status, the new resources comes again.

I'm a little bit afraid that i corrupted my environment now.

Can someone help me? Kind Regards Stefan

Expected behavior

No unecassary Resources should be shown in amplify status

Reproduction steps

amplify status

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.

Stefan-WW avatar Jan 03 '23 19:01 Stefan-WW

Hey @StefanVolkmer-WW :wave: thanks for raising this! Would you mind sending us a copy of the contents of amplify/team-provider-info.json to [email protected] (redacting any sensitive information)? This will help us get a better understanding of the context

josefaidt avatar Jan 03 '23 21:01 josefaidt

I am having the same issue. I also have amplify CLI 10.5.2.

ermrg avatar Jan 05 '23 16:01 ermrg

Hey @ermrg :wave: thanks for chiming in here! Do you experience the same issue if you upgrade to Amplify CLI 10.6+?

josefaidt avatar Jan 06 '23 17:01 josefaidt

Hey folks :wave: I was able to reproduce this issue using a project that was last built by Amplify CLI version 10.6.0, and running an older Amplify CLI version locally (9.1.0). These parameters in amplify/backend/backend-config.json were introduced in a more recent version of the CLI, and will not appear in the status list in CLI versions 10.6+

It is possible Amplify Hosting automated builds last built the project using latest, and subsequent amplify pull executions locally pulled these parameters in where the locally installed copy of the CLI was not able to hide the parameters from status.

To mitigate this issue, please upgrade your CLI locally with amplify upgrade

josefaidt avatar Jan 06 '23 18:01 josefaidt

I have the same issue. I upgrade to the latest version:

amplify --version
10.6.1

But I still getting:

┌────────────┬──────────────────────────────────────────────────────────────────┬───────────┬───────────────────┐
│ Category   │ Resource name                                                    │ Operation │ Provider plugin   │
├────────────┼──────────────────────────────────────────────────────────────────┼───────────┼───────────────────┤
│ Parameters │ AMPLIFY_function_projectPostConfirmation_deploymentBucketName    │ Create    │                   │
├────────────┼──────────────────────────────────────────────────────────────────┼───────────┼───────────────────┤
│ Parameters │ AMPLIFY_function_projectPostConfirmation_s3Key                   │ Create    │                   │
├────────────┼──────────────────────────────────────────────────────────────────┼───────────┼───────────────────┤
│ Auth       │ project                                                          │ No Change │ awscloudformation │
├────────────┼──────────────────────────────────────────────────────────────────┼───────────┼───────────────────┤
│ Auth       │ userPoolGroups                                                   │ No Change │ awscloudformation │
├────────────┼──────────────────────────────────────────────────────────────────┼───────────┼───────────────────┤
│ Storage    │ appassets                                                        │ No Change │ awscloudformation │
└────────────┴──────────────────────────────────────────────────────────────────┴───────────┴───────────────────┘

And still getting the same message.

salsa2k avatar Jan 15 '23 02:01 salsa2k

Same issue with CLI version 10.6.2

dral3x avatar Jan 24 '23 10:01 dral3x

I have this problem as well.

I removed the "parameters" key from amplify/backend/backend-config.json, and amplify/backend/amplify-meta.json but that wasn't enough. I then updated the #current-cloud-backend.zip and backend-config.json in the bucket of the project's DeploymentBucket and pushed but the keys remain.

joekiller avatar Jan 31 '23 21:01 joekiller

Facing the same problem. Did a successful amplify push and amplify push --force and it still shows up if I run amplify status

ammar-kunaico avatar Feb 03 '23 04:02 ammar-kunaico

Hey @salsa2k and folks in the thread :wave: after upgrading can you try running amplify env checkout <current-env-name>? These parameters were introduced in later versions of the CLI and passed into resources

josefaidt avatar Feb 03 '23 23:02 josefaidt

I'm running 10.7.3 and after amplify env checkout <my-env> the artifacts are still there.

joekiller avatar Feb 17 '23 14:02 joekiller

Hey @joekiller are you seeing Parameters in your amplify/backend/amplify-meta.json file?

josefaidt avatar Feb 23 '23 20:02 josefaidt

@josef I checked a bucket that built with cli 10.7.3 and I'm only seeing it now in the backend-config.json and not in the amplify-meta.json. team-provider.json is clean.. just backend-config.json has the garbage.

Sent via mobile

On Thu, Feb 23, 2023, 3:05 PM josef @.***> wrote:

Hey @joekiller https://github.com/joekiller are you seeing Parameters in your amplify/backend/amplify-meta.json file?

— Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-cli/issues/11693#issuecomment-1442363422, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXR3IB7QQQ2VMPU4AHN3WY67G5ANCNFSM6AAAAAATQAVEEU . You are receiving this because you were mentioned.Message ID: @.***>

joekiller avatar Feb 23 '23 22:02 joekiller

Running into a similar issue here... Thought I managed to solve it following some steps indicated here:

  • https://github.com/aws-amplify/amplify-cli/issues/12097

But after doing a CLI modification to one of my functions to remove some env vars, not only I started to get the parameters again, but also now I'm unable to deploy to different environments due to the stack wanting to get the parameters and not getting them :(

  • https://github.com/aws-amplify/amplify-cli/issues/12114

u93 avatar Feb 27 '23 17:02 u93

we've just committed them and moved on. annoying though yes.

joekiller avatar Mar 02 '23 16:03 joekiller

Hey @salsa2k and folks in the thread 👋 after upgrading can you try running amplify env checkout <current-env-name>? These parameters were introduced in later versions of the CLI and passed into resources

Thanks, this works for me

giuliotiseo avatar Mar 06 '23 10:03 giuliotiseo

Hey @joekiller and folks in the thread. Are you still experiencing this?

josefaidt avatar Mar 24 '23 18:03 josefaidt

@josefaidt I'm still experiencing this. Amplify version 10.5. Doing amplify env checkout <current_env> got rid of them.

RyanRussell00 avatar Apr 08 '23 22:04 RyanRussell00

I am facing a similar issue with Amplify version 11.0.3. In the beginning there are many parameters appear with operation Create. After doing some amplify checkout and amplify push, the Create becomes Delete and won't disappear no matter what I did. image

These parameters exist in the following places. image

ericlo23 avatar Apr 12 '23 09:04 ericlo23

I just started seeing this with the same Create becoming Delete after trying amplify env checkout . Recently updated from 10.5.8 to 11.1.1. I see the parameters in amplify/backend-config.json and amplify/#current-cloud-backend/amplify-meta.json

chriswaterbury avatar May 07 '23 22:05 chriswaterbury

Got same problem when moving from 10.8 to 12.0. What to do?

maziarzamani avatar May 17 '23 17:05 maziarzamani