Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18c929c

Browse files
authored
feat: Use open-source Terraform Provider (#403)
This removes our internal Terraform Provider, and opens it to the world!
1 parent bf0ae8f commit 18c929c

File tree

8 files changed

+25
-433
lines changed

8 files changed

+25
-433
lines changed

Makefile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ bin/coderd:
1212
go build -o bin/coderd cmd/coderd/main.go
1313
.PHONY: bin/coderd
1414

15-
bin/terraform-provider-coder:
16-
mkdir -p bin
17-
go build -o bin/terraform-provider-coder cmd/terraform-provider-coder/main.go
18-
.PHONY: bin/terraform-provider-coder
19-
20-
build: site/out bin/coder bin/coderd bin/terraform-provider-coder
15+
build: site/out bin/coder bin/coderd
2116
.PHONY: build
2217

2318
# Runs migrations to output a dump of the database.
@@ -66,11 +61,6 @@ install:
6661
@echo "-- CLI available at $(shell ls $(INSTALL_DIR)/coder*)"
6762
.PHONY: install
6863

69-
install/terraform-provider-coder: bin/terraform-provider-coder
70-
$(eval OS_ARCH := $(shell go env GOOS)_$(shell go env GOARCH))
71-
mkdir -p ~/.terraform.d/plugins/coder.com/internal/coder/0.2/$(OS_ARCH)
72-
cp bin/terraform-provider-coder ~/.terraform.d/plugins/coder.com/internal/coder/0.2/$(OS_ARCH)
73-
7464
peerbroker/proto: peerbroker/proto/peerbroker.proto
7565
protoc \
7666
--go_out=. \

cmd/terraform-provider-coder/main.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ require (
5757
github.com/tabbed/pqtype v0.1.1
5858
github.com/unrolled/secure v1.10.0
5959
github.com/xlab/treeprint v1.1.0
60-
go.opencensus.io v0.23.0
6160
go.uber.org/atomic v1.9.0
6261
go.uber.org/goleak v1.1.12
6362
golang.org/x/crypto v0.0.0-20220214200702-86341886e292
@@ -151,6 +150,7 @@ require (
151150
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
152151
github.com/zclconf/go-cty v1.10.0 // indirect
153152
github.com/zeebo/errs v1.2.2 // indirect
153+
go.opencensus.io v0.23.0 // indirect
154154
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
155155
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
156156
golang.org/x/text v0.3.7 // indirect

provisioner/terraform/provider/provider.go

Lines changed: 0 additions & 182 deletions
This file was deleted.

provisioner/terraform/provider/provider_test.go

Lines changed: 0 additions & 152 deletions
This file was deleted.

0 commit comments

Comments
 (0)