Accessing AWS S3 bucket from azure devops without having a service connection

Copper Contributor

Hi ,

I want to upload and download artifacts to AWS S3 bucket (build artifacts) from azure devops. There are pre-defined tasks (amazon S3 upload and download) available in azure devops to do this, but i am unable to use these tasks as my organization is not allowing to create a service connection between azure Devops and AWS (not interested to share IAM user Access key and Secret key). 

 

Instead my organization has created a IAM role and policy and attached this IAM role to one of the EC2 instance. Now from this EC2 instance how can i upload and download artifacts to S3 bucket using Azure Devops? Please guide...

1 Reply
You may install and config the self hosted agent on that Ec2 instance. Create the azure pipeline as per the need, and run the pipeline. The role attached to EC2 instance will help to perform the required action.