Skip to main content

Bolt plugin for AWS CLI

Project description

awscli-plugin-bolt

This AWS CLI plugin provides an authentication and authorization solution for accessing Bolt securely using the AWS CLI.

It uses the standard AWS CLI configuration to store the URL for accessing Bolt. Active profiles disable regular S3 request signing, and instead provide a presigned STS GetCallerIdentity API call to securely authenticate requests using Bolt.

Prerequisites

The minimum supported version of Python is version 3.

awscli must be installed. e.g. pip3 install awscli --user

Installation

To install the plugin package, run: pip3 install awscli-plugin-bolt --user.

Configuration

To configure the plugin after it has been installed, use aws configure:

aws configure set plugins.bolt awscli-plugin-bolt
aws [--profile PROFILE] configure set bolt_custom_domain <bolt custom domain>
aws [--profile PROFILE] configure set bolt_az <preferred availability zone ID>

bolt_custom_domain

For example, to activate a Bolt service using an internal load balancer hosted at https://bolt.us-east-1.project.n for the staging AWS profile, run:

aws --profile staging configure set bolt_custom_domain project.n
aws --profile staging configure set bolt_az use1-az1

Alternatively, the bolt_url and bolt_hostname can be set explicitly

aws --profile staging configure set bolt_hostname bolt.us-east-1.project.n
aws --profile staging configure set bolt_url https://quicksilver.us-east-1.project.n
aws --profile staging configure set bolt_az use1-az1

AWS CLI v2

This plugin has been tested for compatibility with AWS CLI version 2, but please take note of the [plugins] configuration breaking changes. In particular, you will need to add a block like:

[plugins]
cli_legacy_plugin_path = /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages

in your ~/.aws/config file for the plugin registration to succeed.

To find the correct location for cli_legacy_plugin_path after installing the plugin, run:

pip3 show awscli-plugin-bolt | grep Location:

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

awscli-plugin-bolt-2.0.4.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

awscli_plugin_bolt-2.0.4-py2.py3-none-any.whl (11.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file awscli-plugin-bolt-2.0.4.tar.gz.

File metadata

  • Download URL: awscli-plugin-bolt-2.0.4.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for awscli-plugin-bolt-2.0.4.tar.gz
Algorithm Hash digest
SHA256 6aea0bee95902a13bcf4f13a2873ce00ae6627d5faa681791e88a81f14514a5e
MD5 fa6eec926d2ae3c936c1548d8d4dd9ac
BLAKE2b-256 7e7528cfe05109f55568e0d9c06a165cd8580e19471ba71f31441a96759ec44b

See more details on using hashes here.

File details

Details for the file awscli_plugin_bolt-2.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for awscli_plugin_bolt-2.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d3b88c12252169fedaf07d20609d1d718a12cfc13726ca33944040bd67ece06b
MD5 48860b24db4cd6fd42d26ec204ae39b6
BLAKE2b-256 9a53138df30cec5f68f154572bc43966056d7c1150af03da2c02182dc37629b4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page