From 1dc208bb477d97c6b0b0670f9bff446799a542c0 Mon Sep 17 00:00:00 2001 From: Aditya Date: Sat, 11 Jul 2026 23:56:22 +0530 Subject: [PATCH] Update create_ec2.sh brief each task --- day03/create_ec2.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/day03/create_ec2.sh b/day03/create_ec2.sh index cb55720..669138e 100644 --- a/day03/create_ec2.sh +++ b/day03/create_ec2.sh @@ -1,13 +1,15 @@ #!/bin/bash set -euo pipefail +#check if AWS CLI already installed or not + check_awscli() { if ! command -v aws &> /dev/null; then echo "AWS CLI is not installed. Please install it first." >&2 exit 1 fi } - +#install AWS CLI install_awscli() { echo "Installing AWS CLI v2 on Linux..." @@ -37,7 +39,7 @@ wait_for_instance() { sleep 10 done } - +# here these $ with 1,2,3,4,5,6 are arguments create_ec2_instance() { local ami_id="$1" local instance_type="$2"