Skip to content

Instantly share code, notes, and snippets.

@pvacca
Created May 6, 2020 21:40
Show Gist options
  • Select an option

  • Save pvacca/f623f287f7defb5c92fc6433163f322e to your computer and use it in GitHub Desktop.

Select an option

Save pvacca/f623f287f7defb5c92fc6433163f322e to your computer and use it in GitHub Desktop.
jq AWS Credentials transformation
jq -r '.Credentials | ["export", "AWS_ACCESS_KEY_ID="+.AccessKeyId, "AWS_SECRET_ACCESS_KEY="+.SecretAccessKey, "AWS_SESSION_TOKEN="+.SessionToken] | join(" ")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment