–arg
1 2 |
ENDPOINT_URL="https://${ENDPOINT_DOMAIN}" aws cloudfront list-distributions --profile ${PROFILE} | jq --arg endpoint ${ENDPOINT_DOMAIN} -r '.DistributionList.Items[] | select( .Aliases.Items[0] == $endpoint)' | jq -r .Id |
–arg
1 2 |
ENDPOINT_URL="https://${ENDPOINT_DOMAIN}" aws cloudfront list-distributions --profile ${PROFILE} | jq --arg endpoint ${ENDPOINT_DOMAIN} -r '.DistributionList.Items[] | select( .Aliases.Items[0] == $endpoint)' | jq -r .Id |