Kiểm Soát Chi Phí AWS Của Bạn

Skip to main content Control Your AWS Costs

TUTORIAL

Overview

In this tutorial, you will learn how to control your costs while exploring AWS service offerings using the AWS Free Tier. In addition, you will learn to use AWS Budgets to set up a cost budget to monitor any costs associated with your usage.

The AWS Free Tier is a discount program that lets you gain free, hands-on experience with AWS products and services. All new AWS accounts include the Free Tier so you don't have to sign up for it, allowing you to try out the services you need to build your workloads from day one. With over 100 services in the Free Tier, you can do lots of exploring at a reasonable cost, or even for free.

Monitoring your service usage and associated costs while you are exploring and scaling your usage of AWS is often cited as a top concern. To make sure you don't exceed the Free Tier usage thresholds and your overall budget, we recommend using AWS Budgets. With the cost control features of AWS Budgets, you can create custom cost budgets that alert you when you exceed your budgeted threshold. In this tutorial, you will learn about the AWS Free Tier offering, discover how AWS Budgets monitors your Free Tier usage by default, and how to create a total monthly cost budget that alerts you when you exceed, or are forecasted to exceed, your budget.

It is a best practice to create a total monthly cost budget for each AWS account you use. AWS Budgets has a Free Tier limit of 62 budget days per month, so creating a single budget falls within the AWS Free Tier limit. As the name implies, AWS Free Tier-eligible service usage is free.

What you will accomplish

In this tutorial, you will learn how to:

  • Understand the Free Tier
  • Review your spend and usage
  • Set up a cost budget

Prerequisites

Before starting this tutorial, you will need:

  • An AWS account: If you don't already have one, follow the Setting Up Your AWS Environment tutorial for a quick overview.

AWS experience

Beginner

Time to complete

10 minutes

Cost to complete

Free Tier eligible

Requires

  • AWS account
  • Recommended browser: The latest version of Chrome or Firefox

[**]Accounts created within the past 24 hours might not yet have access to the services required for this tutorial.

Last updated

Aug 23, 2022

Step 1: Explore the AWS Free Tier

a. Access the AWS Free Tier page

Open the Free Tier page, so you can keep this step-by-step guide open. On the AWS Free Tier page, under the AWS Free Tier Details header, choose the 12 months free link.

Go to the page this step describes >>

AWS Free Tier homepage, with short descriptions of the types of offers available
Close
AWS Free Tier homepage, with short descriptions of the types of offers available

b. Explore 12 months free offers

These free tier offers are only available to new AWS customers, and are available for 12 months following your AWS sign-up date. When your 12 month free usage term expires or if your application use exceeds the tiers, you simply pay standard, pay-as-you-go service rates (see each service page for full pricing details).

Notable offers for the first 12 months following your AWS account sign-up include some level of free usage for Amazon Elastic Compute Cloud (Amazon EC2), Amazon Elastic Block Store (Amazon EBS), Amazon Simple Storage Service (Amazon S3), Amazon Relational Database Service (Amazon RDS), and many other useful services.

Free tier details, with cards representing AWS services available in the 12 months free tier.
Close
Free tier details, with cards representing AWS services available in the 12 months free tier.

c. Access the Always free page

On the AWS Free Tier page, choose the Always free link to view the Always free offers.

AWS Free Tier homepage, with the Always free link highlighted.
Close
AWS Free Tier homepage, with the Always free link highlighted.

d. Explore Always free offers

As the name suggests, these free tier offers do not automatically expire at the end of your 12-month AWS Free Tier term and are available to all AWS customers.

Notable Always free offers include some level of free usage for AWS Lambda, Amazon DynamoDB, Amazon CloudWatch, and many other useful services.

Free tier details, with cards representing AWS services available in the Always free tier.
Close
Free tier details, with cards representing AWS services available in the Always free tier.

e. Access the Free trials page

On the AWS Free Tier page, choose the Free trials link to view the Free trials offers.

AWS Free Tier homepage, with the Free trials link highlighted.
Close
AWS Free Tier homepage, with the Free trials link highlighted.

f. Explore trial offers

Trial offers allow you to use a service for a specified period of time or number of operations. Notable trial offers include Amazon SageMaker, Amazon GuardDuty, Amazon Redshift, and many other useful services.
Free tier details, with cards representing AWS services available in Free trials tier.
Close
Free tier details, with cards representing AWS services available in Free trials tier.

