3 AWS Keys
(require (planet gh/aws:1:=4/keys)) |
parameter
(public-key) → string?
(public-key key) → void? key : string?
Your AWS public key, a.k.a. “Access ID.”
parameter
(private-key) → string?
(private-key key) → void? key : string?
Your AWS private key, a.k.a. “Secret Key.”
procedure
file : path? = (build-path(find-system-path 'home-dir) ".aws-keys")
Set the parameters public-key and private-key by
reading their values from a plain text file. The file should consist of two
lines:
AWSAccessKeyId=<key> |
AWSSecretKey=<key> |
By default this file is ~/.aws-keys. You probably want to chmod the permissions of this file carefully.
procedure
If either public-key or private-key is "",
calls read-keys. If either is still blank, calls
error with a hopefully helpful reminder about how to set the
parameters.