From 3f0526b9123438fa662569ae2a1f3addb1a06081 Mon Sep 17 00:00:00 2001 From: Joshua Rodriguez Date: Thu, 12 Sep 2024 03:04:13 -0700 Subject: [PATCH] Change default terraform file name to something better #463 --- backend/internal/terraform/runner.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/internal/terraform/runner.go b/backend/internal/terraform/runner.go index 3572ae8..f16c5ab 100644 --- a/backend/internal/terraform/runner.go +++ b/backend/internal/terraform/runner.go @@ -97,7 +97,8 @@ func (w *wsWriter) Write(p []byte) (n int, err error) { func RunTerraform(appconf *config.AppConfig, wsmgr *ws.WebSocketManager, id string, executor TerraformExecutor, target string) error { bucket := fmt.Sprintf("bucket=%s", appconf.BucketName) - key := fmt.Sprintf("key=%s", "default") + + key := fmt.Sprintf("key=%s-%s-tfstate", appconf.Project, appconf.Venue) region := fmt.Sprintf("region=%s", appconf.AWSRegion) p := filepath.Join(appconf.Workdir, "workspace")