From bafe762ac01d16904c18404283027e426e19bc73 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 3 Feb 2021 16:35:48 +0100 Subject: Code reorganization. Moving main code to src, keeping modules in modules/ --- acme/main.tf | 60 ------------------------------------------------------------ 1 file changed, 60 deletions(-) delete mode 100644 acme/main.tf (limited to 'acme/main.tf') diff --git a/acme/main.tf b/acme/main.tf deleted file mode 100644 index c7b91b2..0000000 --- a/acme/main.tf +++ /dev/null @@ -1,60 +0,0 @@ -terraform { - required_providers { - scaleway = { - source = "scaleway/scaleway" - version = "1.17.2" - } - - ansiblevault = { - source = "MeilleursAgents/ansiblevault" - version = "2.2.0" - } - } -} - -variable "ansible_vault_pass" { - type = string -} - -provider "ansiblevault" { - # vault_path = ".vault-password" - vault_pass = var.ansible_vault_pass - root_folder = "." -} - -data "ansiblevault_path" "scaleway_access_key" { - path = "vault/scaleway.yml" - key = "scaleway_access_key" -} -data "ansiblevault_path" "scaleway_secret_key" { - path = "vault/scaleway.yml" - key = "scaleway_secret_key" -} -data "ansiblevault_path" "scaleway_organization" { - path = "vault/scaleway.yml" - key = "scaleway_organization" -} - -provider "scaleway" { - region = "fr-par" - zone = "fr-par-1" - access_key = data.ansiblevault_path.scaleway_access_key.value - secret_key = data.ansiblevault_path.scaleway_secret_key.value - organization_id = data.ansiblevault_path.scaleway_organization.value -} - -# This can also be generated from input objects, but it might be reused between different modules so some control -# over if/when it is generated is required. -resource "google_dns_managed_zone" "acme" { - name = "acme" - dns_name = "machine.acme.com." -} - -module "acme-apps" { - source = "../acme-apps/terraform" - providers = { - scaleway = scaleway - } - - acme_zone = google_dns_managed_zone.acme.name -} -- cgit v1.2.3