From 5d1b5d42f1170cd53de81cb0ac68ebadf78c550e Mon Sep 17 00:00:00 2001 From: Colin Wilson Date: Wed, 21 Apr 2021 08:03:51 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20output=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE | 2 +- database.tf | 1 - outputs.tf | 6 ++++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 4d43908..2ccb305 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright © 2021 AIGIS Services Ltd +Copyright © 2021 AIGIS Services Ltd, Colin Wilson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/database.tf b/database.tf index 76c585d..eeb97bb 100644 --- a/database.tf +++ b/database.tf @@ -3,7 +3,6 @@ resource "digitalocean_database_user" "dbuser" { name = var.database_user } - resource "digitalocean_database_cluster" "k3s" { name = "k3s-ext-datastore" engine = var.database_engine == "postgres" ? "pg" : "mysql" diff --git a/outputs.tf b/outputs.tf index 905ab4e..d671ee8 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,3 +1,8 @@ +output "api_load_balancer_ip" { + description = "IP address of the API server load balancer" + value = digitalocean_loadbalancer.k3s_lb.ip +} + output "name" { description = "Droplet Name" value = digitalocean_droplet.k3s_server.*.name @@ -23,6 +28,7 @@ output "ipv4_address_private" { value = digitalocean_droplet.k3s_server.*.ipv4_address_private } +# Output should be the Total cost of the droplets provisioned output "price_monthly" { description = "Droplet Monthly Price" value = digitalocean_droplet.k3s_server.*.price_monthly