Step 2: Sign up for AWS (or sign in)

There is no additional charge associated with using the AWS Billing Console for this tutorial. The resources you create in this tutorial are Free Tier eligible. The button and link to the right open a new tab so you can follow this tutorial in the AWS console. Sign-up for AWS

Already have an account? Sign-in

Step 3: Review your spend and Free Tier usage

In this step, you will use the AWS Billing Console to review your overall AWS spend and Free Tier usage.

a. Access the billing dashboard

After you have logged in to your account, from the account menu, choose Billing Dashboard.

AWS console homepage, with account dropdown showing "Billing Dashboard" selected.
Close
AWS console homepage, with account dropdown showing "Billing Dashboard" selected.

b. Review your billing dashboard

Once you reach the AWS Billing Dashboard page, you can view a summary of your month-to-date costs in the AWS Summary section, as well as the cost trend for your top five services for the most recent three to six closed billing periods in the Cost trend by top five services section.

AWS Billing Dashboard page showing details in the AWS Summary section.
Close
AWS Billing Dashboard page showing details in the AWS Summary section.

c. Access all your Free Tier usage

To dive deeper into your Free Tier eligible usage, choose Free Tier from the left navigation pane.

AWS Billing Dashboard page showing Free Tier highlighted in the navigation pane.
Close
AWS Billing Dashboard page showing Free Tier highlighted in the navigation pane.

d. Analyze all your Free Tier usage

In the Summary section on the AWS Free Tier page, all of your usage of services in the Free Tier are listed. In addition to your Current usage, your forecasted service usage by the end of the month is detailed in the Forecasted usage column.

In the example screenshot, note that the forecasted usage of EC2 is 2 GB-mo. Exceeding the limit of the Free Tier generally results in a billable charge.

AWS Free Tier page, highlighting EC2 usage in the Summary section.
Close
AWS Free Tier page, highlighting EC2 usage in the Summary section.

e. Modify your AWS Free Tier Usage Limit email alerts

By default, most accounts are automatically opted in to receive AWS Free Tier Usage Limit email alerts when their service usage exceeds 85% of a given Free Tier usage limit. To change who gets these email alerts, choose Billing Preferences from the left navigation bar. To opt other people in to receive Free Tier Usage Alerts, in the Email Address field, add their email address and choose Save preferences.
Billing preferences page, with Receive Free Tier Usage Alerts section highlighted.
Close
Billing preferences page, with Receive Free Tier Usage Alerts section highlighted.

Step 4: Set up a cost budget

In this step, you will set up a cost budget in the AWS Billing Console using AWS Budgets. As part of your cost budget, you will set up three notifications: one for if your costs reach 80% of your budget, one for if your costs are forecasted to exceed your budget, and one if your costs do exceed your budget.

a. Create budget

From the navigation menu on the left, select Budgets then choose Create a budget on the AWS Budgets console page.

AWS Budgets console page, with Create a budget button highlighted.
Close
AWS Budgets console page, with Create a budget button highlighted.

b. Choose budget type

On the Choose budget type page, choose Cost budget under Budget types.

Choose budget type page with Cost budget option selected.
Close
Choose budget type page with Cost budget option selected.

c. Set budget details

On the Set your budget page, edit the Budget name field to read MyMonthlyBudget. In the Set budget amount section, keep the default selections for Period, Budget renewal type, Start month, and Budgeting method. Enter $100 in the Enter your budgeted amount ($) field. In the Budget scope section, you can use these features to create budgets that track costs associated with a particular set of AWS services, linked accounts, tags, or other usage dimensions. For this tutorial, keep these values as the default and choose Next.
Set your budget page with Budget name and Enter your budgeted amount ($) highlighted.
Close
Set your budget page with Budget name and Enter your budgeted amount ($) highlighted.

d. Configure alert for when actual cost exceeds 80% of budget threshold

On the Configure alerts page, you can have AWS Budgets contact you and others by email when budget conditions are met.

Choose Add an alert threshold.

Configure alerts page, with Add an alert threshold button highlighted.
Close
Configure alerts page, with Add an alert threshold button highlighted.

Configure the alert to be triggered when actual costs are greater than 80% of budgeted amount, as shown in the screen shot. Add your email address and the email address of anyone who should receive this alert in the Email recipients field.

