Skip to content

Instantly share code, notes, and snippets.

@bahrmichael
Created February 2, 2022 16:07
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 bahrmichael/8e45d43b97c477fc74f9fca2ba7c8f46 to your computer and use it in GitHub Desktop.
Save bahrmichael/8e45d43b97c477fc74f9fca2ba7c8f46 to your computer and use it in GitHub Desktop.
Parameters:
<<: !Include '../organization-parameters.yml'
BudgetAlarms:
Type: update-stacks
Template: ./budgets.yml
StackName: !Sub '${resourcePrefix}-billing-alarm'
TerminationProtection: false
DefaultOrganizationBinding:
Region: !Ref primaryRegion
AccountsWithTag: budget-alarm-threshold
Parameters:
budgetName: !Sub '${resourcePrefix}-budget-${CurrentAccount.AccountId}'
budgetAmount: !GetAtt CurrentAccount.Tags.budget-alarm-threshold
emailAddress: !GetAtt CurrentAccount.Tags.budget-alarm-threshold-email-recipient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment