generated from MITLibraries/mitlib-tf-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
27 lines (24 loc) · 1 KB
/
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
################################################################################
# main.tf for basic Terraform config.
################################################################################
# We use the new Terraform 1.1 `cloud{}` block along with TfC workspace
# tags to link this repo to multiple TfC workspaces. This allows the
# local infra dev to link cli-driven speculative plans to the appropriate
# workspace in TfC.
terraform {
cloud {
organization = "MITLibraries"
workspaces {
# In most cases there should be two tags set here:
# The short name of the repository and the name of the AWS OU
tags = ["workloads", "ecr"]
}
}
}
# The following is part of the default naming scheme for resources created
# by Terraform. This defaults to null, but should be updated if this
# infrastructure is part of a large project. Note that this value is used in
# the providers.tf file.
locals {
project_id = null # change to "project-id-name" if this is part of a larger project
}