Ask Your Question
1

What is the process of stopping AWS services within an Organization Unit when the AWS Budget has been surpassed?

asked 2023-05-24 11:29:35 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-24 11:32:01 +0000

scrum gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-24 11:29:35 +0000

Seen: 1 times

Last updated: May 24 '23