user_data_part2.sh 365 B

1234567891011
  1. EOF
  2. /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/root/cw-agent-config.json -s
  3. echo "Download application amazon-s3-resumable-upload.git"
  4. cd /home/ec2-user/ || exit
  5. mkdir amazon-s3-resumable-upload/
  6. chown -R ec2-user:ec2-user amazon-s3-resumable-upload/
  7. cd amazon-s3-resumable-upload || exit
  8. aws s3 sync s3://