Set alert threshold page, with Threshold, Trigger, and Email recipients fields highlighted.
Close
Set alert threshold page, with Threshold, Trigger, and Email recipients fields highlighted.

e. Configure alert for when actual cost exceeds your budget

From the Configure alerts page, choose Add alert threshold.

Configure alerts page, with Add alert threshold button highlighted.
Close
Configure alerts page, with Add alert threshold button highlighted.

Configure this alert to be triggered when forecasted costs are greater than 100% of the budgeted amount, as shown in the screen shot. Add your email address and the email address of anyone who should receive this alert in the Email recipients field.

Set alert threshold page, with Threshold, Trigger, and Email recipients fields highlighted.
Close
Set alert threshold page, with Threshold, Trigger, and Email recipients fields highlighted.

f. Configure alert for when actual costs exceed your budget

From the Configure alerts page, select Add alert threshold.
Configure alerts page, with Add alert threshold button highlighted.
Close
Configure alerts page, with Add alert threshold button highlighted.

Configure this alert to notify you when actual costs are greater than 100% of budgeted amount. Add your email address and the email address of anyone who should receive this alert in the Email recipients field.

Set alert threshold page, with Threshold, Trigger, and Email recipients fields highlighted.
Close
Set alert threshold page, with Threshold, Trigger, and Email recipients fields highlighted.

g. Attach actions (optional)

Choose Next to view the attach actions page.

Set alert threshold page, with next button highlighted.
Close
Set alert threshold page, with next button highlighted.

A budget action allows you to define and trigger cost-saving responses to reinforce a cost-conscious culture. You have the option to attach actions that run whenever your alert threshold has been exceeded, such as stopping an EC2 instance from incurring any further costs. You can select the alerts to which you would like to attach actions, then define these actions.

Attach actions page, with Add Action button highlighted.
Close
Attach actions page, with Add Action button highlighted.

Choose Next to review the budget details on the Review page.

Attach actions page, with Next button highlighted.
Close
Attach actions page, with Next button highlighted.
Review your budget and then choose Create budget to create the budget and alerts. After the budget has been created, you see a list AWS Budgets you have created. It is a best practice to create a total monthly cost budget for each AWS account that you use. You can create up to 62 budget days per month using the AWS Budgets service within the Free Tier limit. After that, you simply pay as you go to create additional budgets.
Review page, with Create budget button highlighted.
Close
Review page, with Create budget button highlighted.

h. Inspect your new budget

To dive deeper into your budget details, select your new budget.

Budget Overview page, with MyMonthlyBudget entry highlighted in the Budgets section.
Close
Budget Overview page, with MyMonthlyBudget entry highlighted in the Budgets section.

From there, you can view your budget details, access a budget performance summary, and inspect your historical budget performance.

MyMonthlyBudget summary page.
Close
MyMonthlyBudget summary page.

Conclusion

Congratulations! You have finished the Control Your AWS Costs tutorial.

You have successfully analyzed your Free Tier usage and have created a total monthly cost budget using AWS Budgets. Using the AWS Billing Console, you can access a number of tools to help you better understand your costs and usage, including AWS Free Tier Usage Limit email alerts and AWS Budgets. The AWS Free Tier enables you to gain free, hands-on experience with AWS products and services.

Continue your journey with AWS by following the next steps section below.

Was this page helpful?

Feedback Close Thank you for your feedback Feedback helps us improve our experience. If you would like to share more details on the feedback, please click the feedback button below. Feedback

Next steps

AWS Billing and Cost Management Documentation

AWS Billing and Cost Management is a web service that provides features that helps you pay your bills and optimize your costs. Amazon Web Services bills your account for usage, which ensures that you pay only for what you use.

Billing and Cost Optimizations Essentials

View the getting started guide for Billing and Cost Optimization Essentials.

Optimize Costs and Gain Visibility into Usage with Amazon S3 Storage Lens

Learn how to create, configure, and navigate an S3 Storage Lens dashboard. Understand the difference between free and advanced metrics and explore some use cases.

Ending Support for Internet Explorer

Got it AWS support for Internet Explorer ends on 07/31/2022. Supported browsers are Chrome, Firefox, Edge, and Safari. Learn more » Got it

Từ khóa » Sử Dụng Aws