bluehalo / yadda

Yet Another Docker Deployment Application
MIT License
4 stars 1 forks source link

added authenticate command for MFA and dotenv for deployments #26

Closed sshah-asymmetrik closed 5 years ago

sshah-asymmetrik commented 5 years ago

Added an 'authenticate' command that takes in one required argument, --token (the user's MFA token), and two optional arguments, --profile (aws credentials profile to use) and --duration (valid time of session credentials).

Obtained credentials are saved in a .env.session file in the project's root directory and ignored by git. This file is overwritten upon each authentication. These environment variables are loaded in when running yadda deploy .

IF the environment variables already exist on the user's system, then this won't work.

I also included a .env.yadda file. I figure we can include build-time variables here.