-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paths3-buckets.tf
More file actions
43 lines (39 loc) · 1.39 KB
/
s3-buckets.tf
File metadata and controls
43 lines (39 loc) · 1.39 KB
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
module "common_s3" {
source = "./modules/multy-s3-bucket/0.1.0"
providers = {
aws.primaryregion = aws.primaryregion
aws.replicaregion = aws.replicaregion
}
bucket_name = local.bucket_name
this_is_development = true
tenant_account_id = var.tenant_account_id
primary_region = var.primary_region
backup_region = var.backup_region
}
module "common_s3_v2" {
source = "./modules/multy-s3-bucket/0.2.0"
providers = {
aws.primaryregion = aws.primaryregion
aws.replicaregion = aws.replicaregion
}
tenant_key = var.tenant_key
this_is_development = var.this_is_development
tenant_account_id = var.tenant_account_id
primary_region = var.primary_region
backup_region = var.backup_region
cluster_zone_names = { for k, v in aws_route53_zone.clusters : k => v.name }
}
module "loki_s3" {
source = "./modules/multy-s3-bucket/0.1.0"
providers = {
aws.primaryregion = aws.primaryregion
aws.replicaregion = aws.replicaregion
}
for_each = local.cluster_environments
bucket_name = "${local.bucket_name}-${each.value}-loki"
this_is_development = var.this_is_development
tenant_account_id = var.tenant_account_id
primary_region = var.primary_region
backup_region = var.backup_region
enable_replication_and_versioning = false
}