Nxtra / aws-billing-alarms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Billing Alarm CloudFormation Template

Use this template to set up billing alarms in your AWS account. You will receive billing alarms to your email and your phone number.

Important: Can only be deployed in eu-east-1, since SMS endpoint subscription is only supported in this region.

Todo:

  1. Change email to your email
  2. Change phone number to your phone number
  3. Under Mappings set appropriate values for thresholds
  4. Upload your file and create your stack
    aws cloudformation deploy --template template.yaml --stack-name billing-alerts --capabilities CAPABILITY_IAM --region us-east-1 --parameter-overrides Email=YOUR_EMAIL Phone=YOUR_PHONE_NUMBER
    
  5. Once the stack is created, go to your email account and verify your email address (you should get an email from SNS)
  6. Test if everything works correctly, go to SNS and publish a message to your Topic
  7. Under Billing > Billing preferences > Activate Receive Billing Alerts feature

You should now receive automated billing alarms to your inbox and your phone.

Have fun!

About

License:MIT License