You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/ce.md
+21-24Lines changed: 21 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
---
2
2
title: "Cost Explorer"
3
-
linkTitle: "Cost Explorer"
4
-
description: >
5
-
Get started with Cost Explorer on LocalStack
3
+
description: Get started with Cost Explorer on LocalStack
6
4
tags: ["Ultimate"]
7
5
---
8
6
@@ -13,7 +11,7 @@ Cost Explorer offers options to filter and group data by dimensions such as serv
13
11
With Cost Explorer, you can forecast costs, track budget progress, and set up alerts to receive notifications when spending exceeds predefined thresholds.
14
12
15
13
LocalStack allows you to use the Cost Explorer APIs in your local environment to create and manage cost category definition, cost anomaly monitors & subscriptions.
16
-
The supported APIs are available on our [API coverage page]({{< ref "coverage_ce" >}}), which provides information on the extent of Cost Explorer's integration with LocalStack.
14
+
The supported APIs are available on our [API coverage page](), which provides information on the extent of Cost Explorer's integration with LocalStack.
17
15
18
16
## Getting started
19
17
@@ -27,10 +25,10 @@ We will demonstrate how to mock the Cost Explorer APIs with the AWS CLI.
27
25
You can create a Cost Category definition using the [`CreateCostCategoryDefinition`](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CreateCostCategoryDefinition.html)) API.
28
26
The following example creates a Cost Category definition using an empty rule condition of type "REGULAR":
29
27
30
-
{{< command >}}
31
-
$ awslocal ce create-cost-category-definition --name test \
28
+
```bash
29
+
awslocal ce create-cost-category-definition --name test \
@@ -43,10 +41,10 @@ The following output would be retrieved:
43
41
You can describe the Cost Category definition using the [`DescribeCostCategoryDefinition`](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_DescribeCostCategoryDefinition.html) API.
@@ -72,16 +70,16 @@ The following output would be retrieved:
72
70
You can add an alert subscription to a cost anomaly detection monitor to define subscribers using the [`CreateAnomalySubscription`](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CreateAnomalySubscription.html) API.
73
71
The following example creates a cost anomaly subscription:
74
72
75
-
{{< command >}}
76
-
$ awslocal ce create-anomaly-subscription --anomaly-subscription '{
73
+
```bash
74
+
awslocal ce create-anomaly-subscription --anomaly-subscription '{
77
75
"AccountId": "12345",
78
76
"SubscriptionName": "sub1",
79
77
"Frequency": "DAILY",
80
78
"MonitorArnList": [],
81
79
"Subscribers": [],
82
80
"Threshold": 111
83
81
}'
84
-
{{< /command >}}
82
+
```
85
83
86
84
The following output would be retrieved:
87
85
@@ -94,9 +92,9 @@ The following output would be retrieved:
94
92
You can retrieve the cost anomaly subscriptions using the [`GetAnomalySubscriptions`](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetAnomalySubscriptions.html) API.
95
93
Run the following command:
96
94
97
-
{{< command >}}
98
-
$ awslocal ce get-anomaly-subscriptions
99
-
{{< /command >}}
95
+
```bash
96
+
awslocal ce get-anomaly-subscriptions
97
+
```
100
98
101
99
The following output would be retrieved:
102
100
@@ -121,12 +119,12 @@ The following output would be retrieved:
121
119
You can create a new cost anomaly detection subscription with the requested type and monitor specification using the [`CreateAnomalyMonitor`](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CreateAnomalyMonitor.html) API.
122
120
The following example creates a cost anomaly monitor:
123
121
124
-
{{< command >}}
125
-
$ awslocal ce create-anomaly-monitor --anomaly-monitor '{
122
+
```bash
123
+
awslocal ce create-anomaly-monitor --anomaly-monitor '{
126
124
"MonitorName": "mon5463",
127
125
"MonitorType": "DIMENSIONAL"
128
126
}'
129
-
{{< /command >}}
127
+
```
130
128
131
129
The following output would be retrieved:
132
130
@@ -139,9 +137,9 @@ The following output would be retrieved:
139
137
You can retrieve the cost anomaly monitors using the [`GetAnomalyMonitors`](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetAnomalyMonitors.html) API.
140
138
Run the following command:
141
139
142
-
{{< command >}}
143
-
$ awslocal ce get-anomaly-monitors
144
-
{{< /command >}}
140
+
```bash
141
+
awslocal ce get-anomaly-monitors
142
+
```
145
143
146
144
The following output would be retrieved:
147
145
@@ -162,8 +160,7 @@ The following output would be retrieved:
162
160
The LocalStack Web Application provides a Resource Browser for managing cost category definitions for the Cost Explorer service.
163
161
You can access the Resource Browser by opening the LocalStack Web Application in your browser, navigating to the Resources section, and then clicking on **Cost Explorer** under the **Cloud Financial Management** section.
164
162
165
-
<imgsrc="cost-explorer-resource-browser.png"alt="Cost Explorer Resource Browser"title="Cost Explorer Resource Browser"width="900" />
166
-
<br><br>
163
+

167
164
168
165
The Resource Browser allows you to perform the following actions:
0 commit comments