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 年前檢視次數 257 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南