Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit 640dc59

Browse files
authored
Merge pull request #66 from meshcloud/feature/aws-budget-alert-requirements
feat: Add aws budget preparation module
2 parents 2a79154 + 00345fe commit 640dc59

3 files changed

Lines changed: 15 additions & 11 deletions

File tree

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Budget Alert
2-
This building block will set up a budget alert for your account. You can easily define an amount, threshold, and the alert receiver emails to keep an eye on you cost.
2+
This building block will set up a budget alert for your account. You can easily define an amount, threshold, and the alert receiver emails to keep an eye on your cost.
33

44
## Requirements
55
- You need a user with at least "AWSBudgetsActionsWithAWSResourceControlAccess" permission.
6-
- "Access Key ID" and "Secret Access Key" for the authentication of the terraform provider
6+
- "Access Key ID" and "Secret Access Key" for the authentication of the terraform provider and backend bucket
77
- Terraform backend file (see the next section)
88

9+
**Note**: Please either generate your provider information and use it as an input, or uncomment provider configuration section in terraform.tf file
10+
911
## Backend configuration
1012
Here you can find an example of how to create a backend.tf file on this [Wiki Page](https://github.com/meshcloud/building-blocks/wiki/%5BUser-Guide%5D-Setting-up-the-Backend-for-terraform-state#how-to-configure-backendtf-file-for-these-providers)

aws/terraform/cloud-financial-management/budget-alert/provider.tf renamed to aws/terraform/cloud-financial-management/budget-alert/terraform.tf

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
2-
31
terraform {
42
required_providers {
53
aws = {
64
source = "hashicorp/aws"
7-
version = "5.31.0"
5+
version = "> 5.3.0"
86
}
97
}
108
}
119

12-
provider "aws" {
13-
# Configuration options
14-
}
15-
10+
# provider "aws" {
11+
12+
# }

aws/terraform/cloud-financial-management/budget-alert/variables.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@ variable "amount" {
55

66
variable "actual_threshold" {
77
type = string
8-
description = "The actual threshold to trigger the alert when it's reached"
8+
description = "The actual threshold to trigger the alert when it's reached. e.g '90' for 90%"
99
}
1010

1111
variable "forecasted_threshold" {
1212
type = string
13-
description = "The forecasted threshold to trigger the alert when it's reached"
13+
description = "The forecasted threshold to trigger the alert when it's reached. e.g '90' for 90%"
1414
}
1515

1616
variable "contact_email" {
1717
type = list(string)
1818
description = "list of emails which should receive the budget alerts. e.g. ['devops@example.com']"
1919
}
20+
21+
variable "aws_account_id" {
22+
type = string
23+
description = "The AWS Account ID. You can user 'Platform Tenant ID'"
24+
}

0 commit comments

Comments
 (0)