Package: awscli-plugin-endpoint
awscli-plugin-endpointThis awscli plugin provides service endpoint configurationper serviceon profile.InstallationThe easiest way to install awscli-plugin-endpoint is to usepip:$ pip install awscli-plugin-endpointYou can also install the latest package from GitHub source which can contain changes not yet pushed to PyPI:$ pip install git+https://github.com/wbingli/awscli-plugin-endpoint.gitor, if you installawsclivia Homebrew, which bundles its own python, install as following:$ /usr/local/opt/awscli/libexec/bin/pip install awscli-plugin-endpointGetting StartedBefore using awscli-plugin-endpoint plugin, you need toconfigure awsclifirst.MUST: Once that's done, to enableawscli-plugin-endpointplugin, you can run:$ aws configure set plugins.endpoint awscli_plugin_endpointThe above command adds below section to your aws config file. You can also directly edit your~/.aws/configwith below configuration.[plugins]
endpoint = awscli_plugin_endpointTo add endpoint configure to a profile(assuming you have alocalprofile), you can run:$ aws configure --profile local set dynamodb.endpoint_url http://localhost:8000The above command adds below section to your profile:[profile local]
dynamodb =
    endpoint_url = http://localhost:8000Now you can access your local dynamodb just use profile:$ aws dynamodb list-tables --profile localOne more example with S3 configurationAdd endpoint configuration to the profile:$ aws configure --profile wasabi set s3.endpoint_url https://s3.wasabisys.comThe profile will looks like below:[profile wasabi]
region = us-east-1
s3 =
    endpoint_url = https://s3.wasabisys.comNow you can useaws s3command with this profile as following:$ aws s3 ls --profile wasabiOne more thing, the endpoint is technically persub command. Take S3 as example, above S3 configuration will not work for S3 low level CLIaws s3api.  To makes3apiwork with this endpoint, you should add endpoint to this sub command as well:[profile wasabi]
region = us-east-1
s3 =
    endpoint_url = https://s3.wasabisys.com
s3api =
    endpoint_url = https://s3.wasabisys.comNow you can useaws s3apicommand with this profile as following:$ aws s3api --profile wasabi list-bucketsWorking with Secure ConnectionsBy default, awscli verifies the certificates presented for all HTTPS requests.
There are two options for working with self-signed or otherwise untrusted
certificates:ca_bundleIf the certificate is long-lived, or any new certificates will be issued by
a long-lived certificate authority, you may want to provide an alternate
set of trusted certificates withca_bundle. This is comparable to the--ca-bundlecommand line option, and may be specified either per-profile
or per-subcommand:[profile local1]
ca_bundle = /path/to/bundle.crt
s3 =
    endpoint_url = https://localhost:8000

[profile local2]
ec2 =
    ca_bundle = /path/to/another-bundle.crt
    endpoint_url = https://localhost:8888verify_sslIf the certificate will be frequently refreshed, you may want to simply
disable verification withverify_ssl = false. This is comparable to the--no-verify-sslcommand line option:[profile local]
dynamodb =
    verify_ssl = false
    endpoint_url = https://localhost:8000