awscli-plugin-granica
This AWS CLI plugin provides an authentication and authorization solution for accessing Granica securely using the AWS CLI.
It uses the standard AWS CLI configuration to store the URL for accessing Granica. Active profiles disable regular S3 request signing, and instead provide a presigned STS GetCallerIdentity API call to securely authenticate requests using Granica.
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: python3 -m pip install awscli-plugin-granica --user.
Configuration
To configure the plugin after it has been installed, use aws configure:
aws configure set plugins.granica awscli-plugin-granica
aws [--profile PROFILE] configure set granica_custom_domain <Granica custom domain>
aws [--profile PROFILE] configure set region <Region>
For example, to activate a Granica service using an internal load balancer hosted at https://quicksilver.us-east-1.mydomain.mycompany.com for the staging AWS profile, run:
aws --profile staging configure set granica_custom_domain mydomain.mycompany.com
aws --profile staging configure set region us-east-1
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-granica | grep Location:
Release files for awscli-plugin-granica 2.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| awscli-plugin-granica-2.0.6.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| awscli_plugin_granica-2.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 22.3 kB
Release files / awscli-plugin-granica-2.0.6.tar.gz
| Download URL | awscli-plugin-granica-2.0.6.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
791d5f35a1daded5f81d55a02839a1c0ea255ca6176a51d870ffd0dafb6bd949
|
|
BLAKE2b-256 checksum How to use checksums |
15bdb38ef0d439981b37c184d3a226f8cc62524888698eca88b9fe2159de5cd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / awscli_plugin_granica-2.0.6-py2.py3-none-any.whl
| Download URL | awscli_plugin_granica-2.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2a08c98eb8ac4e5f96d91bfcd043205ab02b362de88ea010850c5c29a0c24e60
|
|
BLAKE2b-256 checksum How to use checksums |
d97c636f33f9a188d2047e608b932091b2f51eec77c582f7acfeb67f3a2be116
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|