Skip to content

Commit 4dd5787

Browse files
authored
Add line to "terraform apply" deletion_protection (#2244)
* Add instruction to "terraform apply" deletion_protection * Re-apply Terraform in DeployStack test
1 parent 2c88a0f commit 4dd5787

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: .deploystack/test

+7
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ section_close
174174

175175
# Uncomment the line: "deletion_protection = false"
176176
sed -i "s/# deletion_protection/deletion_protection/g" ${DIR}/main.tf
177+
terraform -chdir="$DIR" apply -auto-approve \
178+
-var gcp_project_id="${PROJECT}" \
179+
-var name="${NAME}" \
180+
-var region="${REGION}" \
181+
-var namespace="${NAMESPACE}" \
182+
-var filepath_manifest="${FILEPATH_MANIFEST}" \
183+
-var memorystore="${MEMORYSTORE}"
177184

178185
terraform -chdir="$DIR" destroy -auto-approve \
179186
-var gcp_project_id="${PROJECT}" \

Diff for: terraform/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ To remove the individual resources created for by Terraform without deleting the
8383
```bash
8484
# Uncomment the line: "deletion_protection = false"
8585
sed -i "s/# deletion_protection/deletion_protection/g" main.tf
86+
87+
# Re-apply the Terraform to update the state
88+
terraform apply
8689
```
8790
8891
1. Run the following command:

0 commit comments

Comments
 (0)