File tree Expand file tree Collapse file tree
function-app-managed-identity/python/terraform
function-app-storage-http/dotnet/terraform
web-app-cosmosdb-mongodb-api/python/terraform
web-app-managed-identity/python/terraform
web-app-sql-database/python/terraform Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Variables
4- PREFIX=' local '
4+ PREFIX=' funcmi '
55SUFFIX=' test'
66LOCATION=' westeurope'
77MANAGED_IDENTITY_TYPE=' UserAssigned' # SystemAssigned or UserAssigned
@@ -57,17 +57,6 @@ export TF_LOG_PATH="$CURRENT_DIR/terraform-debug.log"
5757echo " [DEBUG] Checking what tflocal does..." echo " [DEBUG] tflocal version: $( $TERRAFORM version 2>&1 | head -1) " echo " [DEBUG] Contents of current directory before init:" ls -la . 2>&1 | head -20
5858echo " [DEBUG] Terraform debug logging enabled: TF_LOG=DEBUG, TF_LOG_PATH=$TF_LOG_PATH "
5959
60- # Clean up any existing Terraform state from previous runs
61- if [[ $ENVIRONMENT == " LocalStack" ]]; then
62- echo " Cleaning up any existing resources from previous runs..."
63- if [ -f " .terraform/terraform.tfstate" ] || [ -f " terraform.tfstate" ]; then
64- $TERRAFORM init -upgrade 2> /dev/null || true
65- $TERRAFORM destroy -auto-approve 2> /dev/null || true
66- rm -f terraform.tfstate* tfplan .terraform.lock.hcl 2> /dev/null || true
67- rm -rf .terraform 2> /dev/null || true
68- fi
69- fi
70-
7160echo " Initializing Terraform..."
7261$TERRAFORM init -upgrade
7362
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Variables
4- PREFIX=' user ' # system or user
4+ PREFIX=' funchttp ' # system or user
55SUFFIX=' test'
66LOCATION=' westeurope'
77CURRENT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
@@ -56,17 +56,6 @@ export TF_LOG_PATH="$CURRENT_DIR/terraform-debug.log"
5656echo " [DEBUG] Checking what tflocal does..." echo " [DEBUG] tflocal version: $( $TERRAFORM version 2>&1 | head -1) " echo " [DEBUG] Contents of current directory before init:" ls -la . 2>&1 | head -20
5757echo " [DEBUG] Terraform debug logging enabled: TF_LOG=DEBUG, TF_LOG_PATH=$TF_LOG_PATH "
5858
59- # Clean up any existing Terraform state from previous runs
60- if [[ $ENVIRONMENT == " LocalStack" ]]; then
61- echo " Cleaning up any existing resources from previous runs..."
62- if [ -f " .terraform/terraform.tfstate" ] || [ -f " terraform.tfstate" ]; then
63- $TERRAFORM init -upgrade 2> /dev/null || true
64- $TERRAFORM destroy -auto-approve 2> /dev/null || true
65- rm -f terraform.tfstate* tfplan .terraform.lock.hcl 2> /dev/null || true
66- rm -rf .terraform 2> /dev/null || true
67- fi
68- fi
69-
7059echo " Initializing Terraform..."
7160$TERRAFORM init -upgrade
7261
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Variables
4- PREFIX=' local '
4+ PREFIX=' webdb '
55SUFFIX=' test'
66LOCATION=' westeurope'
77CURRENT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
@@ -56,17 +56,6 @@ export TF_LOG_PATH="$CURRENT_DIR/terraform-debug.log"
5656echo " [DEBUG] Checking what tflocal does..." echo " [DEBUG] tflocal version: $( $TERRAFORM version 2>&1 | head -1) " echo " [DEBUG] Contents of current directory before init:" ls -la . 2>&1 | head -20
5757echo " [DEBUG] Terraform debug logging enabled: TF_LOG=DEBUG, TF_LOG_PATH=$TF_LOG_PATH "
5858
59- # Clean up any existing Terraform state from previous runs
60- if [[ $ENVIRONMENT == " LocalStack" ]]; then
61- echo " Cleaning up any existing resources from previous runs..."
62- if [ -f " .terraform/terraform.tfstate" ] || [ -f " terraform.tfstate" ]; then
63- $TERRAFORM init -upgrade 2> /dev/null || true
64- $TERRAFORM destroy -auto-approve 2> /dev/null || true
65- rm -f terraform.tfstate* tfplan .terraform.lock.hcl 2> /dev/null || true
66- rm -rf .terraform 2> /dev/null || true
67- fi
68- fi
69-
7059echo " Initializing Terraform..."
7160$TERRAFORM init -upgrade
7261
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Variables
4- PREFIX=' local '
4+ PREFIX=' webmi '
55SUFFIX=' test'
66LOCATION=' westeurope'
77MANAGED_IDENTITY_TYPE=' SystemAssigned' # SystemAssigned or UserAssigned
@@ -57,17 +57,6 @@ export TF_LOG_PATH="$CURRENT_DIR/terraform-debug.log"
5757echo " [DEBUG] Checking what tflocal does..." echo " [DEBUG] tflocal version: $( $TERRAFORM version 2>&1 | head -1) " echo " [DEBUG] Contents of current directory before init:" ls -la . 2>&1 | head -20
5858echo " [DEBUG] Terraform debug logging enabled: TF_LOG=DEBUG, TF_LOG_PATH=$TF_LOG_PATH "
5959
60- # Clean up any existing Terraform state from previous runs
61- if [[ $ENVIRONMENT == " LocalStack" ]]; then
62- echo " Cleaning up any existing resources from previous runs..."
63- if [ -f " .terraform/terraform.tfstate" ] || [ -f " terraform.tfstate" ]; then
64- $TERRAFORM init -upgrade 2> /dev/null || true
65- $TERRAFORM destroy -auto-approve 2> /dev/null || true
66- rm -f terraform.tfstate* tfplan .terraform.lock.hcl 2> /dev/null || true
67- rm -rf .terraform 2> /dev/null || true
68- fi
69- fi
70-
7160echo " Initializing Terraform..."
7261$TERRAFORM init -upgrade
7362
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Variables
4- PREFIX=' local '
4+ PREFIX=' websql '
55SUFFIX=' test'
66LOCATION=' westeurope'
77ADMIN_USER=' sqladmin'
@@ -61,17 +61,6 @@ export TF_LOG_PATH="$CURRENT_DIR/terraform-debug.log"
6161echo " [DEBUG] Checking what tflocal does..." echo " [DEBUG] tflocal version: $( $TERRAFORM version 2>&1 | head -1) " echo " [DEBUG] Contents of current directory before init:" ls -la . 2>&1 | head -20
6262echo " [DEBUG] Terraform debug logging enabled: TF_LOG=DEBUG, TF_LOG_PATH=$TF_LOG_PATH "
6363
64- # Clean up any existing Terraform state from previous runs
65- if [[ $ENVIRONMENT == " LocalStack" ]]; then
66- echo " Cleaning up any existing resources from previous runs..."
67- if [ -f " .terraform/terraform.tfstate" ] || [ -f " terraform.tfstate" ]; then
68- $TERRAFORM init -upgrade 2> /dev/null || true
69- $TERRAFORM destroy -auto-approve 2> /dev/null || true
70- rm -f terraform.tfstate* tfplan .terraform.lock.hcl 2> /dev/null || true
71- rm -rf .terraform 2> /dev/null || true
72- fi
73- fi
74-
7564echo " Initializing Terraform..."
7665$TERRAFORM init -upgrade
7766
You can’t perform that action at this time.
0 commit comments