https://github.com/raphexion/terraform-yoctohub
https://github.com/raphexion/terraform-yoctohub
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/raphexion/terraform-yoctohub
- Owner: Raphexion
- Created: 2018-08-23T14:29:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-25T06:12:44.000Z (almost 7 years ago)
- Last Synced: 2025-04-01T20:47:20.741Z (2 months ago)
- Language: HCL
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## More information
https://www.digitalocean.com/community/tutorials/how-to-use-terraform-with-digitalocean
## Commands
- terraform plan
## Destroy a single resource
terraform destroy -target digitalocean_droplet.foobar
## raphexion.auto.tfvars
```
do_token = ""
pub_key = "/home/....pub"
pvt_key = "/home/...."
ssh_fingerprint = "c5::9f...."
```## Find volumes and import
```
curl -X GET -H Content-Type: application/json -H Authorization: Bearer ${DO_TOKEN} https://api.digitalocean.com/v2/volumes?region=nyc1
``````
terraform import digitalocean_volume.foobar 96e204c5-......-0242ac110c03
```## .ansible.cfg
[defaults]
host_key_checking = False