Using Amazon Budgets to manage costs
Amazon Budgets a feature of Amazon Billing and Cost Management, allows you to set custom budgets that alert you when your costs or usage exceed (or are forecasted to exceed) your budgeted amount.
Creating a budget for CloudTrail by using Amazon Budgets is a recommended best practice, and can help you track your CloudTrail spending. Cost-based budgets help promote awareness of how much you might be billed for your CloudTrail use. Budget alerts notify you when your bill reaches a threshold that you define. When you receive a budget alert, you can make changes before the end of the billing cycle to manage your costs.
Note
Though you can apply tags to CloudTrail trails, Amazon Billing cannot currently use tags applied to trails for cost allocation. Cost Explorer can show costs for CloudTrail Lake event data stores and for the CloudTrail service as a whole.
To get started with Amazon Budgets, open Amazon Billing and Cost Management
Creating user-defined cost allocation tags for CloudTrail Lake event data stores
You can create user-defined cost allocation tags to track the query and ingestion costs for your CloudTrail Lake event data stores. A user-defined cost allocation tag is a key-value pair that you can associate with an event data store. After you activate cost allocation tags, Amazon uses the tags to organize your resource costs on your cost allocation report.
-
To create tags in the console, see step 9 of the To create an event data store for CloudTrail management or data events procedure.
-
To create tags using the CloudTrail API, see CreateEventDataStore and AddTags in the Amazon CloudTrail API Reference.
-
To create tags using the Amazon CLI, see create-event-data-store
and add-tags in the Amazon CLI Command Reference.
For more information about activating tags, see Activating user-defined cost allocation tags.