Liking cljdoc? Tell your friends :D

vault-clj-aws

An extension to com.amperity/vault-clj that implements the AWS auth method.

This auth method is in a separate package because it includes a dependency on the AWS Java SDK, which not all clients need or want.

Usage

Add this library to project dependencies alongside the main vault-clj library. For example, with lein:

[com.amperity/vault-clj "2.3.588"]
[com.amperity/vault-clj-aws "2.0.0"]

Log in to Vault using AWS credentials:

=> (require '[vault.auth.aws :as aws])

;; Basic form:
;; Uses the AWS SDK default credentials and default region,
;; and Vault role matching the name of the AWS credentials
=> (aws/login vault-client)

;; Full form:
=> (aws/login vault-client {:role "srv-example" :aws-region "us-west-2" :aws-credentials ,,,})

If the AWS auth method is mounted at a non-default location, call vault.auth.was/with-mount on the Vault client before using it.

Development

Start a REPL with lein repl. Initialize and start the Vault client with (start). The Vault client will be bound to vault-client. See the example code in dev/user.clj.

This uses the VAULT_ADDR environment variable and AWS Java SDK default credentials provider chain.

Can you improve this documentation? These fine people already did:
Brandon Vincent & Colin Lappala
Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close