Skip to content

Commit

Permalink
fix region for creation of default vpc
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkpetersen committed Jun 13, 2024
1 parent 1ab5093 commit f639259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ fi
# Check if default VPC exists
if [ $using_default_vpc == true ]; then
echo "Checking if default VPC exists"
found_default_vpc=$(aws ec2 describe-vpcs | jq '.Vpcs[] | select(.IsDefault == true)')
found_default_vpc=$(aws ec2 describe-vpcs --region ${REGION} | jq '.Vpcs[] | select(.IsDefault == true)')
if [ -z "${found_default_vpc}" ]; then
echo "No default VPC found. Please create one before running this script with the following command."
echo "aws ec2 create-default-vpc"
echo "aws ec2 create-default-vpc --region ${REGION}"
echo "or specify your own vpc and subnet with --vpc-id and --subnet-id"
exit
else
Expand Down

0 comments on commit f639259

Please sign in to comment.