Question

Any way to leverage user data init scripts on top of a custom AMI?

Hi,

Wondering if it is possible to leverage the digital ocean droplet user_data field to run custom boot scripts on top of a pre-existing baseline snapshot.

The thinking being, that for setting up remote developer environments, it would be a significant time save to create a snapshot with a bunch of pre-configured libraries, and to follow up with an initialization script when a new developer environment droplet is created.

Unfortunately, at least from my testing, it seems like user_data scripts cannot be run against a snapshot, only a fresh install.

Is this the case, or am I missing something (hoping for the latter 🤞)


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer