-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
45 lines (35 loc) · 979 Bytes
/
main.tf
File metadata and controls
45 lines (35 loc) · 979 Bytes
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
39
40
41
42
43
44
45
terraform {
required_version = "~> 1.3"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
backend "s3" {}
}
provider "aws" {
region = "ap-south-1"
}
module "tf-state" {
source = "./modules/tf-state"
bucket = "tf-state-bucket.infra.all"
dynamodb_table = "tf_state_locking.infra.all"
key = "tf_infra/terraform.tfstate"
region = "ap-south-1"
}
module "tf-state-ezybots" {
source = "./modules/tf-state"
bucket = "tf-state-bucket.ezybots.com"
key = "tf_infra/terraform.tfstate"
region = "ap-south-1"
dynamodb_table = "tf_state_locking.ezybots.com"
}
module "tf-state-kartvya" {
source = "./modules/tf-state"
bucket = "tf-state-bucket.kartvya.com"
key = "tf_infra/terraform.tfstate"
region = "ap-south-1"
dynamodb_table = "tf_state_locking.kartvya.com"
}
# #TODO should we setup project level admins here?