#!/bin/bash 

[ -z "$AWS_PROFILE" ] || [ ! -r "$HOME/.aws/credentials" ] && echo "AWS credentials not found"  && exit 1

[ -z "$1" ] && echo "No zone provided (example eu-west-1)" && exit 1 

aws ec2 create-default-subnet --availability-zone ${1}a
aws ec2 create-default-subnet --availability-zone ${1}b
aws ec2 create-default-subnet --availability-zone ${1}c
