Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Any way to leverage user data init scripts on top of a custom AMI?
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 🤞)