AwsAuth

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 and aws_secret_access_key (optionally aws_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 name

  • config (PluginConfig) –

    Authentication plugin configuration:

    • type (str) (mandatory): AwsAuth

    • auth_error_code (int) (mandatory for creodias_s3): which error code is returned in case of an authentication error

__init__(provider, config)[source]#
Parameters:

Methods

__init__(provider, config)

authenticate()

Authenticate

validate_config_credentials()

Validate configured credentials

Attributes

plugins

s3_client