Note - AWS profile needs to be set up for the script to access aws services
eg:
.aws/config
[yourprofile]
region = eu-west-2
output = json
.aws/credentials
[yourprofile]
aws_access_key_id = <your access key>
aws_secret_access_key = <your secret access key>