https://github.com/tankibaj/terraform-digitalocean-droplet
Provision digitalocean droplet and Cloudflare DNS record using Terraform
https://github.com/tankibaj/terraform-digitalocean-droplet
cloudflare digitalocean terraform
Last synced: 5 months ago
JSON representation
Provision digitalocean droplet and Cloudflare DNS record using Terraform
- Host: GitHub
- URL: https://github.com/tankibaj/terraform-digitalocean-droplet
- Owner: tankibaj
- Created: 2021-03-09T21:17:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-25T17:47:52.000Z (over 3 years ago)
- Last Synced: 2025-02-17T21:36:51.845Z (8 months ago)
- Topics: cloudflare, digitalocean, terraform
- Language: HCL
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Digitalocean Terraform
Provision droplet(s) using Terraform.
## Quickstart
- Environment variables
Generate your digitalocean API token: https://cloud.digitalocean.com/account/api/tokens
```bash
export TF_VAR_do_token='digitalocean_token'
```
- Prepare your working directory for other commands`terraform init`
- Show changes required by the current configuration
`terraform plan`
- Create infrastructure
`terraform apply`
- Destroy previously created infrastructure
`terraform destroy`
- Unset token
`unset TF_VAR_do_token`