Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (33 loc) · 1.53 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.53 KB

OBSOLETE

This project is no longer maintained.

AWS Request Signing v4 for http-kit

Provides aws4-request, a aws4-signature-providing wrapper for org.httpkit.client/request

Installation

In project.clj:

 (defproject your-project
   :dependencies [[http-kit-aws4 "0.2.0"]])

Usage

(:require [http-kit-aws4.http-kit :refer [aws4-request]])
(aws4-request
  "eu-west-1"
  "iam"
  {:url "https://iam.amazonaws.com/"
   :method :get
   :query-params {"Action" "ListUsers"
                  "Version" "2010-05-08"}})

Credentials

Uses AWS credentials provided run-time by (in order of precedence)

  • AWS ECS Agent, via AWS_CONTAINER_CREDENTIALS_RELATIVE_URI, when running in an ECS container
  • environment variables AWS_ACCESS_KEY_ID etc

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Yleisradio/http-kit-aws4. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

This library is available as open source under the terms of the MIT License.

Acknowledgements

This project was inspired by and modeled after sharetribe/aws-sig4 - a clj-http middleware for signing AWS requests. Thank you.