Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Support for passing HTTP_PROXY and HTTPS_PROXY Env vars for AWS_CLI


We use the aws-s3-deploy pipe and would like support for setting HTTP_PROXY and HTTPS_PROXY Environment variables for the AWS CLI to pick up:

Or is there another way to pass and set arbitrary environment variables for all pipes?


1 answer

0 votes

@Oscar Westdo I understand right that you don't expect aws access keys credentials to be added to repository variables and instead want to add HTTPS_PROXY and use this authentication instead of aws access keys?

Or do you want to be able to use both at the same time (aws access keys for authentication and proxy to access some resources, e.g. s3 bucket via proxy)?

This is the question to better understand your case and try to find out if it is supported or not.


Regards, Galyna

Hi, essentially we want the aws cli to proxy our aws s3 sync commands via a proxy server. (

So still need the aws credentials but we need to set the environment variables for the aws cli to pick up on this.


Maybe something like this: 

if [[ -n "${PROXY}" ]]; then
  export HTTP_PROXY="${PROXY}"
  export HTTPS_PROXY="${PROXY}"


Or is this already supported by passing HTTP_PROXY and HTTPS_PROXY as variables for the pipe? Like this:

 pipe: atlassian/aws-s3-deploy:0.4.5
AWS_ACCESS_KEY_ID: '<string>' # Optional if already defined in the context.
AWS_SECRET_ACCESS_KEY: '<string>' # Optional if already defined in the context. HTTP_PROXY: '<string>' # Optional HTTPS_PROXY: '<string>' # Optional

Can't seem to find any documentation.

@Oscar WestI've just tried to pass variables, like in your second approach, it worked.

So I think the second option is supported, you can simply try it.

Looking forward to seeing your feedback, we'll make a support ticket, if there are some problems.

Regards,  Galyna

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

112 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you