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 bodyIf -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
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)This script provided by Ribose Inc. (GitHub page: Ribose Inc.)
Full text: Apache License