Skip to content

Commit 2fafb3c

Browse files
author
Steven Nemetz
committed
Update examples
1 parent 470a8c1 commit 2fafb3c

File tree

8 files changed

+45
-8
lines changed

8 files changed

+45
-8
lines changed

examples/cost-account-annually/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
module "budgets" {
33
source = "../../"
44
budgets = "${var.budgets}"
5-
email = "snemetz@wiser.com"
5+
email = "user@company.com"
66
time_unit = "ANNUALLY"
77
}

examples/cost-account-annually/variables.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
variable "environment" {
2-
default = "test"
3-
}
41

52
variable "region" {
63
default = "us-west-2"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Example: Monthly account budgets

examples/cost-account-monthly/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
module "budgets" {
3+
source = "../../"
4+
budgets = "${var.budgets}"
5+
email = "user@company.com"
6+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
provider "aws" {
2+
region = "${var.region}"
3+
4+
# Make it faster by skipping something
5+
skip_get_ec2_platforms = true
6+
skip_metadata_api_check = true
7+
skip_region_validation = true
8+
skip_credentials_validation = true
9+
skip_requesting_account_id = true
10+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
variable "region" {
3+
default = "us-west-2"
4+
}
5+
6+
variable "budgets" {
7+
description = "List of account budget maps. Each map contains: name (name of budget), account (AWS linked account ID), and limit (budget limit)"
8+
9+
default = [
10+
{
11+
name = "acc-1"
12+
account = "123456789011"
13+
limit = 100
14+
},
15+
{
16+
name = "acc-2"
17+
account = "123456789012"
18+
limit = 200
19+
},
20+
{
21+
name = "acc-3"
22+
account = "123456789013"
23+
limit = 300
24+
},
25+
]
26+
}

examples/cost-account-quarterly/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
module "budgets" {
33
source = "../../"
44
budgets = "${var.budgets}"
5-
email = "snemetz@wiser.com"
5+
email = "user@company.com"
66
time_unit = "QUARTERLY"
77
}

examples/cost-account-quarterly/variables.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
variable "environment" {
2-
default = "test"
3-
}
41

52
variable "region" {
63
default = "us-west-2"

0 commit comments

Comments
 (0)