🏠cloud-init
Also known as Cloud-Init, cloud-config, #cloud-config, Server User Data
A tool that sets up a new server when it first starts. It reads a file you give it.
Think of it like
Think of it like a note you leave for a new helper. They read it on day one and do every job on the list.
Example
Lucy pastes a cloud-init file into the box when she makes a server. It boots with her key, her user and nginx already in place.
Why it matters
Every new server comes up the same way. There is no clicking and no step left out.
Definition
Example code
yaml
#cloud-config
package_update: true
packages:
- nginx
- fail2banCommon mistake
Key takeaways
- 1First boot. It runs as the server starts.
- 2One file. YAML, starting with #cloud-config.
- 3Same every time. No steps forgotten.