diff --git a/cloudbridge/providers/aws/provider.py b/cloudbridge/providers/aws/provider.py index ea14f705..f369e41f 100644 --- a/cloudbridge/providers/aws/provider.py +++ b/cloudbridge/providers/aws/provider.py @@ -41,7 +41,11 @@ def __init__(self, config): self.ec2_cfg = { 'use_ssl': self._get_config_value('ec2_is_secure', True), 'verify': self._get_config_value('ec2_validate_certs', True), - 'endpoint_url': self._get_config_value('ec2_endpoint_url') + 'endpoint_url': self._get_config_value('ec2_endpoint_url'), + 'config': Config( + retries={ + 'max_attempts': self._get_config_value('ec2_retries_value', 4), + 'mode': 'standard'}) } self.s3_cfg = { 'use_ssl': self._get_config_value('s3_is_secure', True), diff --git a/docs/topics/setup.rst b/docs/topics/setup.rst index 041babac..04c473c7 100644 --- a/docs/topics/setup.rst +++ b/docs/topics/setup.rst @@ -106,6 +106,9 @@ AWS | ec2_validate_certs | Whether to use SSL certificate verification. Default is | | | ``False``. | +---------------------+--------------------------------------------------------------+ +| ec2_retries_value | The number of retries to configure boto ec2 client with | +| | Default is ``4``. | ++---------------------+--------------------------------------------------------------+ | s3_endpoint_url | Host connection endpoint. Default is ``s3.amazonaws.com``. | +---------------------+--------------------------------------------------------------+ | s3_is_secure | True to use an SSL connection. Default is ``True``. |