-
Notifications
You must be signed in to change notification settings - Fork 826
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 pull (headless) fail to pull configuration when used with github actions on ubuntu #13661
Comments
Hey @dkliss 👋 thanks for raising this! From the logs printed from that pull attempt it appears you have Amplify Studio enabled for this app, which will cause the CLI to default to Studio for authentication. There is a known issue where the Amplify CLI is not able to read credentials from environment variables. Can you try the workaround here? #10484 (comment) Or try echoing those credentials to a temporary AWS profile in the GitHub Action runner? |
Thanks @josefaidt for your response & Script. Below is what worked from me after some trials. If these looks as expected. then we can close (if this issue is already tracked). OPTION 1: If I Disable Amplify Studio, then below works after adding aws configure set.
OPTION 2: If I enable (or even keep disabled) Amplify Studio, then below works (after trying out from #11009).
|
@dkliss both options provided should work as expected. If the project does not require Amplify Studio, you can disable this on the console but can be re-enabled if your use case requires this and utilize the headless command to pull the backend. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.10.1
What operating system are you using?
ubuntu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Hi,
I have a github action wokrflow as shown below. When I run this in github actions, the AWS credentials are processed correctly and I can see that by checking of aws s3 ls shows me all s3 files. However, after that when i like to pull my aws amplify configuration via "aws amplify pull" but the github action workflow is stuck at "Opening link: https://us-east-1.admin.amplifyapp.com/admin/[redacted]/dev/verify/?loginVersion=1". When I open the link, it ask me to copy a key back.
I expected all this to work programatically without my intervention. Is there anything missing here from my side? I am using github Provider (token.actions.githubusercontent.com), which is setup along with required IAM role and aws integration is working.
Also I see no logs for amplify pull. I expected the amplify pull to retrieve my configured envoirnment.
Describe the bug
amplify pull does not work in github action. It is stuck at opening link as example below
Expected behavior
amplify pull shall retrieve latest configuration from aws amplify.
Reproduction steps
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: