Problems with CI/CD in Github Actions for AWS

Asked

Viewed 9 times

0

I am facing a problem when making my application CD in AWS, within my yml code I have the following excerpt:

# Configure AWS credentials
- 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

But I get the following error: inserir a descrição da imagem aqui

Within my Github project I have the Crets this way: inserir a descrição da imagem aqui

I did some research but could not figure out the reason, I also did a test by passing the Crets in the code to test the CD and worked correctly, I’m forgetting to do some configuration?

  • 1

    Your variable name is wrong. Suffix is missing: _ID. In the variable secrets.AWS_SECRET_ACCESS_KEY. Should be: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}.

  • 1

    our do not believe I gave this mole, thank you very much.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.