From 20277f23fff02df06f9226249796311effedeba6 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 16:11:29 +0100 Subject: [PATCH] feat: add terraform DNS docs --- .gitignore | 1 + docs/dns.md | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.gitignore b/.gitignore index 44f0c69..4c7daf8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /tags.* .direnv .terraform +*.plan diff --git a/docs/dns.md b/docs/dns.md index 0360774..8c1a573 100644 --- a/docs/dns.md +++ b/docs/dns.md @@ -1 +1,23 @@ # Changing DNS entries + +### Initial setup + +Change into the terraform directory and initialize the terraform providers. + +``` +cd terraform +cat ~/.config/triton/profiles.d/lev-1-pub_solar.json | grep keyId +export TRITON_KEY_ID= + +terraform init +``` + +Plan your changes using: +``` +terraform plan -out pub-solar-infra.plan +``` + +After verification, apply your changes with: +``` +terraform apply "pub-solar-infra.plan" +```