Skip to content

Commit

Permalink
drop azure and gcs support for lite version
Browse files Browse the repository at this point in the history
try AWS use only
  • Loading branch information
fujiwara committed Mar 19, 2024
1 parent a6101f8 commit d18867d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 230 deletions.
12 changes: 0 additions & 12 deletions tfstate/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,6 @@ func ReadURL(ctx context.Context, loc string) (*TFState, error) {
case "s3":
key := strings.TrimPrefix(u.Path, "/")
src, err = readS3(ctx, u.Host, key, s3Option{})
case "gs":
key := strings.TrimPrefix(u.Path, "/")
src, err = readGCS(ctx, u.Host, key, "", os.Getenv("GOOGLE_ENCRYPTION_KEY"))
case "azurerm":
split := strings.SplitN(u.Path, "/", 4)

if len(split) < 4 {
err = fmt.Errorf("invalid azurerm url: %s", u.String())
break
}

src, err = readAzureRM(ctx, u.Host, split[1], split[2], split[3], azureRMOption{subscriptionID: u.User.Username()})
case "file":
src, err = os.Open(u.Path)
case "remote":
Expand Down
4 changes: 0 additions & 4 deletions tfstate/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ func strpe(v interface{}) *string {

func readRemoteState(ctx context.Context, b *backend, ws string) (io.ReadCloser, error) {
switch b.Type {
case "gcs":
return readGCSState(ctx, b.Config, ws)
case "azurerm":
return readAzureRMState(ctx, b.Config, ws)
case "s3":
return readS3State(ctx, b.Config, ws)
case "remote":
Expand Down
159 changes: 0 additions & 159 deletions tfstate/remote_azurerm.go

This file was deleted.

55 changes: 0 additions & 55 deletions tfstate/remote_gcs.go

This file was deleted.

0 comments on commit d18867d

Please sign in to comment.