writeAWSSecret

writeAWSSecret $secretName $profileName

Write Amazon Web Services credentials.

Example secrets.json:

{
  "default-aws": {
    "kind": "Secret",
    "data": {
      "aws_access_key_id": "AKIA.....",
      "aws_secret_access_key": "....."
    }
  }
}

Example invocation:

writeAWSSecret default-aws

Parameters

$secretName

Optional

The name of the secret to read. Must match the attribute name of a secretsMap entry.

Default: aws.

$profileName

Optional

Which profile name to use when appending to ~/.aws/credentials.

Default: default; various AWS clients' default profile.

See also