Using the `aws-runas` CLI tool with Testfully Vault
The aws-runas CLI tool is a powerful utility that allows you to assume AWS roles and authenticate with AWS services using temporary credentials. Testfully Vault supports integration with aws-runas, enabling you to securely manage your AWS credentials and seamlessly authenticate with AWS services.
How It Works
Let's assume you have an AWS profile called dev_profile that is configured to work with aws-runas. You would run commands similar to the following command to assume a role and authenticate with AWS services:
aws-runas --profile dev_profile aws s3 ls --region us-west-2You want to continue using aws-runas for authentication, but you also want to leverage Testfully Vault for secure credential management. To achieve this, you would do the following:
Authenticate with
aws-runas: Use theaws-runasCLI tool to assume the desired AWS role and obtain temporary credentials. For example,aws-runas dev_profilewill prompt you to authenticate.Configure Testfully Vault: Create a new vault in Testfully Vault and point it to the same AWS profile that you used with
aws-runas, in this case,dev_profile. This will allow Testfully Vault to retrieve the temporary credentials obtained byaws-runasand manage them securely.