Updating the dns with a new test entry

This commit is contained in:
2024-12-08 13:40:31 -08:00
parent a6dc2da7be
commit 68acbe2842
4 changed files with 38 additions and 75 deletions

34
infra/dns/build.sh Normal file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
set -e
opt=$1
plan=tfplan
build_plan() {
echo Generating plan
set -x
terraform plan -var-file variables.tfvars -input=false -out $plan
}
deploy_plan() {
terraform apply $plan
}
init() {
terraform init
}
help_prompt() {
cat <<- EOF
Options: plan deploy help
EOF
}
# Default to building a plan
source ./secrets.sh
case $opt in
plan) build_plan;;
deploy) deploy_plan;;
*) help_prompt;;
esac