How to keep your AWS Keys Safe on your terminal

How to keep your AWS Key Safe on your terminal / Tips from our AWS Hero, Damián Gitto Olguín
  • Clone and install the envchain tool from the sources at Github
  • Create a namespace to store your secure env vars (you can have multiples, one per client, per environment, per project, etc.)
    envchain — set production \
    AWS_ACCESS_KEY_ID \
    AWS_SECRET_ACCESS_KEY \
    AWS_REGION
    Replace production with the name of your environment / AWS account
  • Start using it by adding the prefix
    envchain production aws sts get-caller-identity
  • Optional you can get into a subshell by doing this.
    envchain production bash
    Remember to close the session to remove your secrets from the env vars.

--

--

--

All the important news about Cloud Computing. Let´s stay connected to the future

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Facebook’s new storage system (Delos)

CKA — Kubernetes Certified Administrator Cheatsheet

Change Function To Recurrence Relation

Oracle Editor For Mac

Consume Rest API in Django Web Application

How to Build a Bayesian Calculator in Python

Is Ruby on Rails worth learning in 2020?

Light at the end of the COVID-19 tunnel

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Teracloud

Teracloud

All the important news about Cloud Computing. Let´s stay connected to the future

More from Medium

Monitor your Employee Workstation using AWS Free Tier Services

7 Tips for Building a Multi-Tenant Cloud Service over AWS

A First Look at AWS Cloud WAN

AWS Went Down. Now What?