You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/terraform/README.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,40 @@ Defaults in [`main.tf`](main.tf) target local development:
37
37
38
38
You can change `opensearch_url` to your remote OpenSearch endpoint, for example `https://your-cluster.example.com:9200`.
39
39
40
-
If your cluster has security enabled, set username/password via `terraform.tfvars` or CLI flags.
40
+
If your cluster has security enabled, prefer environment variables for credentials in production. `terraform.tfvars` and CLI flags also work, but they are less suitable for secrets.
Avoid `-var` for passwords in production when possible, since command-line arguments can leak into shell history or CI logs.
70
+
71
+
If you use `terraform.tfvars`, make sure it is excluded from version control.
72
+
73
+
Important: this configuration currently stores connection settings in `null_resource` triggers so the destroy-time provisioner can stop the detector job. That means credentials may still be written to Terraform state even when provided via `TF_VAR_...` environment variables.
0 commit comments