Skip to content

Commit

Permalink
Merge pull request #313 from MosheFriedland/master
Browse files Browse the repository at this point in the history
Add new `ec2_retries_value` config for  `AWSCloudProvider`
  • Loading branch information
nuwang committed Sep 6, 2023
2 parents 255753c + 0079c7f commit 614a7dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloudbridge/providers/aws/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
3 changes: 3 additions & 0 deletions docs/topics/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``. |
Expand Down

0 comments on commit 614a7dc

Please sign in to comment.