New feature (non-breaking change which adds functionality)
Description
Adds an authenticated call to aws as part of setCredential which returns the account the calling identity belongs to
Use this return to both initialise authentication early and to also make sure the account matches the account that hamlet is trying to use
Motivation and Context
primary motivation is https://github.com/hamlet-io/executor-bash/issues/200 which raised an issue with deployments being triggered in wrong accounts if an MFA token is entered wrong or an aws config profile is missing
Intent of Change
Description
Motivation and Context
primary motivation is https://github.com/hamlet-io/executor-bash/issues/200 which raised an issue with deployments being triggered in wrong accounts if an MFA token is entered wrong or an aws config profile is missing
How Has This Been Tested?
Tested locally
Related Changes
Prerequisite PRs:
Dependent PRs:
Consumer Actions: