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!

asked 2 years ago257 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions