migrate dns to TF 1.x (#177)

This commit is contained in:
Max
2022-01-10 15:06:19 +01:00
committed by GitHub
parent 03a01019e4
commit 2776907d98
3 changed files with 30 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ projects:
terraform_version: 1.1.2
- name: dns
dir: terraform/wifi-289708231103/dns
terraform_version: 1.1.2
- name: tip-wifi-vpn
dir: terraform/wifi-289708231103/tip-wifi-vpn
terraform_version: 1.1.2

View File

@@ -0,0 +1,21 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/aws" {
version = "3.70.0"
constraints = ">= 2.53.0, >= 2.59.0"
hashes = [
"h1:E5IKHXzPGGSizZM5rHKzNCzpwQ7lWPXmmJnms82uzDk=",
"zh:0af710e528e21b930899f0ac295b0ceef8ad7b623dd8f38e92c8ec4bc7af0321",
"zh:4cabcd4519c0aae474d91ae67a8e3a4a8c39c3945c289a9cf7c1409f64409abe",
"zh:58da1a436facb4e4f95cd2870d211ed7bcb8cf721a4a61970aa8da191665f2aa",
"zh:6465339475c1cd3c16a5c8fee61304dcad2c4a27740687d29c6cdc90d2e6423d",
"zh:7a821ed053c355d70ebe33185590953fa5c364c1f3d66fe3f9b4aba3961646b1",
"zh:7c3656cc9cc1739dcb298e7930c9a76ccfce738d2070841d7e6c62fbdae74eef",
"zh:9d9da9e3c60a0c977e156da8590f36a219ae91994bb3df5a1208de2ab3ceeba7",
"zh:a3138817c86bf3e4dca7fd3a92e099cd1bf1d45ee7c7cc9e9773ba04fc3b315a",
"zh:a8603044e935dfb3cb9319a46d26276162c6aea75e02c4827232f9c6029a3182",
"zh:aef9482332bf43d0b73317f5909dec9e95b983c67b10d72e75eacc7c4f37d084",
"zh:fc3f3cad84f2eebe566dd0b65904c934093007323b9b85e73d9dd4535ceeb29d",
]
}

View File

@@ -1,16 +1,14 @@
provider "aws" {
version = ">= 2.59.0"
region = var.aws_region
region = var.aws_region
}
provider "aws" {
alias = "acm"
version = ">= 2.59.0"
region = var.aws_acm_region
alias = "acm"
region = var.aws_acm_region
}
terraform {
required_version = ">= 0.12.2, < 0.14"
required_version = ">= 1.0.0, < 2.0.0"
backend "s3" {
region = "us-east-1"
@@ -33,10 +31,12 @@ resource "aws_route53_zone" "main" {
}
module "acm" {
source = "terraform-aws-modules/acm/aws"
version = "~> 3.0"
providers = {
aws = aws.acm
}
source = "git::https://github.com/terraform-aws-modules/terraform-aws-acm?ref=v2.9.0"
domain_name = var.main_zone_name
zone_id = aws_route53_zone.main.zone_id
@@ -60,5 +60,5 @@ output "zone_name" {
}
output "certificate_arn" {
value = module.acm.this_acm_certificate_arn
value = module.acm.acm_certificate_arn
}