mirror of
https://github.com/digitalocean/terraform-provider-digitalocean.git
synced 2026-07-29 19:33:14 +00:00
- Go 99.8%
- Shell 0.1%
- Makefile 0.1%
* MDROP-22: add terraform support for microdroplets Add resources and data sources for DigitalOcean MicroDroplets and MicroDroplet images, plus a data source for reading MicroDroplet checkpoints. New: - digitalocean_microdroplet (resource) - digitalocean_microdroplet_image (resource) - digitalocean_microdroplet (data source) - digitalocean_microdroplets (data source, plural) - digitalocean_microdroplet_image (data source) - digitalocean_microdroplet_images (data source, plural) - digitalocean_microdroplet_checkpoints (data source, plural; read-only, since checkpoints are captured automatically by DO when a MicroDroplet pauses) State transitions on the microdroplet resource use the dedicated pause / resume action endpoints exposed by the MicroDroplets API in godo v1.200.0 (which landed on main in #1575), rather than a PATCH on the resource. This matches the doctl implementation. Co-authored-by: Cursor <cursoragent@cursor.com> * MDROP-22: ForceNew on nested auto_pause fields Nested enabled/idle_timeout weren't ForceNew, so edits inside an existing auto_pause block produced RequiresNew=false plans that the Update path silently swallowed (no API endpoint mutates auto_pause in place). Users tuning idle_timeout or disabling auto-pause hit a perpetual diff. Extend RecreateOnAutoPauseChange to cover idle_timeout 5m->10m and enabled true->false so the guard has regression coverage. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .github | ||
| digitalocean | ||
| docs | ||
| examples | ||
| internal | ||
| scripts | ||
| vendor | ||
| .gitignore | ||
| .golangci.yml | ||
| .goreleaser.yml | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| GNUmakefile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
DigitalOcean Terraform Provider
Requirements
Building The Provider
Clone repository to: $GOPATH/src/github.com/digitalocean/terraform-provider-digitalocean
$ mkdir -p $GOPATH/src/github.com/digitalocean; cd $GOPATH/src/github.com/digitalocean
$ git clone git@github.com:digitalocean/terraform-provider-digitalocean
Enter the provider directory and build the provider
$ cd $GOPATH/src/github.com/digitalocean/terraform-provider-digitalocean
$ make build
Using the provider
See the DigitalOcean Provider documentation to get started using the DigitalOcean provider.
Developing the Provider
See CONTRIBUTING.md for information about contributing to this project.