Scripts to use terraform-aws-authenticating-secgroup (support AWS Signature v4)
-method
: "http_method"-awsprofile
: optional name of the aws profile in ~/.aws/credentials to extract access key & secret-credentials
: optional aws keys "aws_access_key:aws_secret_key"-url
: the "/connection" url deployed at Aws Api Gateway using module terraform-aws-authenticating-secgroup-body
: optional file containing the data to include in the request body
If -credentials
is not supplied, the credentials will be extracted from ~/.aws/credentials
With credentials on command line:
bash invoke_it.sh \
-method POST \
-credentials AKIAI53HQ44Fxxx:Kmxk9K1iABKnemz0yd6ccxCxxx \
-url https://xxx.execute-api.xxx.amazonaws.com/dev/connection \
-body file.json
Using credentials from "default" profile of ~/.aws/credentials
bash invoke_it.sh \
-method POST \
-url https://xxx.execute-api.xxx.amazonaws.com/dev/connection \
-body file.json
Using credentials from "staging" profile of ~/.aws/credentials
bash invoke_it.sh \
-method POST \
-awsprofile staging
-url https://xxx.execute-api.xxx.amazonaws.com/dev/connection \
-body file.json
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Write your code and tests
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new pull request
This script provided by Ribose Inc. (GitHub page: Ribose Inc.)
Full text: Apache License