diff --git a/terraform/__init__.py b/terraform/__init__.py index 20b9fa6..d60ddd8 100644 --- a/terraform/__init__.py +++ b/terraform/__init__.py @@ -12,6 +12,7 @@ class Terraform: self.state = state self.variables = dict() if variables is None else variables self.state_data = None + self.parallelism = 50 def apply(self, targets=None, variables=None): variables = self.variables if variables is None else variables @@ -20,9 +21,7 @@ class Terraform: parameters = [] parameters += self._generate_targets(targets) parameters += self._generate_var_string(variables) - # hard code 30 for splunk aws limit on us-west-2 region, - # todo move this to somewhere else - parameters += ['-parallelism=30'] + parameters += ['-parallelism=%s' % self.parallelism] parameters = \ ['terraform', 'apply', '-state=%s' % self.state] + parameters diff --git a/test.tf b/test/test.tf similarity index 100% rename from test.tf rename to test/test.tf diff --git a/test_terraform.py b/test/test_terraform.py similarity index 100% rename from test_terraform.py rename to test/test_terraform.py