We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77bfb10 commit 1d86225Copy full SHA for 1d86225
hack/update_route_53.sh
@@ -4,6 +4,8 @@ set -eu
4
zone_name=
5
profile="default"
6
7
+export AWS_DEFAULT_OUTPUT="json"
8
+
9
help() {
10
echo "Continually queries Kubernetes for control plane machines and adds their IP address to an Amazon Route 53"
11
echo "recordset. The recordset name will be cp, and it will be created in the specified zone. If a recordset"
@@ -71,6 +73,7 @@ fi
71
73
72
74
recordset_name="cp.$zone_name"
75
76
+echo "Getting the zone ID from AWS"
77
zone_id=$(aws route53 list-hosted-zones --profile "$profile" | jq -r '.HostedZones[] | select(.Name == "'"$zone_name"'").Id | split("/")[2]')
78
if [[ -n $zone_id ]]
79
then
0 commit comments