Complete the code to create a budget with a specified amount.
aws budgets create-budget --account-id 123456789012 --budget '{"BudgetName": "MyBudget", "BudgetLimit": {"Amount": "[1]", "Unit": "USD"}, "TimeUnit": "MONTHLY", "BudgetType": "COST"}'
The Amount field requires a numeric value as a string representing the budget limit. Here, "1000" sets the budget to $1000.
Complete the code to specify the time unit for the budget.
aws budgets create-budget --account-id 123456789012 --budget '{"BudgetName": "MyBudget", "BudgetLimit": {"Amount": "500", "Unit": "USD"}, "TimeUnit": "[1]", "BudgetType": "COST"}'
The TimeUnit defines how often the budget resets. "MONTHLY" means the budget resets every month.
Fix the error in the command to enable cost anomaly detection monitor.
aws ce [1]-anomaly-monitor --monitor-name "MyMonitor" --monitor-type "COST_AND_USAGE"
The correct command to create a cost anomaly detection monitor uses the create-anomaly-monitor action. The word 'create' is the right choice.
Fill both blanks to create a budget notification for when actual cost exceeds a threshold.
aws budgets create-notification --account-id 123456789012 --budget-name "MyBudget" --notification '{"NotificationType": "[1]", "ComparisonOperator": "[2]", "Threshold": 80, "ThresholdType": "PERCENTAGE"}'
The notification triggers when the ACTUAL cost is GREATER_THAN 80% of the budget.
Fill all three blanks to create a cost anomaly subscription with email notification.
aws ce create-anomaly-subscription --subscription-name "MySubscription" --frequency [1] --monitor-arn-list ["[2]"] --subscribers '[{"Address": "[3]", "Type": "EMAIL"}]'
The subscription frequency is set to WEEKLY, the monitor ARN is specified correctly, and the subscriber email is provided.