about summary refs log tree commit diff
path: root/infra/dns/import
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-07-02T11·48+0100
committerVincent Ambo <tazjin@google.com>2019-07-02T11·48+0100
commita131b3051428d3abe220d172f93d09880b96222f (patch)
tree2ba11e900c675d3d2ad39e713554b3a6e2f10d1d /infra/dns/import
parent1109e449efbc9a0dab8c4e88e07337a318e21f09 (diff)
refactor(infra): Move infrastructure into monorepo structure
Diffstat (limited to 'infra/dns/import')
-rwxr-xr-xinfra/dns/import11
1 files changed, 11 insertions, 0 deletions
diff --git a/infra/dns/import b/infra/dns/import
new file mode 100755
index 000000000000..e79e426b5553
--- /dev/null
+++ b/infra/dns/import
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -ue
+
+# Imports a zone file into a Google Cloud DNS zone of the same name
+readonly ZONE="${1}"
+
+gcloud dns record-sets import "${ZONE}" \
+       --project composite-watch-759 \
+       --zone-file-format \
+       --delete-all-existing \
+       --zone "${ZONE}"