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 年前258 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则