AwsAuth#
- class eodag.plugins.authentication.aws_auth.AwsAuth(provider, config)[source]#
AWS authentication plugin
Authentication will use the first valid method within the following ones depending on which parameters are available in the configuration:
auth anonymously using no-sign-request
auth using
aws_profile
auth using
aws_access_key_id
andaws_secret_access_key
(optionallyaws_session_token
)auth using current environment (AWS environment variables and/or
~/aws/*
), will be skipped if AWS credentials are filled in eodag conf
- Parameters:
provider (
str
) – provider nameconfig (
PluginConfig
) –Authentication plugin configuration:
type
(str
) (mandatory): AwsAuthauth_error_code
(int
) (mandatory forcreodias_s3
): which error code is returned in case of an authentication error
- __init__(provider, config)[source]#
- Parameters:
provider (
str
)config (
PluginConfig
)
Methods
__init__
(provider, config)authenticate
()Authenticate
validate_config_credentials
()Validate configured credentials
Attributes
plugins
s3_client