You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/04/01 14:17:41 UTC
[incubator-dlab] 02/02: [DLAB-1664]: added variable
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1664
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit a911dfb3692b4fac0771f9d924e1de2f8e7566f5
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Apr 1 17:17:22 2020 +0300
[DLAB-1664]: added variable
---
infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf | 1 +
infrastructure-provisioning/terraform/bin/dlab.py | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf b/infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf
index 05370d8..165eb67 100644
--- a/infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf
+++ b/infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf
@@ -90,4 +90,5 @@ variable "application_name" {
variable "delete_images" {
description = "If set to true, delete shared images per endpoint"
type = bool
+ default = false
}
\ No newline at end of file
diff --git a/infrastructure-provisioning/terraform/bin/dlab.py b/infrastructure-provisioning/terraform/bin/dlab.py
index bd24425..701963d 100644
--- a/infrastructure-provisioning/terraform/bin/dlab.py
+++ b/infrastructure-provisioning/terraform/bin/dlab.py
@@ -290,8 +290,9 @@ class TerraformProvider:
logging.info('terraform destroy')
args_str = get_var_args_string(cli_args)
params_str = get_args_string(tf_params)
- command = ('terraform destroy -auto-approve {} {} {}'
- .format(self.no_color, params_str, args_str))
+ delete_images = "-var 'delete_images=true'"
+ command = ('terraform destroy -auto-approve {} {} {} {}'
+ .format(self.no_color, params_str, args_str, delete_images))
logging.info(command)
Console.execute_to_command_line(command)
if not keep_state_file:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org