2025-03-28 10:35:11 +08:00
|
|
|
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
|
|
|
|
2021-02-24 15:10:14 +08:00
|
|
|
# AWS EC2 instance startup 'MIME' script https://aws.amazon.com/premiumsupport/knowledge-center/execute-user-data-ec2/
|
|
|
|
# This script will run on every instance restart, not only on first start
|
|
|
|
# --- DO NOT COPY ABOVE COMMENTS WHEN PASTING INTO USERDATA ---
|
|
|
|
|
|
|
|
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
|
|
|
|
Content-Disposition: attachment; filename="cloud-config.txt"
|
|
|
|
|
|
|
|
#cloud-config
|
|
|
|
cloud_final_modules:
|
|
|
|
- [scripts-user, always]
|
|
|
|
|
|
|
|
--//
|
|
|
|
Content-Type: text/x-shellscript; charset="us-ascii"
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Transfer-Encoding: 7bit
|
|
|
|
Content-Disposition: attachment; filename="userdata.txt"
|
|
|
|
|
|
|
|
#!/bin/bash
|
|
|
|
# --- paste contents of userdata.sh here ---
|
|
|
|
--//
|