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.
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.