Introduction
When you launch a cloud server, you often need to know details about it or set it up automatically. Instance metadata lets the server learn about itself, like its name or network. User data lets you give instructions to the server to run when it starts, like installing software.
When you want the server to know its own IP address or hostname without manual input
When you want to automatically install software or set configurations when the server starts
When you need to pass secrets or keys securely to the server at launch time
When you want to automate setup tasks like creating users or starting services
When you want to debug or check server details without logging into it