datacube.utils.aws.get_aws_settings#

datacube.utils.aws.get_aws_settings(profile=None, region_name='auto', aws_unsigned=False, requester_pays=False)[source]#

Compute aws= parameter for set_default_rio_config.

see also datacube.utils.rio.set_default_rio_config

Returns a tuple of: (aws: Dictionary, creds: session credentials from botocore).

Note that credentials are baked in to aws setting dictionary, however since those might be STS credentials they might require refresh hence they are returned from this function separately as well.

Return type

Tuple[Dict[str, Any], Optional[Credentials]]