Providing AWS Credentials
To connect to any of the supported services with the AWS SDK for C++, you must provide
AWS credentials.
The AWS SDKs and CLIs use provider chains to look for AWS credentials in several
different places, including system/user environment variables and local AWS configuration
files.
For details, see Credentials Providers
For related information, see the following:
-
To create a new AWS account, see How do I create and activate a new AWS account
on the AWS Premium Support website. -
To create long-term AWS credentials, see Programmatic access in the AWS General Reference.
-
To create short-term AWS credentials, see Temporary Security Credentials in the AWS Identity and Access Management User Guide.
-
To learn more about supported provider chains, see the AWS Tools and SDKs Shared Configuration and Credentials Reference Guide, specifically:
-
role_arn (corresponds to the
AWS_ROLE_ARN
environment variable) -
web_identity_token_file (corresponds to the
AWS_WEB_IDENTITY_TOKEN_FILE
environment variable) -
role_session_name (corresponds to the
AWS_ROLE_SESSION_NAME
environment variable)
-
To learn more about the
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
environment variable, see IAM Roles for Tasks in the Amazon ECS Developer Guide.