It's a good practice to set up billing alerts when you're first getting started with AWS to avoid unexpected charges than can be caused by forgetting to clean up and remove unused services.
Enable Billing Alerts in "Billing preferences"
- Navigate to My Billing Dashboard > Billing preferences
- Enable "Receive Free Tier Usage Alerts" to receive email alerts when AWS service usage is approaching, or has exceeded, the AWS Free Tier usage limits.
- Enter the Email Address to send the alerts to
- Enable "Receive Billing Alerts" to send billing alerts to via email when your charges reach a specified threshold.
Create a CloudWatch Billing Alarm
- Navigate to CloudWatch > Alarms > Billing
- "Create Alarm"
- Specify the threshold dollar value to trigger an alarm
Here, the dollar threshold value is $10 USD
- Click Next
- Create a new SNS topic for Billing Alerts
- Specify the email address to send Billing Alerts to
- Click "Create topic"
- Click Next
- Set the Alarm Name and Description
- Click Next
- Review the summary of the alarm to be created
- Click Create alarm
The CloudWatch Billing alarm is created. However, we need to confirm the SNS Subscription.
- Click "View SNS Subscriptions"
Confirm the SNS Subscription
- Navigate to Amazon SNS > Subscriptions
We can see that the new SNS subscription is "Pending confirmation"
- Go to the email inbox you designated for alerts and find the email "AWS Notification - Subscription Confirmation"
- Click "Confirm subscription"
You'll now see in Amazon SNS that the subscription has been confirmed