Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーデータ スクリプトは、起動ごとに実行するように設定されたスクリプトの前または後に実行されますか? 優先度を変更する方法はありますか?
ユーザーデータ スクリプトは/etc/init.d/cloud-init-user-scripts、起動とシャットダウンの両方の優先度が "99" (最後の実行を意味する) で実行されます。init.d スクリプトで指定された新しい優先度で新しい AMI を書き込む以外に、これを変更する方法はありません。
/etc/init.d/cloud-init-user-scripts