Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faun/infrastructure
Simple configuration for creating a Digital Ocean machine with a DNSimple subdomain using Terraform
https://github.com/faun/infrastructure
Last synced: 20 days ago
JSON representation
Simple configuration for creating a Digital Ocean machine with a DNSimple subdomain using Terraform
- Host: GitHub
- URL: https://github.com/faun/infrastructure
- Owner: faun
- License: mit
- Created: 2016-02-05T01:32:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-16T06:48:40.000Z (over 8 years ago)
- Last Synced: 2023-03-11T09:42:54.031Z (over 1 year ago)
- Language: HCL
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple infrastructure for creating a Digital Ocean machine
### Requirements
- [Terraform](https://www.terraform.io/downloads.html)
- A [digital ocean account](https://m.do.co/c/154d3aaf9ff8)
- A [DNSimple account](https://dnsimple.com/r/f52a00d5100b1b)### Setup
Create a `terraform.tfvars` file at the root of the project with the following keys:
```
dnsimple_email = "[email protected]"
dnsimple_token = "API token from https://dnsimple.com/user"
dnsimple_domain = "domain.tld"
dnsimple_subdomain = "subdomain"
digitalocean_token = "API token from https://cloud.digitalocean.com/settings/api/tokens"
digitalocean_image_name = "image-name-or-image-id"
digitalocean_droplet_name = "droplet-name"
digitalocean_droplet_private_networking = "true" # optional
digitalocean_droplet_size = "512mb"
digitalocean_droplet_region = "sfo1"
ssh_key_id = "12345 id from `tugboat keys` command"
```### Plan infrastructure
See what changes will be made to your server infrastructure on apply.``` sh
make plan
```### Create infrastructure
``` sh
make apply
```### Plan & create infrastructure in one step
``` sh
make# or
make all
```### Destroy
Destroy all server infrastructure created in the step above.
``` sh
make destroy
```### Remove local state
WARNING: This destroys any record of infrastructure state, thereby preventing terraform from managing your infrastructure. Use at your own risk.
``` sh
make clean
```### Destroy server resources and remove any local state
``` sh
make implode
```### License
See [license](./LICENSE)