pub struct AwsConfig {
pub config_file: String,
pub shared_credentials_file: String,
pub profile: String,
pub region: Option<String>,
pub sts_regional_endpoints: String,
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub session_token: Option<String>,
pub role_arn: Option<String>,
pub role_session_name: String,
pub external_id: Option<String>,
pub web_identity_token_file: Option<String>,
}
Expand description
Config for aws services.
Fields§
§config_file: String
config_file
will be load from:
- env value: [
AWS_CONFIG_FILE
] - default to:
~/.aws/config
shared_credentials_file
will be loaded from:
- env value: [
AWS_SHARED_CREDENTIALS_FILE
] - default to:
~/.aws/credentials
profile: String
profile
will be loaded from:
- this field if it’s
is_some
- env value: [
AWS_PROFILE
] - default to:
default
region: Option<String>
region
will be loaded from:
- this field if it’s
is_some
- env value: [
AWS_REGION
] - profile config:
region
sts_regional_endpoints: String
sts_regional_endpoints
will be loaded from:
- env value: [
AWS_STS_REGIONAL_ENDPOINTS
] - profile config:
sts_regional_endpoints
- default to
legacy
access_key_id: Option<String>
access_key_id
will be loaded from
- this field if it’s
is_some
- env value: [
AWS_ACCESS_KEY_ID
] - profile config:
aws_access_key_id
secret_access_key: Option<String>
secret_access_key
will be loaded from
- this field if it’s
is_some
- env value: [
AWS_SECRET_ACCESS_KEY
] - profile config:
aws_secret_access_key
session_token: Option<String>
session_token
will be loaded from
- this field if it’s
is_some
- env value: [
AWS_SESSION_TOKEN
] - profile config:
aws_session_token
role_arn: Option<String>
role_arn
value will be load from:
- this field if it’s
is_some
. - env value: [
AWS_ROLE_ARN
] - profile config:
role_arn
role_session_name: String
role_session_name
value will be load from:
- env value: [
AWS_ROLE_SESSION_NAME
] - profile config:
role_session_name
- default to
reqsign
.
external_id: Option<String>
external_id
value will be load from:
- this field if it’s
is_some
. - profile config:
external_id
web_identity_token_file: Option<String>
web_identity_token_file
value will be loaded from:
- this field if it’s
is_some
- env value: [
AWS_WEB_IDENTITY_TOKEN_FILE
] - profile config:
web_identity_token_file