Curl handles AWS Signature Version 4 API requests natively.
How to create AWS Signature Version 4 requests using curl
If an API Gateway is configured to use AWS IAM authorization, curl
provides a seamless integration for HTTP requests.
|
|
In the example, the $url
links to a custom domain that points to an API Gateway.
The --user
argument is given the $AWS_ACCESS_KEY_ID
and $AWS_SECRET_ACCESS_KEY
that links to the AWS IAM user.
The AWS service for invoking an API Gateway is execute-api
. For curl
, the full provider string is required:
--aws-sigv4 "aws:amz:region:service"