完了確認
「IAMインスタンスプロファイル"handson-cloud9-instance-profile"が存在する。」ことを確認します。
コマンド:
aws iam list-instance-profiles \
--path-prefix "${IAM_INSTANCE_PROFILE_PATH}" \
--query "InstanceProfiles[?InstanceProfileName == \`${IAM_INSTANCE_PROFILE_NAME}\`].InstanceProfileName" \
--output text
結果(例):
handson-cloud9-instance-profile