more things
This commit is contained in:
9
main.tf
9
main.tf
@@ -3,4 +3,13 @@ resource "digitalocean_droplet" "web" {
|
||||
name = "web-1"
|
||||
region = "nyc1"
|
||||
size = "s-1vcpu-1gb-amd"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "foobar" {
|
||||
zone_id = var.cloudflare_zone
|
||||
name = "ide"
|
||||
value = digitalocean_droplet.web.ipv4_address
|
||||
type = "CNAME"
|
||||
ttl = 3600
|
||||
ssh_keys = var.ssh_keys
|
||||
}
|
||||
13
provider.tf
13
provider.tf
@@ -11,19 +11,6 @@ terraform {
|
||||
}
|
||||
}
|
||||
|
||||
variable "do_token" {
|
||||
type = string
|
||||
}
|
||||
variable "cloudflare_email" {
|
||||
type = string
|
||||
}
|
||||
variable "cloudflare_api_key" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "cloudflare_zone" {
|
||||
type = string
|
||||
}
|
||||
|
||||
|
||||
# Configure the DigitalOcean Provider
|
||||
|
||||
Reference in New Issue
Block a user