a b/yolov5/utils/aws/mime.sh
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
5
Content-Type: multipart/mixed; boundary="//"
6
MIME-Version: 1.0
7
8
--//
9
Content-Type: text/cloud-config; charset="us-ascii"
10
MIME-Version: 1.0
11
Content-Transfer-Encoding: 7bit
12
Content-Disposition: attachment; filename="cloud-config.txt"
13
14
#cloud-config
15
cloud_final_modules:
16
- [scripts-user, always]
17
18
--//
19
Content-Type: text/x-shellscript; charset="us-ascii"
20
MIME-Version: 1.0
21
Content-Transfer-Encoding: 7bit
22
Content-Disposition: attachment; filename="userdata.txt"
23
24
#!/bin/bash
25
# --- paste contents of userdata.sh here ---
26
--//