Credential Process
Source Credentials from Weep automatically with Credential Process
AWS SDKs have the ability to source credentials from an external process by specifying a command in your AWS config file. You can read more about this feature in the AWS docs.
Read about AWS configuration settings and precedence for information about precedence of credential sources.
Update your ~/.aws/config
file with information about the profile you want to configure, and the role you want weep to assume. Example:
Then just run your application or AWS CLI command with the appropriate profile:
Profiles can also be set in AWS SDKs. For example in boto3
:
Generating Credential Process Commands
Weep can automatically update your AWS config file with profiles for each of your available roles. These profiles are named with the full ARN of the role.
AWS SDKs appear to be analyzing your ~/.aws/config
file on each API call. This could drastically slow you down if your the file is too large.
Last updated