mime.sh 780 B

1234567891011121314151617181920212223242526
  1. # AWS EC2 instance startup 'MIME' script https://aws.amazon.com/premiumsupport/knowledge-center/execute-user-data-ec2/
  2. # This script will run on every instance restart, not only on first start
  3. # --- DO NOT COPY ABOVE COMMENTS WHEN PASTING INTO USERDATA ---
  4. Content-Type: multipart/mixed; boundary="//"
  5. MIME-Version: 1.0
  6. --//
  7. Content-Type: text/cloud-config; charset="us-ascii"
  8. MIME-Version: 1.0
  9. Content-Transfer-Encoding: 7bit
  10. Content-Disposition: attachment; filename="cloud-config.txt"
  11. #cloud-config
  12. cloud_final_modules:
  13. - [scripts-user, always]
  14. --//
  15. Content-Type: text/x-shellscript; charset="us-ascii"
  16. MIME-Version: 1.0
  17. Content-Transfer-Encoding: 7bit
  18. Content-Disposition: attachment; filename="userdata.txt"
  19. #!/bin/bash
  20. # --- paste contents of userdata.sh here ---
  21. --//