question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running "amplify pull --yes" appears to cause upload/push.

See original GitHub issue

Describe the bug Our build script performs an amplify pull --providers {filename} --frontend {filename} --amplify {filename} --yes. Recently we noticed that this is causing the environment to be pulled from the backend and then uploaded/pushed again. If we remove the --yes argument, then we are prompted with the question about making changes. We answer Y to this, and the pull happens as we expect (i.e. it is not followed up with an upload/push).

Amplify CLI Version We are running version 4.29.0 of the cli.

To Reproduce Perform a pull as mentioned int he description. Try it with and without the --yes switch to see the difference in behavior.

Expected behavior We expect that performing a pull will not cause any files to be uploaded or deployed to the environment on the backend.

Desktop (please complete the following information): Running on a Mac with 10.15.6. Node.js version is v10.21.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
blydewrightcommented, Sep 29, 2020

+1. We have a CD process setup through Vercel and require the --yes headless option, but since it runs a subsequent push after the pull, it slows down the deploy time significantly as we have a large app with many resources. The push is not expected or desired.

0reactions
github-actions[bot]commented, May 25, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced workflows - Headless mode for CI/CD - Amplify Docs
The following commands take the --yes flag: amplify init; amplify configure project; amplify push; amplify publish; amplify pull ...
Read more >
AWS Amplify how to sign into Admin UI after running "amplify ...
Run amplify init and then select Y to confirm the Project Information. To verify that you have set up the app locally, run...
Read more >
Multiple frontends with Amplify Console - DEV Community ‍ ‍
Now that Amplify Console can understand the amplify pull command we can run it in headless mode by passing the --yes flag at...
Read more >
Team workflows with Amplify backend environments
Delete your feature branch from Git, Amplify, and remove the backend environment from the cloud (you can always spin up a new one...
Read more >
AWS Amplify-CLI Headless & CI/CD - Medium
This article explains how to use AWS Amplify-CLI Headless Mode and GitHub Actions as our CI/CD ... yesMobile Application Sample#!/bin/bash
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found