Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env bash
access_key_id=$(secret-tool lookup Title aws-access-key-id)
secret_access_key=$(secret-tool lookup Title aws-secret-access-key)
printf "{
\"Version\": 1,
\"AccessKeyId\": \"%s\",
\"SecretAccessKey\": \"%s\"
}" "$access_key_id" "$secret_access_key"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment