Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredentials ¶
func GetCredentials() *credentials.Credentials
GetCredentials returns the instance credentials chain. This is the default chain credentials plus the "rotating shared credentials provider", so credentials will be checked in this order:
- Env vars (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY).
- Shared credentials file (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/create-shared-credentials-file.html) (file at ~/.aws/credentials containing access key id and secret access key).
- EC2 role credentials. This is an IAM role that the user specifies when they launch their EC2 container instance (ie ecsInstanceRole (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/instance_IAM_role.html)).
- Rotating shared credentials file located at /rotatingcreds/credentials
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.