完了確認
「VPC"handson-cli-ec2-sg-vpc"にセキュリティグループ"handson-cli-ec2-sg-db-sg"が存在する。」ことを確認します。
コマンド:
aws ec2 describe-security-groups \
  --filter Name=vpc-id,Values=${EC2_VPC_ID} \
    Name=group-name,Values=${EC2_SECURITY_GROUP_NAME} \
  --query 'SecurityGroups[].GroupName' \
  --output text
結果(例):