You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/07/09 11:17:57 UTC

[incubator-dlab] branch DLAB-terraform updated: Move target

This is an automated email from the ASF dual-hosted git repository.

omartushevskyi pushed a commit to branch DLAB-terraform
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-terraform by this push:
     new c3eb59c  Move target
     new 07e90ec  Merge pull request #144 from bohdana-kuzmenko/DLAB-terraform-cli
c3eb59c is described below

commit c3eb59c726527847d3297ca0a658edb42a8d5a4f
Author: bohdana_kuzmenko <bo...@gmail.com>
AuthorDate: Tue Jul 9 14:13:31 2019 +0300

    Move target
---
 infrastructure-provisioning/terraform/bin/terraform-cli.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/infrastructure-provisioning/terraform/bin/terraform-cli.py b/infrastructure-provisioning/terraform/bin/terraform-cli.py
index 79074f0..e8e7229 100755
--- a/infrastructure-provisioning/terraform/bin/terraform-cli.py
+++ b/infrastructure-provisioning/terraform/bin/terraform-cli.py
@@ -50,7 +50,7 @@ class TerraformProvider:
              None
         """
         args_str = self.get_args_string(cli_args)
-        self.console_execute('terraform apply {}'.format(args_str))
+        self.console_execute('terraform apply -target module.ssn-k8s {}'.format(args_str))
 
     def destroy(self, cli_args):
         """Run terraform
@@ -61,7 +61,7 @@ class TerraformProvider:
              None
         """
         args_str = self.get_args_string(cli_args)
-        self.console_execute('terraform destroy {}'.format(args_str))
+        self.console_execute('terraform destroy -target module.ssn-k8s {}'.format(args_str))
 
     @staticmethod
     def console_execute(command):
@@ -191,7 +191,6 @@ class AWSSourceBuilder(AbstractDeployBuilder):
     def cli_args(self):
         return [
             self.build_str_arg_param('--action', 'Action', default='deploy'),
-            self.build_str_arg_param('--target', 'Target', default='module.ssn-k8s'),
             self.build_str_arg_param('--access_key_id',
                                      'AWS Access Key ID'),
             self.build_str_arg_param('--secret_access_key',


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org