diff options
| author | Paul Buetow <paul@buetow.org> | 2023-12-27 09:59:52 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-12-27 09:59:52 +0200 |
| commit | 481a752f2a9a2e2ca220eaa00ce22faeb588d2c9 (patch) | |
| tree | 831516356dc31958ecda2afe3f2c222f0442366c /org-buetow-base | |
| parent | 688925b3e6619ce89e026df69b622318c9569e36 (diff) | |
add buetow.private dns zone. initial postgres.
Diffstat (limited to 'org-buetow-base')
| -rw-r--r-- | org-buetow-base/data.tf | 4 | ||||
| -rw-r--r-- | org-buetow-base/outputs.tf | 4 | ||||
| -rw-r--r-- | org-buetow-base/zones.tf | 12 |
3 files changed, 16 insertions, 4 deletions
diff --git a/org-buetow-base/data.tf b/org-buetow-base/data.tf deleted file mode 100644 index b86bfe3..0000000 --- a/org-buetow-base/data.tf +++ /dev/null @@ -1,4 +0,0 @@ -data "aws_route53_zone" "buetow_cloud" { - name = "buetow.cloud." - private_zone = false -} diff --git a/org-buetow-base/outputs.tf b/org-buetow-base/outputs.tf index 21a1821..48d5d08 100644 --- a/org-buetow-base/outputs.tf +++ b/org-buetow-base/outputs.tf @@ -34,6 +34,10 @@ output "buetow_cloud_zone_id" { value = data.aws_route53_zone.buetow_cloud.zone_id } +output "buetow_private_zone_id" { + value = aws_route53_zone.buetow_private.zone_id +} + output "buetow_cloud_certificate_arn" { value = "arn:aws:acm:eu-central-1:634617747016:certificate/fbf5627c-9a4c-4c62-9c33-038e140f3f12" } diff --git a/org-buetow-base/zones.tf b/org-buetow-base/zones.tf new file mode 100644 index 0000000..ce8f064 --- /dev/null +++ b/org-buetow-base/zones.tf @@ -0,0 +1,12 @@ +data "aws_route53_zone" "buetow_cloud" { + name = "buetow.cloud." + private_zone = false +} + +resource "aws_route53_zone" "buetow_private" { + name = "buetow.private" + + vpc { + vpc_id = aws_vpc.vpc.id + } +} |
