Skip to content

Instantly share code, notes, and snippets.

@timmyers
Created October 9, 2022 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timmyers/d69a61f85d68505cd33d0630264a0c9b to your computer and use it in GitHub Desktop.
Save timmyers/d69a61f85d68505cd33d0630264a0c9b to your computer and use it in GitHub Desktop.
Pulumi AWS Budget
import * as aws from '@pulumi/aws';
new aws.budgets.Budget('total-monthly-cost', {
name: 'total-monthly-cost',
budgetType: 'COST',
limitAmount: '10',
limitUnit: 'USD',
timeUnit: 'MONTHLY',
notifications: [{
comparisonOperator: 'GREATER_THAN',
threshold: 100,
thresholdType: 'PERCENTAGE',
notificationType: 'FORECASTED',
subscriberEmailAddresses: ['<your-email@company.com>']
}],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment