S3 proxy plugin for AWS CLI
Project description
awscli-plugin-s3-proxy
=============
This awscli plugin allows usage of proxy for S3 service stored in profile configuration.
------------
Installation
------------
The easiest way to install awscli-plugin-s3-proxy is to use `pip`:
$ pip install awscli-plugin-s3-proxy
You can also install the latest package from GitHub source which can contain changes not yet pushed to PyPI:
$ pip install git+https://github.com/nowak-ninja/awscli-plugin-s3-proxy.git
or, if you install `awscli` via Homebrew, which bundles its own python, install as following:
$ /usr/local/opt/awscli/libexec/bin/pip install awscli-plugin-s3-proxy
---------------
Getting Started
---------------
Before using awscli-plugin-s3-proxy plugin, you need to [configure awscli](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) first.
**MUST**: Once that's done, to enable `awscli-plugin-s3-proxy` plugin, you can run:
$ aws configure set plugins.s3-proxy awscli_plugin_s3_proxy
The above command adds below section to your aws config file. You can also directly edit your `~/.aws/config` with below configuration.
[plugins]
s3-proxy = awscli_plugin_s3_proxy
To add proxy configure to a profile (assuming you have a **test** profile), you can run:
$ aws configure --profile test set s3.proxy http://proxy-host.com:8080
The above command adds below section to your profile:
[profile test]
s3 =
proxy = http://proxy-host.com:8080
Now you can access S3 using proxy with profile:
$ aws s3 ls --profile test
If You want to use profile without passing it every time as parameter, use environment variable, ex:
export AWS_PROFILE=test
Alternative (classic) method
------------------
You can follow the [guide by AWS](https://docs.aws.amazon.com/cli/latest/userguide/cli-http-proxy.html) which describes how to use proxy using system environment variables. Here is the example:
export http_proxy=http://proxy-host.com:8080
export https_proxy=http://proxy-host.com:8080
export HTTP_PROXY=http://proxy-host.com:8080
export HTTPS_PROXY=http://proxy-host.com:8080
Remember that after setting these variables, `ALL` awscli requests will be going through proxy!
Additionally, if You are using awscli on EC2 host, add `NO_PROXY` variable to allow awscli communicate with metadata endpoint:
NO_PROXY=169.254.169.254
=============
This awscli plugin allows usage of proxy for S3 service stored in profile configuration.
------------
Installation
------------
The easiest way to install awscli-plugin-s3-proxy is to use `pip`:
$ pip install awscli-plugin-s3-proxy
You can also install the latest package from GitHub source which can contain changes not yet pushed to PyPI:
$ pip install git+https://github.com/nowak-ninja/awscli-plugin-s3-proxy.git
or, if you install `awscli` via Homebrew, which bundles its own python, install as following:
$ /usr/local/opt/awscli/libexec/bin/pip install awscli-plugin-s3-proxy
---------------
Getting Started
---------------
Before using awscli-plugin-s3-proxy plugin, you need to [configure awscli](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) first.
**MUST**: Once that's done, to enable `awscli-plugin-s3-proxy` plugin, you can run:
$ aws configure set plugins.s3-proxy awscli_plugin_s3_proxy
The above command adds below section to your aws config file. You can also directly edit your `~/.aws/config` with below configuration.
[plugins]
s3-proxy = awscli_plugin_s3_proxy
To add proxy configure to a profile (assuming you have a **test** profile), you can run:
$ aws configure --profile test set s3.proxy http://proxy-host.com:8080
The above command adds below section to your profile:
[profile test]
s3 =
proxy = http://proxy-host.com:8080
Now you can access S3 using proxy with profile:
$ aws s3 ls --profile test
If You want to use profile without passing it every time as parameter, use environment variable, ex:
export AWS_PROFILE=test
Alternative (classic) method
------------------
You can follow the [guide by AWS](https://docs.aws.amazon.com/cli/latest/userguide/cli-http-proxy.html) which describes how to use proxy using system environment variables. Here is the example:
export http_proxy=http://proxy-host.com:8080
export https_proxy=http://proxy-host.com:8080
export HTTP_PROXY=http://proxy-host.com:8080
export HTTPS_PROXY=http://proxy-host.com:8080
Remember that after setting these variables, `ALL` awscli requests will be going through proxy!
Additionally, if You are using awscli on EC2 host, add `NO_PROXY` variable to allow awscli communicate with metadata endpoint:
NO_PROXY=169.254.169.254
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file awscli-plugin-s3-proxy-0.5.tar.gz
.
File metadata
- Download URL: awscli-plugin-s3-proxy-0.5.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 294dffc7c0821a599593943d510d95d018cf488aa1432ab39b80f264c8609fc7 |
|
MD5 | f03e6a2ac27731eca99841e67b4a664e |
|
BLAKE2b-256 | ba52534ce8d63b06c6a637c9674571d49c8af11a4c62843344112a1e58e7ca90 |
File details
Details for the file awscli_plugin_s3_proxy-0.5-py2-none-any.whl
.
File metadata
- Download URL: awscli_plugin_s3_proxy-0.5-py2-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7774ef7bee8acffcdfcd7cf8eca3ab10f16b893c4fb2edd9089a99bddbe1b5d |
|
MD5 | 43ef222528ad0dda8a5c7bdc7f0c1eac |
|
BLAKE2b-256 | 685538b808b650972f388c64d59d76f89bd914f4c84b772cac30a3cec66312b2 |