From 95da1cadfec9f49295a57c05bff18b4269f73d63 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 11 Feb 2020 20:06:26 -0500 Subject: [PATCH] Correct some validation errors --- main.tf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index 6e077a9..1cfdb06 100644 --- a/main.tf +++ b/main.tf @@ -1,3 +1,7 @@ +variable "server_name" { + description = "Server name used in nginx config" +} + variable "base_url" { description = "Fully qualified https URL of the app" } @@ -33,7 +37,7 @@ variable "region" { } variable "ssh_keys" { - type = "list" + type = list description = "List of ssh public keys to pass to droplet provisioning" } @@ -46,7 +50,7 @@ variable "cert_certificate" { } variable "env" { - type = "map" + type = map description = "Arbitrary *additional* environment variables passed at build time and run time" default = {} } @@ -153,12 +157,12 @@ resource "null_resource" "app_provision" { } provisioner "file" { - source = var.cert_pem_file + content = var.cert_certificate destination = "/tmp/spoke.crt" } provisioner "file" { - source = var.key_pem_file + content = var.cert_private_key destination = "/tmp/spoke.key" }