${VHOST} --validation-method DNS --subject-alternative-names *.${VHOST} while true do sleep 2.5s OPTIONS=`aws acm describe-certificate --certificate-arn ${ARN} | jq .Certificate.DomainValidationOptions` [ `echo ${OPTIONS} | jq 'map(select(.ResourceRecord)) | length'` -gt 0 ] && break; done BATCH=`echo ${OPTIONS} | jq .[0] | jq --arg action UPSERT -f batch.jq` aws route53 change-resource-record-sets --change-batch "${BATCH}" ࢲ࠳بݫੋFDTTFSWJDFTࢤࢿ "$.ੋૐࢲߊәਃ بݫੋࣗਬӂੋૐ ੋૐࢲߊә৮ܐӝ aws acm wait certificate-validated --certificate-arn ${ARN} aws elbv2 add-listener-certificates --listener-arn ${LISTENER} --certificates CertificateArn=${ARN}