# aws-signv4-apigateway
Sign your request to invoke Amazon API Gateway REST API Endpoint with Signature Version 4.
Current limitation of this tool: * Support receiving AWS credentials via OS environment variables only. * Invoke Amazon API Gateway REST API in ap-southeast-1 region only.
## Requirements
[Python 3.X.X](https://www.python.org/downloads/)
[Virtualenv](https://virtualenv.pypa.io/en/latest/) (Recommended)
## Installation
There are multiple ways to install this tool. This section will explain to you the options available:
### Using install.sh
The easiest way is to use [install.sh](install.sh). Just download [install.sh](install.sh) to your local machine, add executable permission, and run it! `bash $ curl -o ~/Downloads/install-aws-signv4-apigateway https://raw.githubusercontent.com/rafikurnia/aws-signv4-apigateway/master/install.sh $ chmod +x ~/Downloads/install-aws-signv4-apigateway $ ~/Downloads/install-aws-signv4-apigateway ` [install.sh](install.sh) will: 1. Find your Python3 2. Find your Virtualenv 3. Create a new directory at ~/.aws-signv4-apigateway 4. Create a new virtual environment at the directory 5. Install this tool to the virtual environment 6. Add ~/.aws-signv4-apigateway/bin to your PATH by modifying ~/.bashrc file
### Using pip
You can use pip and virtualenv. Create a new virtual environment, then activate the environment and use this command to install: `bash $ pip install aws-signv4-apigateway `
Or you can do it without virtualenv. sudo most likely be required: `bash $ sudo pip install aws-signv4-apigateway `
## Getting Started
Before using this tool, make sure you set AWS Credentials on your OS Environment Variables: * AWS_ACCESS_KEY_ID * AWS_SECRET_ACCESS_KEY * AWS_SESSION_TOKEN (if you are using temporary credentials such as IAM Role)
`bash $ export AWS_ACCESS_KEY_ID=your_access_key_id $ export AWS_SECRET_ACCESS_KEY=your_secret_access_key `
After that, you can use this tool: `bash $ aws-signv4-apigateway <rest-api-endpoint> `
Or you can use it with tools to assume role like [awsudo](https://github.com/makethunder/awsudo): `bash $ awsudo -u PROFILE_NAME -- aws-signv4-apigateway <rest-api-endpoint> `
## Author
[Rafi Kurnia Putra](https://github.com/rafikurnia)
## License
Apache 2 Licensed. See [LICENSE](LICENSE) for full details.
Metadata
Release files for aws-signv4-apigateway 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aws-signv4-apigateway-0.1.0.tar.gz | 2.7 kB | Without provenance | Details for aws-signv4-apigateway-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aws_signv4_apigateway-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aws_signv4_apigateway-0.1.0-py3-none-any.whl |
Total release size: 8.0 kB
Release files / aws-signv4-apigateway-0.1.0.tar.gz
| Download URL | aws-signv4-apigateway-0.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8443ca76409f7dc041e59bd02f121b2efe5fa82cb9a1e0727deecab1a435ff10
|
|
BLAKE2b-256 checksum How to use checksums |
e20a44c51942cc95de736da1924ccc306076f2a4b0affbae6544953ab8b81e7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.5
|
Release files / aws_signv4_apigateway-0.1.0-py3-none-any.whl
| Download URL | aws_signv4_apigateway-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0c9c3747fcb71ed30e0f1e0c54b1c14ab83d39bef0fd0093ceae6e019b07a28
|
|
BLAKE2b-256 checksum How to use checksums |
51447410e194be5bde45e2a6436823bfa6b3fb3c5b9f8072a5abd67fd92bf7bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.5
|
Security for aws-signv4-apigateway 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.