Commit Graph

12 Commits

Author SHA1 Message Date
Paul Stack 655147c103 Upgrade to terraform-plugin-sdk (#321)
* Upgrade to terraform-plugin-sdk

After following the [guide](https://www.terraform.io/docs/extend/plugin-sdk.html#using-tf-sdk-migrator)

Check

```
▶ GO111MODULE=on tf-sdk-migrator check
Checking Go runtime version ...
Go version 1.12.10: OK.
Checking whether provider uses Go modules...
Go modules in use: OK.
Checking version of github.com/hashicorp/terraform-plugin-sdk to determine if provider was already migrated...
Checking version of github.com/hashicorp/terraform used in provider...
Terraform version 0.12.8: OK.
Checking whether provider uses deprecated SDK packages or identifiers...
No imports of deprecated SDK packages or identifiers: OK.

All constraints satisfied. Provider can be migrated to the new SDK.
```

Migrate

```
▶ GO111MODULE=on tf-sdk-migrator migrate
Checking Go runtime version ...
Go version 1.12.10: OK.
Checking whether provider uses Go modules...
Go modules in use: OK.
Checking version of github.com/hashicorp/terraform-plugin-sdk to determine if provider was already migrated...
Checking version of github.com/hashicorp/terraform used in provider...
Terraform version 0.12.8: OK.
Checking whether provider uses deprecated SDK packages or identifiers...
No imports of deprecated SDK packages or identifiers: OK.

All constraints satisfied. Provider can be migrated to the new SDK.

Rewriting provider go.mod file...
Rewriting SDK package imports...
Running `go mod tidy`...
Success! Provider is migrated to github.com/hashicorp/terraform-plugin-sdk v1.1.0.

It looks like this provider vendors dependencies. Don't forget to run `go mod vendor`.
Make sure to review all changes and run all tests.
```

* Fix build under go 1.13.x.
2019-10-22 17:44:03 -04:00
Andrew Starr-Bochicchio c19ed5226a
Merge pull request #214 from opencredo/feature/introduce-urn-attribute-to-loadbalancer
Feature/introduce urn attribute to loadbalancer
2019-04-15 12:41:41 -04:00
Trent Rosenbaum 015852a3fe Updates the Load Balancer resource with a URN attribute. 2019-04-15 12:30:01 +01:00
Thomas Kooi 6383907e19
Normalize case for region attribute across all resources
Fix #208
2019-04-14 13:36:30 +02:00
Andrew Starr-Bochicchio f18a621d03 Add support for enabling PROXY Protocol on Load Balancers. 2019-03-25 18:39:33 -04:00
Andrew Starr-Bochicchio baf11ca2cc Update all resources and datasources to use new method of accessing the godo client. 2019-01-07 18:48:17 -05:00
Tilen Faganel 78a81a8df1
Added missing datasources 2018-09-05 12:47:57 +01:00
Tilen Faganel 5c0b4c445e
Removed a dangling log message 2018-08-30 14:11:59 +01:00
Tilen Faganel eecd675b76
Added basic validation with minor optimizations/fixes to the load balancer resource 2018-08-30 14:06:01 +01:00
Tilen Faganel 6ef90f7ed7
Migrated tags to sets instead of lists and moved the definitions and related functions to a separate global space to be used by all resources that can be tagged 2018-08-28 18:06:17 +01:00
Andrew Starr-Bochicchio 1a5c46a1ac
Add importability for Load Balancers and Certificate. (#104)
* Added importability for load balancer

* Added importability, go fmt'ed

* Added importability for DNS records

* added importability for certificates

* Added import notes for DNS records and load balancers

* Added import tests

* Added random int for test configs

* Added certificates for the test to import

* Fixed docs, added certificate importability on docs

* Make TestAccDigitalOceanCertificate_importBasic pass by reusing certificate generation from resource_digitalocean_certificate_test.go

* Fix importablity of Load Balancer Droplet droplet_ids.

* Revert "Added importability for DNS records"

This reverts commit 94b1f69fe756c862125d0b899d49eca74f7bd591.

* Remove mention of record imports in docs.

* Remove digitalocean/import_digitalocean_record_test.go
2018-06-25 19:38:10 -04:00
Jake Champlin ddd64aa789
Transfer digitalocean provider 2017-06-06 11:45:13 -04:00
Renamed from resource_digitalocean_loadbalancer.go (Browse further)