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

Impossible to assume a role without ACCESSKEY And SecretKey

Open lekesako opened this issue 2 years ago • 0 comments

Describe the bug

We have built a linux agent on an EC2 with a profile instance role capable of assuming a role on my account.

We tried to assume a role from an AWSCLI task in azuredevops withoutan accesskey & secretkey in the task (no variables or service connection)

To reproduce

Try to make an azuredevops Pipeline with AWS Shell Script with AWS S3 LS command and a role with S3 readonly and an externalid.

Configure variables with :

AWS.AssumeRoleArn = role to assume AWS.ExternalId = externalid related on this role AWS.Region = region for command awscli

Expected behavior

list of bucket s3 in my account with aws

Screenshots

Your Environment

  • Azure DevOps version: latest online not on premises
  • AWS Toolkit for Azure DevOps version:1.11.0

lekesako avatar Jul 27 '21 14:07 lekesako