Reputation: 2460
I am currently experimenting with AWS Free Tier. I understand that, for AWS Data Transfer, the following limit applies:
$0 for 100GB of data transfer out to the internet, aggregated globally, each month.
I am using a single EC2 instance in one AWS Region. I wonder if I can configure the instance to automatically stop, once the data transfer out to the internet hits the 100GB limit?
Upvotes: 1
Views: 884
Reputation: 2460
Oookay.. So I figured out how to achieve this. The solution below takes into account the accumulative network bandwidth (Internet OUT) over a month period, as opposed to the moving average retrieved in the CloudWatch.
Upvotes: 2
Reputation: 238101
You could setup AWS CloudWatch Alarm based on NetworkOut metric for your instance. When triggered, the alarm would stop the instance.
Upvotes: 1