https://prefect.io logo
#prefect-server
Title
# prefect-server
m

madhav

04/26/2022, 8:45 PM
Hi All, figured I'd ask here in case anyone has experience with this. We are deploying ECR containers that have all of our flows using github actions, however the github action fails running the
aws-actions/configure-aws-credentials
action with
Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers
. Has anyone seen this error before when trying to package their flows into a container?
a

Anna Geller

04/26/2022, 8:56 PM
We actually have seen similar issues recently. Check this Github issue It may not be directly Prefect-related though - could be some change in credentials handling on the GHA with ECR
can you say more when do you see this error? Does it happen during flow registration when using Docker storage or when you manually push your custom image?
m

madhav

04/26/2022, 8:59 PM
Got it, yea I think it may be a github issue as well. We have a github action that tries to push an ECR image with all of our flows on commit. @Chris Hatton
I'll post any updates we have with it here.
👍 1
j

Jason

04/26/2022, 9:32 PM
That's odd. The following works for me at that step:
Copy code
- name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-region: us-east-1
upvote 1
I do get a downstream failure when pushing ECR with the flow.registration, and get around it by manually pushing the image to ECR in a separate step.
Then following that step I run
aws-actions/amazon-ecr-login@v1
to authenticate to ECR.
m

madhav

04/26/2022, 9:43 PM
oh hmm. yea that exact snippet you post is where we fail
a

Anna Geller

04/26/2022, 11:48 PM
perhaps you can recreate your AWS key pair? could be that your credentials are no longer valid (even though the error message should be different then)
m

madhav

04/26/2022, 11:50 PM
we just fixed the issue. It was a silly configuration issue: We had "Environment Secrets" not "Repository Secrets" in the repo. ugh. Thank you for the help everyone. It was useful @Jason to know that our configuration was correct.
🙌 1
a

Anna Geller

04/27/2022, 12:09 AM
Thanks for sharing your solution! Will cross-post on Discourse
21 Views