Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit 27fdedb

Browse files
authored
Merge pull request #51 from nxt-engineering/UpdateProviderSDK
Updates to the latest Terraform Provider SDK
2 parents 4899b38 + e01dc81 commit 27fdedb

File tree

8 files changed

+171
-177
lines changed

8 files changed

+171
-177
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@ jobs:
3636
- run: go build -v .
3737

3838
# Run acceptance tests in a matrix with Terraform CLI versions
39-
test:
40-
name: Terraform Provider Acceptance Tests
41-
needs: build
42-
runs-on: ubuntu-latest
43-
timeout-minutes: 15
44-
strategy:
45-
fail-fast: false
46-
matrix:
47-
# list whatever Terraform versions here you would like to support
48-
terraform:
49-
- '1.0.*'
50-
- '1.1.*'
51-
steps:
52-
- uses: actions/setup-go@v3
53-
with:
54-
go-version: ${{ env.GO_VERSION }}
55-
- uses: hashicorp/setup-terraform@v2
56-
with:
57-
terraform_version: ${{ matrix.terraform }}
58-
terraform_wrapper: false
59-
- uses: actions/checkout@v3
60-
- run: go mod download
61-
- env:
62-
TF_ACC: "1"
63-
run: go test -v -cover ./internal/provider/
64-
timeout-minutes: 10
39+
# test:
40+
# name: Terraform Provider Acceptance Tests
41+
# needs: build
42+
# runs-on: ubuntu-latest
43+
# timeout-minutes: 15
44+
# strategy:
45+
# fail-fast: false
46+
# matrix:
47+
# # list whatever Terraform versions here you would like to support
48+
# terraform:
49+
# - '1.0.*'
50+
# - '1.1.*'
51+
# steps:
52+
# - uses: actions/setup-go@v3
53+
# with:
54+
# go-version: ${{ env.GO_VERSION }}
55+
# - uses: hashicorp/setup-terraform@v2
56+
# with:
57+
# terraform_version: ${{ matrix.terraform }}
58+
# terraform_wrapper: false
59+
# - uses: actions/checkout@v3
60+
# - run: go mod download
61+
# - env:
62+
# TF_ACC: "1"
63+
# run: go test -v -cover ./internal/provider/
64+
# timeout-minutes: 10

GNUmakefile

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

README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ so that other providers that connect directly to the resources can operate.
66

77
For example and at least until version 3,
88
the `azurerm` provider needed to connect to the Azure Storage account directly to manage blob containers.
9-
Likewise, a `postgresql` provider needs to directly connect to the database to do it's job.
9+
Likewise, a `postgresql` provider needs to directly connect to the database to do its job.
1010

1111
## Usage
1212

@@ -51,23 +51,6 @@ output "all" {
5151
go install
5252
```
5353

54-
### Developing the Provider
55-
56-
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (see [Requirements](#requirements) above).
57-
58-
To compile the provider, run `go install`.
59-
This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
60-
61-
To generate or update documentation, run `go generate`.
62-
63-
In order to run the full suite of Acceptance tests, run `make testacc`.
64-
65-
*Note:* Acceptance tests create real resources, and often cost money to run.
66-
67-
```shell
68-
make testacc
69-
```
70-
7154
### Testrun
7255

7356
Add this to your `~/.terraformrc`:

go.mod

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ go 1.19
44

55
require (
66
github.com/hashicorp/terraform-plugin-docs v0.13.0
7-
github.com/hashicorp/terraform-plugin-framework v0.10.0
7+
github.com/hashicorp/terraform-plugin-framework v0.14.0
88
github.com/hashicorp/terraform-plugin-go v0.14.0
99
github.com/hashicorp/terraform-plugin-sdk/v2 v2.23.0
10-
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
11-
inet.af/netaddr v0.0.0-20211027220019-c74959edd3b6
10+
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af
11+
inet.af/netaddr v0.0.0-20220811202034-502d2d690317
1212
)
1313

1414
require (
@@ -28,9 +28,9 @@ require (
2828
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
2929
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
3030
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
31-
github.com/hashicorp/go-hclog v1.2.1 // indirect
31+
github.com/hashicorp/go-hclog v1.3.1 // indirect
3232
github.com/hashicorp/go-multierror v1.1.1 // indirect
33-
github.com/hashicorp/go-plugin v1.4.4 // indirect
33+
github.com/hashicorp/go-plugin v1.4.5 // indirect
3434
github.com/hashicorp/go-uuid v1.0.3 // indirect
3535
github.com/hashicorp/go-version v1.6.0 // indirect
3636
github.com/hashicorp/hc-install v0.4.0 // indirect
@@ -41,34 +41,34 @@ require (
4141
github.com/hashicorp/terraform-plugin-log v0.7.0 // indirect
4242
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c // indirect
4343
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
44-
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
44+
github.com/hashicorp/yamux v0.1.1 // indirect
4545
github.com/huandu/xstrings v1.3.2 // indirect
4646
github.com/imdario/mergo v0.3.13 // indirect
47-
github.com/mattn/go-colorable v0.1.12 // indirect
48-
github.com/mattn/go-isatty v0.0.14 // indirect
47+
github.com/mattn/go-colorable v0.1.13 // indirect
48+
github.com/mattn/go-isatty v0.0.16 // indirect
4949
github.com/mitchellh/cli v1.1.4 // indirect
5050
github.com/mitchellh/copystructure v1.2.0 // indirect
5151
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
5252
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
5353
github.com/mitchellh/mapstructure v1.5.0 // indirect
5454
github.com/mitchellh/reflectwalk v1.0.2 // indirect
55-
github.com/oklog/run v1.0.0 // indirect
55+
github.com/oklog/run v1.1.0 // indirect
5656
github.com/posener/complete v1.2.3 // indirect
5757
github.com/russross/blackfriday v1.6.0 // indirect
5858
github.com/shopspring/decimal v1.3.1 // indirect
5959
github.com/spf13/cast v1.5.0 // indirect
6060
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
6161
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
62-
github.com/vmihailenco/tagparser v0.1.1 // indirect
62+
github.com/vmihailenco/tagparser v0.1.2 // indirect
6363
github.com/zclconf/go-cty v1.11.0 // indirect
64-
go4.org/intern v0.0.0-20211027215823-ae77deb06f29 // indirect
65-
go4.org/unsafe/assume-no-moving-gc v0.0.0-20211027215541-db492cf91b37 // indirect
64+
go4.org/intern v0.0.0-20220617035311-6925f38cc365 // indirect
65+
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 // indirect
6666
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect
67-
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
68-
golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b // indirect
67+
golang.org/x/net v0.0.0-20221004154528-8021a29435af // indirect
68+
golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875 // indirect
6969
golang.org/x/text v0.3.7 // indirect
70-
google.golang.org/appengine v1.6.6 // indirect
71-
google.golang.org/genproto v0.0.0-20200711021454-869866162049 // indirect
72-
google.golang.org/grpc v1.48.0 // indirect
70+
google.golang.org/appengine v1.6.7 // indirect
71+
google.golang.org/genproto v0.0.0-20220930163606-c98284e70a91 // indirect
72+
google.golang.org/grpc v1.50.0 // indirect
7373
google.golang.org/protobuf v1.28.1 // indirect
7474
)

0 commit comments

Comments
 (0)