株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

–arg <シェルスクリプト内で定義された変数名>

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

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)