This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Parâmetros | |
ipAddress=$1 | |
# Baixa todas as zonas | |
zoneids=$(aws route53 --output json list-hosted-zones | jq '.HostedZones[] | "\(.Id)" | ltrimstr("/hostedzone/")' | sed 's/[^0-9|A-Z]//g') | |
# Loop por Zonas | |
for zone in $zoneids |