#!/bin/sh

if [ -z "${AWS_ACCESS_KEY_ID:-}" ]; then
  >&2 echo "Must be run with AWS dev account creds"
  exit 1
fi

aws s3 ls | grep 'gds-paas.*-state' | grep -v 'account-wide' | cut -d '-' -f 5


Add a script to list the developer environments
Add a script to list the developer environments

Sometimes I find myself wondering what people have called their
developer environments. Am I `richt`? Or `towers`? You just have to
know.

It's possible to find out by looking at the names of the state buckets
in S3. This script does that, so people don't have to faff around in the
AWS web console.

[ci skip] - https://github.com/concourse/git-resource#check-check-for-new-commits
