diff --git a/aws/terraform/cloud-financial-management/budget-alert/README.md b/aws/terraform/cloud-financial-management/budget-alert/README.md index 0e76d65..7f29885 100644 --- a/aws/terraform/cloud-financial-management/budget-alert/README.md +++ b/aws/terraform/cloud-financial-management/budget-alert/README.md @@ -1,10 +1,12 @@ # Budget Alert -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. +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. ## Requirements - You need a user with at least "AWSBudgetsActionsWithAWSResourceControlAccess" permission. -- "Access Key ID" and "Secret Access Key" for the authentication of the terraform provider +- "Access Key ID" and "Secret Access Key" for the authentication of the terraform provider and backend bucket - Terraform backend file (see the next section) +**Note**: Please either generate your provider information and use it as an input, or uncomment provider configuration section in terraform.tf file + ## Backend configuration 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) \ No newline at end of file diff --git a/aws/terraform/cloud-financial-management/budget-alert/provider.tf b/aws/terraform/cloud-financial-management/budget-alert/terraform.tf similarity index 55% rename from aws/terraform/cloud-financial-management/budget-alert/provider.tf rename to aws/terraform/cloud-financial-management/budget-alert/terraform.tf index 1b56909..053d1b8 100644 --- a/aws/terraform/cloud-financial-management/budget-alert/provider.tf +++ b/aws/terraform/cloud-financial-management/budget-alert/terraform.tf @@ -1,15 +1,12 @@ - - terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.31.0" + version = "> 5.3.0" } } } -provider "aws" { - # Configuration options -} - +# provider "aws" { + +# } \ No newline at end of file diff --git a/aws/terraform/cloud-financial-management/budget-alert/variables.tf b/aws/terraform/cloud-financial-management/budget-alert/variables.tf index 584a9bf..53519ad 100644 --- a/aws/terraform/cloud-financial-management/budget-alert/variables.tf +++ b/aws/terraform/cloud-financial-management/budget-alert/variables.tf @@ -5,15 +5,20 @@ variable "amount" { variable "actual_threshold" { type = string - description = "The actual threshold to trigger the alert when it's reached" + description = "The actual threshold to trigger the alert when it's reached. e.g '90' for 90%" } variable "forecasted_threshold" { type = string - description = "The forecasted threshold to trigger the alert when it's reached" + description = "The forecasted threshold to trigger the alert when it's reached. e.g '90' for 90%" } variable "contact_email" { type = list(string) description = "list of emails which should receive the budget alerts. e.g. ['devops@example.com']" } + +variable "aws_account_id" { + type = string + description = "The AWS Account ID. You can user 'Platform Tenant ID'" +}