generated from MITLibraries/mitlib-tf-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproviders.tf
26 lines (23 loc) · 953 Bytes
/
providers.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
################################################################################
# Providers are now separated out into their own file. Version and source
# constraints for these providers are still set in the `versions.tf` file.
# Here we also set the default tags used in all our projects,
# mandatory tags are already included, and should not be removed. The
# project-id tag is set to null as a default. If it needs to be set, that happens
# in main.tf.
# Optional tags are in comments below:
# app-repo = "name of GitHub repo for app that depends on this infrastructure"
provider "aws" {
region = var.aws_region
default_tags {
tags = {
project-id = local.project_id == null ? null : "${local.project_id}"
app-id = var.name
environment = var.environment
ou = var.ou
terraform = "true"
infra-repo = "mitlib-tf-workloads-${var.name}"
contains-pii = "false"
}
}
}