All Projects β†’ wbingli β†’ Awscli Plugin Endpoint

wbingli / Awscli Plugin Endpoint

Licence: apache-2.0
An awscli plugin to configure service endpoint from aws configure file

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Awscli Plugin Endpoint

Textureupdateexample
An example showing how to update textures from a native plugin in Unity.
Stars: ✭ 133 (-3.62%)
Mutual labels:  plugin
Filepond
🌊 A flexible and fun JavaScript file upload library
Stars: ✭ 11,869 (+8500.72%)
Mutual labels:  plugin
Graphql Api For Wp
[READ ONLY] GraphQL API for WordPress
Stars: ✭ 136 (-1.45%)
Mutual labels:  plugin
Coremediaio Dal Example
Apple's CoreMediaIO DAL plugin example - modernized
Stars: ✭ 132 (-4.35%)
Mutual labels:  plugin
Webpack Internal Plugin Relation
πŸ”Ž a tiny tool to show the relation of webpack internal plugins & hooks
Stars: ✭ 135 (-2.17%)
Mutual labels:  plugin
Cygwin Portable Installer
Windows batch file to perform unattended installations of a portable Cygwin environment.
Stars: ✭ 135 (-2.17%)
Mutual labels:  aws-cli
Voicewp
Create Alexa Skills through WordPress
Stars: ✭ 132 (-4.35%)
Mutual labels:  plugin
Speed Measure Webpack Plugin
⏱ See how fast (or not) your plugins and loaders are, so you can optimise your builds
Stars: ✭ 1,980 (+1334.78%)
Mutual labels:  plugin
Leapunreal
Leap Motion SDK for the Unreal Engine.
Stars: ✭ 134 (-2.9%)
Mutual labels:  plugin
Resharper Angularjs
ReSharper plugin for AngularJS support
Stars: ✭ 135 (-2.17%)
Mutual labels:  plugin
Flutter geocoder
Flutter plugin for forward and reverse geocoding
Stars: ✭ 134 (-2.9%)
Mutual labels:  plugin
Streamdeck Tools
The Stream Deck Tools library wraps all the communication with the Stream Deck app, allowing you to focus on actually writing the Plugin's logic
Stars: ✭ 133 (-3.62%)
Mutual labels:  plugin
Ds4vita
Stars: ✭ 135 (-2.17%)
Mutual labels:  plugin
Vue Good Table
An easy to use powerful data table for vuejs with advanced customizations including sorting, column filtering, pagination, grouping etc
Stars: ✭ 1,824 (+1221.74%)
Mutual labels:  plugin
Analog clock
⌚️Analog Clock widget for Flutter ⏰
Stars: ✭ 136 (-1.45%)
Mutual labels:  plugin
Autoenv
Autoenv for zsh
Stars: ✭ 131 (-5.07%)
Mutual labels:  plugin
Aws Cli
Universal Command Line Interface for Amazon Web Services
Stars: ✭ 11,804 (+8453.62%)
Mutual labels:  aws-cli
Next Runtime Dotenv
Expose environment variables to the runtime config of Next.js
Stars: ✭ 136 (-1.45%)
Mutual labels:  plugin
Go Xserver
Go ζœεŠ‘ε™¨ζ‘†ζžΆοΌˆgo-x.v2οΌ‰
Stars: ✭ 137 (-0.72%)
Mutual labels:  plugin
Pytest Datadir
pytest plugin for manipulating test data directories and files
Stars: ✭ 135 (-2.17%)
Mutual labels:  plugin

awscli-plugin-endpoint

This awscli plugin provides service endpoint configuration per service on profile.


Installation

The easiest way to install awscli-plugin-endpoint is to use pip:

$ pip install awscli-plugin-endpoint

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/wbingli/awscli-plugin-endpoint.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-endpoint

Regardless of the installation method, make note of the package installation path (e.g. ~/Library/Python/3.7/lib/python/site-packages). It will be needed if you are using AWS CLI v2.


Getting Started

Before using awscli-plugin-endpoint plugin, you need to configure awscli first.

MUST: Once that's done, to enable awscli-plugin-endpoint plugin, you can run:

$ aws configure set plugins.endpoint awscli_plugin_endpoint

The above command adds below section to your aws config file. You can also directly edit your ~/.aws/config with below configuration.

[plugins]
endpoint = awscli_plugin_endpoint

If you are configuring AWS CLI v2 to use the endpoint plugin, you will need to add an additional configuration setting, replacing "site-packages-path" with the installation path noted above:

$ aws configure set plugins.cli_legacy_plugin_path site-packages-path

The configuration file will now have two values in the plugin section:

[plugins]
endpoint = awscli_plugin_endpoint
cli_legacy_plugin_path = site-packages-path

To add endpoint configure to a profile(assuming you have a local profile), you can run:

$ aws configure --profile local set dynamodb.endpoint_url http://localhost:8000

The above command adds below section to your profile:

[profile local]
dynamodb =
    endpoint_url = http://localhost:8000

Now you can access your local dynamodb just use profile:

$ aws dynamodb list-tables --profile local

One more example with S3 configuration

Add endpoint configuration to the profile:

$ aws configure --profile wasabi set s3.endpoint_url https://s3.wasabisys.com

The profile will looks like below:

[profile wasabi]
region = us-east-1
s3 =
    endpoint_url = https://s3.wasabisys.com

Now you can use aws s3 command with this profile as following:

$ aws s3 ls --profile wasabi

One more thing, the endpoint is technically per sub command. Take S3 as example, above S3 configuration will not work for S3 low level CLI aws s3api. To make s3api work 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.com

Now you can use aws s3api command with this profile as following:

$ aws s3api --profile wasabi list-buckets

Working with Secure Connections

By default, awscli verifies the certificates presented for all HTTPS requests. There are two options for working with self-signed or otherwise untrusted certificates:

  • ca_bundle

    If 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 with ca_bundle. This is comparable to the --ca-bundle command 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:8888
    
  • verify_ssl

    If the certificate will be frequently refreshed, you may want to simply disable verification with verify_ssl = false. This is comparable to the --no-verify-ssl command line option:

    [profile local]
    dynamodb =
        verify_ssl = false
        endpoint_url = https://localhost:8000
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].