Closed jandroav closed 2 months ago
Manually Taint the Resources: Before running terraform apply we are running a taint
over the sql endpoint and schema to force its destruction and recreation
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Force recreation by changing the endpoint name dynamically. It will trigger Terraform to destroy the existing resource and create a new one. This will ensure that a new SQL endpoint is created each time you apply the Terraform configuration, as the name will always be unique.
🔧 (auth.tf): Update type assignment formatting for DBX_TOKEN variablefor consistency ✨ (dbsql_endpoint.tf): Add random suffix to endpoint name for uniqueness ♻️ (schema.auto.tfvars): Align TF_VAR_TEST_CATALOG and TF_VAR_TEST_SCHEMA assignments for consistency ♻️ (schema.tf): Refactor type and default assignments for TF_VAR_TEST_SCHEMA, TF_VAR_TEST_CATALOG, and schema_force_destroy variables for consistency