Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for AWS Budget with CloudFormation
Jorge Tovar
Jorge Tovar

Posted on

     

AWS Budget with CloudFormation

Creating an AWS budget is a crucial step when starting a new AWS account or project in the cloud. It helps to ensure that your AWS spending aligns with your current business goals and prevents unexpected costs from affecting your budget.

While many tutorials focus on manual budget creation, there's an even better solution for those who prioritize automation. By utilizing an AWS budget, you can set custom cost thresholds for your AWS accounts, and receive notifications when actual costs exceed the budgeted amount. This allows for efficient cost management and ensures that your AWS usage stays within your desired budget

Go to CloudFormation:

Image description

Save & Load the template from the PC

AWSTemplateFormatVersion:"2010-09-09"Description:"Minimal-SpendBudget"Parameters:Email:Type:StringDescription:Please enter the email address to which budget notifications should be addressed.Resources:BasicBudget:Type:"AWS::Budgets::Budget"Properties:Budget:BudgetLimit:Amount:10Unit:USDTimeUnit:MONTHLYBudgetType:COSTNotificationsWithSubscribers:-Notification:NotificationType:ACTUALComparisonOperator:GREATER_THANThreshold:99Subscribers:-SubscriptionType:EMAILAddress:!RefEmail-Notification:NotificationType:ACTUALComparisonOperator:GREATER_THANThreshold:50Subscribers:-SubscriptionType:EMAILAddress:!RefEmail-Notification:NotificationType:ACTUALComparisonOperator:GREATER_THANThreshold:10Subscribers:-SubscriptionType:EMAILAddress:!RefEmailOutputs:BudgetId:Value:!RefBasicBudget
Enter fullscreen modeExit fullscreen mode

Validate Creation

Image description

Budget result 🚀

Image description

Conclusion

Overall, having an AWS budget can help you better understand and control your AWS costs, and can help you make informed decisions about how to use AWS resources

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software Architect | 🚀 Startups | ☁️ AWS Cloud
  • Location
    Bogotá, Colombia
  • Education
    Universidad de los Andes, Colombia
  • Work
    Software Architect
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp