|
@@ -156,23 +156,26 @@ resource "aws_instance" "vmray-server-instance" {
|
|
|
volume_tags = merge( var.standard_tags, var.tags, { Name = "vmray-server" })
|
|
|
}
|
|
|
|
|
|
+# Disabling this since we don't actually use it, but leaving this in here as
|
|
|
+# an example for future engineers, hopefully.
|
|
|
+#
|
|
|
# Secrets example:
|
|
|
# 1. Find the secret
|
|
|
# 2. Get the secret
|
|
|
# 3. Decode the json
|
|
|
-data "aws_secretsmanager_secret" "ubuntu" {
|
|
|
- name = "Ubuntu"
|
|
|
- provider = aws.c2
|
|
|
-}
|
|
|
-
|
|
|
-data "aws_secretsmanager_secret_version" "ubuntu" {
|
|
|
- secret_id = data.aws_secretsmanager_secret.ubuntu.id
|
|
|
- provider = aws.c2
|
|
|
-}
|
|
|
-
|
|
|
-locals {
|
|
|
- secret_ubuntu = jsondecode(data.aws_secretsmanager_secret_version.ubuntu.secret_string)
|
|
|
-}
|
|
|
+#data "aws_secretsmanager_secret" "ubuntu" {
|
|
|
+# name = "Ubuntu"
|
|
|
+# provider = aws.c2
|
|
|
+#}
|
|
|
+#
|
|
|
+#data "aws_secretsmanager_secret_version" "ubuntu" {
|
|
|
+# secret_id = data.aws_secretsmanager_secret.ubuntu.id
|
|
|
+# provider = aws.c2
|
|
|
+#}
|
|
|
+#
|
|
|
+#locals {
|
|
|
+# secret_ubuntu = jsondecode(data.aws_secretsmanager_secret_version.ubuntu.secret_string)
|
|
|
+#}
|
|
|
|
|
|
# Render a multi-part cloud-init config making use of the part
|
|
|
# above, and other source files
|