Skip to content

brahama/aws-export-credentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Export Credentials

To just avoid searching and copy paste in your credentials profiles.

It outputs the commands to export them based on the default profile or a given one.

Usage

Modify the first line for now hardcoded.

const awsProfile = process.argv[2] || "edrans"; // This sets the default profile

npm i

node exportAwsCredentials.js

Your profile (defaults to mine)
export AWS_ACCESS_KEY_ID=ASIE5GVFW6QUBF37HJU2
export AWS_SECRET_ACCESS_KEY=23Is4SFjqGDg0sWiTYSMKDTc6tM9KUiZPRhJKDeY
export AWS_SESSION_TOKEN="FwoGZXIvYXdzEC8aDFre5nFjx5OH8WyBRCKQAnfO/MHgggRXuPpSU9Dt3SGVjHKmj2tmCM/QS5Lvk/h38tUsbV9nPj15h7VtKwj+DHTb3QYYDnwTiPbxq70d89YW3AxsUuupxmiKYAsfmUJSmBJiAHB7XqqnsYBnX7EkFOA4um+57Rxd/ACnZ6fa9gVR4m8u0ePjZgw8nV8A4GbJnPMsZttckplSVGeubW9s9bJYE/gm+ro1fP7KdjiafSntzHy8QTKgGQpd9lyie6JxcXYlts73653DvYZrfXWeXybTZtFhtYIZ9ZffBHbiZRM8u8Oexz2NAVpToZfdP8WsZgFCavPI5qlrMC5T+JBQY49l0XEEpqnKcfgCMlbnJXD4KXRva/x2eJ3QjALz+iG4KM262PMFMiu4SXmfU2falx+c+gRsV1omD221KNN/Z1iDBcCGFNXQFyI6CLuwjsa2oVs8"

Yes, try them! :P

Global Install

If you want to make it simpler and global to use, you can use the binary provided or build it yourself using nexe

npm i nexe -g

nexe exportAwsCredentials.js

ℹ nexe 3.3.2
✔ Already downloaded...
✔ Compiling result
✔ Entry: 'exportAwsCredentials.js' written to: exportAwsCredentials
✔ Finished in 0.503s

About

Shows in console so its easy to export the needed credentials based on the Profile you choose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •