configure-aws-credentials icon indicating copy to clipboard operation
configure-aws-credentials copied to clipboard

How to update the secert while running the actions?

Open LakshmiRavali opened this issue 3 years ago • 1 comments

I am using this action to upload to s3, but my AWS_SECRET_ACCESS_KEY will expire after 30mins. I have a case where sometimes my script will take more than 30mins to execute and meanwhile this AWS_SECRET_ACCESS_KEY will expire. How to handle this kind of case? For example:

steps:
      - uses: actions/checkout@master
      - run: bash script-run-more-time.sh # This might take more than 30mins
      - 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-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
          aws-region: us-east-2

LakshmiRavali avatar Sep 01 '21 09:09 LakshmiRavali

Hello @LakshmiRavali , Thank you for posting this question. I would like to know more about this issue. I tried looking at Configure-aws-credentials and nowhere it is mentioned that AWS_SECRET_ACCESS_KEY will expire in 30mins. So I would like to now how your credentials are expiring in 30mins. May I see the error logs to understand more about this issue? How are you setting your secrets?

paragbhingre avatar Sep 13 '21 22:09 paragbhingre

This issue is stale, closing out.

peterwoodworth avatar Oct 05 '22 21:10 peterwoodworth

⚠️Comment Visibility Warning⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or 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.

github-actions[bot] avatar Oct 05 '22 21:10 github-actions[bot]