# AWS EC2 instance startup 'MIME' script https://aws.amazon.com/premiumsupport/knowledge-center/execute-user-data-ec2/1# This script will run on every instance restart, not only on first start2# --- DO NOT COPY ABOVE COMMENTS WHEN PASTING INTO USERDATA ---34Content-Type: multipart/mixed; boundary="//"5MIME-Version: 1.067--//8Content-Type: text/cloud-config; charset="us-ascii"9MIME-Version: 1.010Content-Transfer-Encoding: 7bit11Content-Disposition: attachment; filename="cloud-config.txt"1213#cloud-config14cloud_final_modules:15- [scripts-user, always]1617--//18Content-Type: text/x-shellscript; charset="us-ascii"19MIME-Version: 1.020Content-Transfer-Encoding: 7bit21Content-Disposition: attachment; filename="userdata.txt"2223#!/bin/bash24# --- paste contents of userdata.sh here ---25--//262728