forked from sourcehawk/aws-org-billing-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
38 lines (32 loc) · 856 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
terraform {
backend "s3" {}
}
variable "environment" {
type = string
description = "The environment name"
}
provider "aws" {
region = "us-east-1" # CUR is only available in us-east-1
default_tags {
tags = {
"project" = "https://github.com/sourcehawk/aws-org-billing-dashboard"
"environment" = var.environment
}
}
}
# I want to upload the secrets to eu-west-1 and not us-east-1
provider "aws" {
alias = "secrets_provider"
region = "eu-west-1"
}
module "aws_cur" {
source = "./terraform"
# source = "github.com/sourcehawk/aws-org-billing-dashboard//terraform?ref=1.1.0"
environment = var.environment
create_secret = true
secret_name = "aws-org-billing-dashboard/grafana-athena-datasource"
providers = {
aws = aws
aws.secrets_provider = aws.secrets_provider
}
}