Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipekm/8532d5d1de8fa6f5045703003703fa9b to your computer and use it in GitHub Desktop.
Save felipekm/8532d5d1de8fa6f5045703003703fa9b to your computer and use it in GitHub Desktop.
AWS EC2 Instance User data sample to start a service
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0
--//
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
#cloud-config
cloud_final_modules:
- [scripts-user, always]
--//
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
#!/bin/bash
sudo service pling start
--//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment