Using AWS against... AWS: How to control resources using Lambda
There are many ways to administrate resources in your AWS accounts because you have the power of IAC, which means that you can deploy/start/stop any services just using Code. To do it, we usually use templates and CloudFormation or other tools that can enable the interaction with your accounts, maybe directly from a bash console, maybe using AWS pipeline. Using a joke from a friend of mine, it is always funny to use AWS against AWS: this is the case when you need to stop resources that AWS starts and you don't want to pay for unused resources (and you don't have all the scripts to recreate all the instances). Let's see it CONDITION Suppose you have created a simple DocumentDB cluster which you need to stops. You don't have all the ability to recreate the instances each time using external disks as backup. You just stop the cluster when you don't use it. If you wait too much, AWS will restart the cluster (after a week) and you will pay for it, even if you don't...