diff --git a/backend/init/init.go b/backend/init/init.go index 568418239..3162122ba 100644 --- a/backend/init/init.go +++ b/backend/init/init.go @@ -14,7 +14,7 @@ import ( backendAzure "github.com/hashicorp/terraform/backend/remote-state/azure" backendconsul "github.com/hashicorp/terraform/backend/remote-state/consul" backendetcdv3 "github.com/hashicorp/terraform/backend/remote-state/etcdv3" - backendGCloud "github.com/hashicorp/terraform/backend/remote-state/gcloud" + backendGCS "github.com/hashicorp/terraform/backend/remote-state/gcs" backendinmem "github.com/hashicorp/terraform/backend/remote-state/inmem" backendS3 "github.com/hashicorp/terraform/backend/remote-state/s3" backendSwift "github.com/hashicorp/terraform/backend/remote-state/swift" @@ -48,7 +48,7 @@ func init() { `Warning: "azure" name is deprecated, please use "azurerm"`), "azurerm": func() backend.Backend { return backendAzure.New() }, "etcdv3": func() backend.Backend { return backendetcdv3.New() }, - "gcloud": func() backend.Backend { return backendGCloud.New() }, + "gcs": func() backend.Backend { return backendGCS.New() }, } // Add the legacy remote backends that haven't yet been convertd to diff --git a/backend/remote-state/gcloud/backend.go b/backend/remote-state/gcs/backend.go similarity index 96% rename from backend/remote-state/gcloud/backend.go rename to backend/remote-state/gcs/backend.go index ecfad13a3..57bee6c40 100644 --- a/backend/remote-state/gcloud/backend.go +++ b/backend/remote-state/gcs/backend.go @@ -1,5 +1,5 @@ -// Package gcloud implements remote storage of state on Google Cloud Storage (GCS). -package gcloud +// Package gcs implements remote storage of state on Google Cloud Storage (GCS). +package gcs import ( "context" diff --git a/backend/remote-state/gcloud/backend_state.go b/backend/remote-state/gcs/backend_state.go similarity index 99% rename from backend/remote-state/gcloud/backend_state.go rename to backend/remote-state/gcs/backend_state.go index 38ec7e2d6..510ba0914 100644 --- a/backend/remote-state/gcloud/backend_state.go +++ b/backend/remote-state/gcs/backend_state.go @@ -1,4 +1,4 @@ -package gcloud +package gcs import ( "fmt" diff --git a/backend/remote-state/gcloud/backend_test.go b/backend/remote-state/gcs/backend_test.go similarity index 98% rename from backend/remote-state/gcloud/backend_test.go rename to backend/remote-state/gcs/backend_test.go index c86a5375f..4bc8d6b1d 100644 --- a/backend/remote-state/gcloud/backend_test.go +++ b/backend/remote-state/gcs/backend_test.go @@ -1,4 +1,4 @@ -package gcloud +package gcs import ( "testing" diff --git a/backend/remote-state/gcloud/client.go b/backend/remote-state/gcs/client.go similarity index 99% rename from backend/remote-state/gcloud/client.go rename to backend/remote-state/gcs/client.go index d1eb42d6c..a392c969f 100644 --- a/backend/remote-state/gcloud/client.go +++ b/backend/remote-state/gcs/client.go @@ -1,4 +1,4 @@ -package gcloud +package gcs import ( "encoding/json"