aws-toolkit-azure-devops icon indicating copy to clipboard operation
aws-toolkit-azure-devops copied to clipboard

AWSShellScript Failing with InvalidSignatureException intermittently in Azure Devops

Open prashankprince opened this issue 1 year ago • 1 comments

Describe the bug

Running shell script in Azure Devops pipeline is failing with below error intermittently-

2024-07-15T05:35:32.5689287Z An error occurred (InvalidSignatureException) when calling the ListImages operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

To reproduce

Steps to reproduce the behavior:

  1. Go to Azure Devops Pipeline and Create a task using AmazonWebServices.aws-vsts-tools.AWSShellScript.AWSShellScript
  2. Call a script from repo/inline shell script
  3. Run pipeline
  4. See intermittent error -

2024-07-15T05:35:32.5689287Z An error occurred (InvalidSignatureException) when calling the ListImages operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

Expected behavior

Task executed successfully

Screenshots

Your Environment

  • On-prem or cloud based: Cloud based
  • Azure DevOps version: Version Dev19.M241.1 (AzureDevOps_M241_20240710.23)
  • AWS Toolkit for Azure DevOps version:1.14.0 (Latest)

Additional context

prashankprince avatar Jul 18 '24 08:07 prashankprince

I am not getting this error after changing agent to MacOS from Linux

prashankprince avatar Sep 26 '24 08:09 prashankprince

in case someone else has the same issue: refresh your credentials. in my case the mentioned failure was resolved

mrwiora avatar Jul 21 '25 23:07 mrwiora