AWS Lambda invoke transport plugin for HTTPie
Project description
A HTTPie plugin for interacting with AWS Lambdas.
Invoke AWS Lambda directly with all the user-friendliness of HTTPie and without having to utilize API Gateway.
Quick Start
Installation
pip intall httpie-lambda
Usage
Usage is consistent with HTTPie, simply use http+lambda as protocol:
> http http+lambda://flaskexp-test/health
HTTP/1.1 200 OK
Content-Length: 21
Content-Type: application/json
X-Request-ID:
{
"status": "UP"
}
For more comprehensive example such as POST refer to HTTPie usage documentation.
Specify a region or AWS credentials profile:
> env AWS_DEFAULT_REGION=us-west-2 AWS_PROFILE=sukhanov http http+lambda://flaskexp-test/health
HTTP/1.1 200 OK
Content-Length: 21
Content-Type: application/json
X-Request-ID:
{
"status": "UP"
}
For more information on AWS Authentication configuration see lambda-requests.
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
httpie-lambda-0.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for httpie_lambda-0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee557ae8b7383e13724eb0557705991e1dec4b0628fcdef3b742b27727b18d3e |
|
MD5 | eccc6138a4b72a422cd6d64e619d8f79 |
|
BLAKE2b-256 | 37e814315f0b49daf3f65685e386e0d92e1b50fb35ff7e350036b9192b465ff7 |