From b7e33717cb658d62bcf5731cc752bdd3e93c3e24 Mon Sep 17 00:00:00 2001 From: David Szabo Date: Mon, 7 Oct 2024 15:57:12 +0200 Subject: [PATCH] CB-27430 Change the data lake created by Express Onboarding to light duty --- aws/quickstart.sh | 13 +++++++++++++ azure/quickstart.sh | 13 +++++++++++++ gcp/quickstart.sh | 13 +++++++++++++ 3 files changed, 39 insertions(+) diff --git a/aws/quickstart.sh b/aws/quickstart.sh index 223ba06..2895863 100644 --- a/aws/quickstart.sh +++ b/aws/quickstart.sh @@ -24,6 +24,7 @@ export TF_VAR_env_tags='{"deploy_tool": "express-tf", "env_prefix": "'"$2"'"}' export TF_VAR_create_vpc_endpoints="false" export TF_VAR_environment_async_creation="true" export TF_VAR_datalake_async_creation="true" +export TF_VAR_datalake_scale="LIGHT_DUTY" # Save TF variables to file output_file="variables.sh" @@ -38,10 +39,22 @@ export TF_VAR_create_vpc_endpoints="${TF_VAR_create_vpc_endpoints}" export TF_VAR_environment_async_creation="${TF_VAR_environment_async_creation}" export TF_VAR_datalake_async_creation="${TF_VAR_datalake_async_creation}" export TF_VAR_ingress_extra_cidrs_and_ports="${TF_VAR_ingress_extra_cidrs_and_ports}" +export TF_VAR_datalake_scale="${TF_VAR_datalake_scale}" +EOF + +destroy_file="destroy.sh" + +cat < $destroy_file +cd cdp-tf-quickstarts/aws + +source variables.sh + +terraform destroy -auto-approve EOF # Make the file executable chmod +x $output_file +chmod +x $destroy_file # Install Terraform curl -fsSL https://releases.hashicorp.com/terraform/1.7.1/terraform_1.7.1_linux_amd64.zip -o terraform.zip diff --git a/azure/quickstart.sh b/azure/quickstart.sh index 1f74c5b..ca58e03 100644 --- a/azure/quickstart.sh +++ b/azure/quickstart.sh @@ -23,6 +23,7 @@ export TF_VAR_ingress_extra_cidrs_and_ports="${6:-"{ cidrs = [\"0.0.0.0/0\"], po export TF_VAR_env_tags='{"deploy_tool": "express-tf", "env_prefix": "'"$2"'"}' export TF_VAR_environment_async_creation="true" export TF_VAR_datalake_async_creation="true" +export TF_VAR_datalake_scale="LIGHT_DUTY" # Save TF variables to file output_file="variables.sh" @@ -36,10 +37,22 @@ export TF_VAR_env_tags="${TF_VAR_env_tags}" export TF_VAR_environment_async_creation="${TF_VAR_environment_async_creation}" export TF_VAR_datalake_async_creation="${TF_VAR_datalake_async_creation}" export TF_VAR_ingress_extra_cidrs_and_ports="${TF_VAR_ingress_extra_cidrs_and_ports}" +export TF_VAR_datalake_scale="${TF_VAR_datalake_scale}" +EOF + +destroy_file="destroy.sh" + +cat < $destroy_file +cd cdp-tf-quickstarts/azure + +source variables.sh + +terraform destroy -auto-approve EOF # Make the file executable chmod +x $output_file +chmod +x $destroy_file # Checkout CDP Quickstart Repository git clone --branch v0.7.2 https://github.com/cloudera-labs/cdp-tf-quickstarts.git diff --git a/gcp/quickstart.sh b/gcp/quickstart.sh index f0c6f94..6d377a3 100644 --- a/gcp/quickstart.sh +++ b/gcp/quickstart.sh @@ -24,6 +24,7 @@ export TF_VAR_ingress_extra_cidrs_and_ports="${7:-"{ cidrs = [\"0.0.0.0/0\"], po export TF_VAR_env_tags='{"deploy_tool": "express-tf", "env_prefix": "'"$2"'"}' export TF_VAR_environment_async_creation="true" export TF_VAR_datalake_async_creation="true" +export TF_VAR_datalake_scale="LIGHT_DUTY" # Save TF variables to file output_file="variables.sh" @@ -38,10 +39,22 @@ export TF_VAR_env_tags="${TF_VAR_env_tags}" export TF_VAR_environment_async_creation="${TF_VAR_environment_async_creation}" export TF_VAR_datalake_async_creation="${TF_VAR_datalake_async_creation}" export TF_VAR_ingress_extra_cidrs_and_ports="${TF_VAR_ingress_extra_cidrs_and_ports}" +export TF_VAR_datalake_scale="${TF_VAR_datalake_scale}" +EOF + +destroy_file="destroy.sh" + +cat < $destroy_file +cd cdp-tf-quickstarts/gcp + +source variables.sh + +terraform destroy -auto-approve EOF # Make the file executable chmod +x $output_file +chmod +x $destroy_file # Checkout CDP Quickstart Repository git clone --branch v0.7.2 https://github.com/cloudera-labs/cdp-tf-quickstarts.git