Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
/ grace-tf-module-budget Public archive

Terraform module for AWS budgets that is used in GRACE

License

Notifications You must be signed in to change notification settings

GSA/grace-tf-module-budget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grace-tf-module-budget

Terraform module for AWS budgets that is used in GRACE. This module is a supporting module that is required for grace-core but may be used independently by other projects if required.

Contributors

This module was created by the GRACE DevSecOps team. The master branch is maintained by this same group of contributors. For information on contributing, see CONTRIBUTING.md

License

The license for this software is documented in LICENSE.md

Instructions

Use Terraform to call this module in your code. Below is an example to create a budget notification for a new GRACE tenant named "tenant1":

```hcl
module "tenant_1_budget" {
    source = "github.com/gsa/grace-tf-module-budget/terraform/modules/budget"

    name = "tenant1"

    budget_notifications = [
        {
            protocol = "email"
            endpoint = "tenant.owner+tenant1alerts@gsa.gov"
        },
    ]

    account_ids = [
        "${module.tenant_1_prod.account_id}",
        "${module.tenant_1_staging.account_id}",
        "${module.tenant_1_dev.account_id}",
        "${module.tenant_1_mgmt.account_id}",
        ]
    }
```

Required variables

You must supply the following variables to the module:

  • name: a simple name that will be used for displaying the resulting budget notification within AWS.
  • budget_notifications: A list of protocol and endpoints to add to the SNS topic that will be created.
  • account_ids: List of subaccount IDs that will be associated with the budget notification.

Authors

Jason G. Miller

Developer / Company / Employer

General Services Administration Information Technology (GSAIT)

About

Terraform module for AWS budgets that is used in GRACE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages