This is just a script for me to use to teardown a dev site once we're done testing with it --- it cleans up ECS tasks (which cost money), ECS services (which are confusing to have lying around in the cluster), and ECR repositories (which cost money). It doesn't bother to remove DNS entries or ECS task definitions, which i believe are not billed at any scale we're likely to hit, and which aren't in the way.
Before tearing anything down, it downloads the most recent DB backup of the dev site, in case we need it for anything later.
[I tested it by using it to tear down the dev-cgolubi1-2908_remote_db site.]
This is just a script for me to use to teardown a dev site once we're done testing with it --- it cleans up ECS tasks (which cost money), ECS services (which are confusing to have lying around in the cluster), and ECR repositories (which cost money). It doesn't bother to remove DNS entries or ECS task definitions, which i believe are not billed at any scale we're likely to hit, and which aren't in the way.
Before tearing anything down, it downloads the most recent DB backup of the dev site, in case we need it for anything later.
[I tested it by using it to tear down the dev-cgolubi1-2908_remote_db site.]