Skip to content

Commit 5add4a7

Browse files
authored
Instance state check
1 parent 8d471d4 commit 5add4a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hometask2/provision.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ IP_ADDRESS=`aws ec2 describe-instances --instance-ids $INSTANCE_ID --query Reser
4444

4545
# Connect to instance using key pair and public IP
4646
ssh -i "MyKeyPair.pem" ec2-user@$IP_ADDRESS
47+
48+
# Check instance state
49+
aws ec2 describe-instance-status --instance-id $INSTANCE_ID

0 commit comments

Comments
 (0)