buttonmen-dev / buttonmen

Buttonmen - an online dice game
Other
16 stars 23 forks source link

Script to teardown AWS resources for a dev site #2921

Closed cgolubi1 closed 6 months ago

cgolubi1 commented 6 months ago

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.]

blackshadowshade commented 6 months ago

This is a new file, appears to be entirely to do with teardown. Merging this now.