Lightsail launch script not working when creating instance from manual snapshot

0

Hi there, this question is for Lightsail. I have a snapshot of an instance that I created manually, when I try to create a new instance from it, the launch script doesn't seem to trigger at all. I've tried it using both the web interface as well as the SDK. My launch script works when creating a new instance from scratch, but just not when creating from an existing snapshot.

All I'm doing right now is just:

sudo touch 1234.txt

and that doesn't even work. Any help would be appreciated, thank you!

質問済み 2年前228ビュー
1回答
0

Snapshot retains the state of the running instance. When creating an instance from a snapshot, you have to option to add the launch script. Refer to Step 4 in the document - https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-how-to-create-instance-from-snapshot

--Syd

profile picture
Syd
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