Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The process of stopping AWS services within an Organization Unit when the AWS Budget has been surpassed involves the following steps:

  1. Set up AWS Budgets to monitor the spending of the Organization Unit.

  2. Create an AWS Lambda function that will be triggered by the AWS Budgets event when the budget has been exceeded.

  3. Use the AWS SDK to list all the services running in the Organization Unit.

  4. Filter the list of services based on the AWS Budgets list of services that have exceeded the budget.

  5. Use the AWS SDK to stop the selected services.

  6. Configure the Lambda function to send an email notification to the Organization Unit owner or administrator when services have been stopped.

  7. Set up a scheduled job to periodically run the Lambda function and check the status of the budget.

  8. Monitor the budget regularly and adjust the budget and spending limits as necessary.