Skip to content

Instantly share code, notes, and snippets.

@sumnulu
Created September 25, 2017 11:40
Show Gist options
  • Save sumnulu/7970ee6028bab01e8b0a32d706d23468 to your computer and use it in GitHub Desktop.
Save sumnulu/7970ee6028bab01e8b0a32d706d23468 to your computer and use it in GitHub Desktop.
Aws için geçici token oluşturmak.
#!/bin/bash
aws sts get-session-token --output text | awk '{printf("export AWS_ACCESS_KEY_ID=\"%s\"\nexport AWS_SECRET_ACCESS_KEY=\"%s\"\nexport AWS_SESSION_TOKEN=\"%s\"\n",$2,$4,$5)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment