Commit Graph

14 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 1983f96d24
Merge pull request #211 from opencredo/feature/introduce-urn-attribute-to-floatingip
Updates the floating ip resource to expose the urn.
2019-04-15 12:31:23 -04:00
Trent Rosenbaum da54dcddb7 Updates the floating ip resource to expose the urn. 2019-04-15 16:30:42 +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 baf11ca2cc Update all resources and datasources to use new method of accessing the godo client. 2019-01-07 18:48:17 -05:00
Andrew Starr-Bochicchio 8d04e7fd5e Implement separate import function for FIPs. 2018-09-24 16:14:14 -04:00
Andrew Starr-Bochicchio 4449c544e0 Merge branch 'justinbarrick/master' 2018-09-24 15:06:11 -04:00
Justin Barrick b3cf368b67 WIP - addressing code review comments 2018-09-10 04:07:41 +00:00
Tilen Faganel 78a81a8df1
Added missing datasources 2018-09-05 12:47:57 +01:00
Justin Barrick 1218678b80 Allows assigning an already existing floating ip to a droplet via a new resource (fixes #8).
Adds a `digitalocean_floating_ip_assignment` resource so that a floating IP that
already exists can be assigned to a droplet.

I've also added the `ignore_droplet_id` flag to the `digitalocean_floating_ip` so that
the existing floating IP resource can be used to create these IPs.

A new resource was used to prevent circular dependencies.
2018-08-22 01:15:11 +00:00
Andrew Starr-Bochicchio 141501e37a
Merge pull request #109 from terraform-providers/aknuds1/handle-missing-droplet-on-unassign
Handle denial to unassign floating IP from already deleted Droplet
2018-06-28 18:12:40 -04:00
Arve Knudsen 1c0e1d5b0f Handle missing floating IPs (#55) 2018-06-27 15:26:03 -04:00
Arve Knudsen 82b0996791 Handle denial to unassign floating IP from droplet 2017-11-13 18:55:47 +01:00
Jake Champlin ddd64aa789
Transfer digitalocean provider 2017-06-06 11:45:13 -04:00
Renamed from resource_digitalocean_floating_ip.go (Browse further)