https://github.com/fly-apps/terraformed-machines
Example of Fly.io machines orchestration with Terraform and DNSimple
https://github.com/fly-apps/terraformed-machines
Last synced: 12 months ago
JSON representation
Example of Fly.io machines orchestration with Terraform and DNSimple
- Host: GitHub
- URL: https://github.com/fly-apps/terraformed-machines
- Owner: fly-apps
- License: bsd-3-clause
- Created: 2022-05-27T16:21:06.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T00:31:05.000Z (over 3 years ago)
- Last Synced: 2025-03-11T03:40:00.555Z (over 1 year ago)
- Language: HCL
- Size: 6.84 KB
- Stars: 14
- Watchers: 8
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform, Fly.io, DNSimple
The [Fly.io Terraform Provider](https://registry.terraform.io/providers/fly-apps/fly) allows orchestration of Fly.io platform resources with other services like DNSimple, AWS, etc.
This example demonstrates how to orchestrate the creation of a fully-functional Fly application with TLS certificates, a custom domain and a public IP address. The VMs running this app are controlled using the low-level [Fly.io Machines API](https://fly.io/docs/reference/machines/). The appropriate DNS entries are added to handle TLS certificate validation and pointing the custom domain to Fly.io.
VMs are deployed in three separate regions. Each region's VM will accept requests from the users closest to them.
## Usage
Install Terraform, then copy `credentials.tfvars.example` to `credentials.tfvars` and fill it in with credentials.
Then run:
```
terraform init
terraform apply -var-file=credentials.tfvars
```