aws cli ec2 start1 aws instance start script ### AWS EC2 instance Start #!/bin/bash ec2_server_1="instanceid" ec2_server_2="instanceid" ec2_server_3="instanceid" ec2_server_4="instanceid" ### Instance Start ### for i in $(seq 1 4) do instance_id=$(eval echo "\${ec2_server_${i}}") echo "##### No : ${i}" echo "##### ec2_server_${i} - ${instance_id} : Starting....." aws ec2 start-instances --intance-ids ${instance_id} echo "#### started !!" e.. 2023. 12. 26. 이전 1 다음