Delete web-server host

This commit is contained in:
Jeremy Dormitzer 2021-01-09 15:11:27 -05:00
parent 4cce60af67
commit 33651cdc8f
6 changed files with 0 additions and 52 deletions

View File

@ -1 +0,0 @@
export ANSIBLE_INVENTORY="$(expand_path hosts.ini)"

View File

@ -1,2 +0,0 @@
jeremydormitzer.com
wallabag.jeremydormitzer.com

View File

@ -1,13 +0,0 @@
provider "digitalocean" {
token = var.do_token
spaces_access_id = var.spaces_access_id
spaces_secret_key = var.spaces_secret_key
}
resource "digitalocean_droplet" "jdormit_website" {
name = "web-server"
image = "50901536"
region = "nyc1"
size = "s-1vcpu-1gb"
backups = true
}

View File

@ -1,7 +0,0 @@
output "jdormit_website_ip_address" {
value = digitalocean_droplet.jdormit_website.ipv4_address
}
output "jdormit_website_urn" {
value = digitalocean_droplet.jdormit_website.urn
}

View File

@ -1,18 +0,0 @@
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.3.0"
}
}
backend "s3" {
skip_credentials_validation = true
skip_metadata_api_check = true
# Need to specify an AWS region to stop Terraform complaining
region = "us-east-1"
endpoint = "nyc3.digitaloceanspaces.com"
bucket = "jdormit-tf-state"
key = "prod/web-server.tfstate"
}
}

View File

@ -1,11 +0,0 @@
variable "do_token" {
type = string
}
variable "spaces_access_id" {
type = string
}
variable "spaces_secret_key" {
type = string
}