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 09:26:18 UTC

[incubator-dlab] branch DLAB-terraform updated: added parameters to dlab cli

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 ae3df6e  added parameters to dlab cli
ae3df6e is described below

commit ae3df6e341bab376572db4cb0cf19ec3aa2352e8
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Tue Jul 9 12:26:10 2019 +0300

    added parameters to dlab cli
---
 infrastructure-provisioning/terraform/bin/terraform-cli.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/terraform/bin/terraform-cli.py b/infrastructure-provisioning/terraform/bin/terraform-cli.py
old mode 100644
new mode 100755
index 9f5ecee..1d8c794
--- a/infrastructure-provisioning/terraform/bin/terraform-cli.py
+++ b/infrastructure-provisioning/terraform/bin/terraform-cli.py
@@ -166,6 +166,12 @@ class AWSSourceBuilder(AbstractDeployBuilder):
     @property
     def cli_args(self):
         return [
+            self.build_str_arg_param('access_key_id',
+                                     'AWS Access Key ID.',
+                                     nargs=None),
+            self.build_str_arg_param('secret_access_key',
+                                     'AWS Secret Access Key.',
+                                     nargs=None),
             self.build_str_arg_param('service_base_name',
                                      'Any infrastructure value (should be '
                                      'unique if multiple SSN\'s have been '
@@ -189,8 +195,10 @@ class AWSSourceBuilder(AbstractDeployBuilder):
                                      'OS type.',
                                      default='debian',
                                      choices=('debian', 'redhat')),
-            self.build_str_arg_param('ami', 'ID of EC2 AMI.'),
-            self.build_str_arg_param('key_name', 'Name of EC2 Key pair.'),
+            self.build_str_arg_param('ami', 'ID of EC2 AMI.',
+                                     nargs=None),
+            self.build_str_arg_param('key_name', 'Name of EC2 Key pair.',
+                                     nargs=None),
             self.build_str_arg_param('region', 'Name of AWS region.',
                                      default='us-west-2'),
             self.build_str_arg_param('zone', 'Name of AWS zone', default='a'),


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