In a Linux ec2 machine has test.sh created.
echo "Hello World" > txt
i want to run this script by using aws command in command prompt. i tried below solution but nothing happen.
aws ec2 run-instances --image-id ami-16d4986e --user-data file:////home/ubuntu/test.sh