Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amplify push modify backend-config.json removing "parameters" #13594

Closed
2 tasks done
gzimbron opened this issue Feb 15, 2024 · 3 comments
Closed
2 tasks done

amplify push modify backend-config.json removing "parameters" #13594

gzimbron opened this issue Feb 15, 2024 · 3 comments
Labels
functions Issues tied to the functions category pending-triage Issue is pending triage platform-push Issues related to `amplify push`

Comments

@gzimbron
Copy link

How did you install the Amplify CLI?

npm

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

v20.10.0

Amplify CLI Version

12.10.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.

No manual changes made

Describe the bug

  • I cloned a fully working repository to my new Mac,
  • Pulled dev environment with: amplify pull
  • Pulled test environment.
  • All fine up to here.

Trying to re-publish web app manually:

  • amplify env checkout dev
  • amplify publish -y

At this point amplify modify amplify/backend-config.json removing "parameters".

I tryied to do it in my preview Mac and It works fine.

New mac requires to run amplify pull before publish. but we have "prod" environment where we need to deploy dev backend updates.

CleanShot 2024-02-15 at 11 21 37@2x

Expected behavior

  • amplify env checkout test
  • amplify publish -y
  • deploy it to host correctly

Reproduction steps

  • clone app repo
  • amplify pull
  • amplify pull --appId XXXXXX --envName test
  • amplify env checkout dev
  • amplify publish -y

Project Identifier

41de347992480064a5878862a835ef5e

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.
@gzimbron gzimbron added the pending-triage Issue is pending triage label Feb 15, 2024
@ykethan
Copy link
Member

ykethan commented Feb 15, 2024

Hey @gzimbron, the issue appears to be similar to #13467. Does the repository also track the team-provider-info.json file and does it contain the function environment variables similar to #13467 (comment)?

@ykethan ykethan added pending-response Issue is pending response from the issue author platform-push Issues related to `amplify push` functions Issues tied to the functions category labels Feb 15, 2024
@gzimbron
Copy link
Author

gzimbron commented Feb 15, 2024

Hi @ykethan , repository is ignoring this file.

Btw team-provider-info.json functions doesn't have "deploymentBucketName" and "s3Key"

team-provider-info.json must be tracked by git ?

Update:
I checked the original repository and team-provider-info.json functions contains "deploymentBucketName" and "s3Key".

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Feb 15, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functions Issues tied to the functions category pending-triage Issue is pending triage platform-push Issues related to `amplify push`
Projects
None yet
Development

No branches or pull requests

2 participants