aws / aws-toolkit-azure-devops

AWS Toolkit for Azure DevOps
Other
247 stars 104 forks source link

AWSShellScript Failing with InvalidSignatureException intermittently in Azure Devops #556

Open prashankprince opened 3 months ago

prashankprince commented 3 months ago

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

Additional context

prashankprince commented 1 month ago

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