-
-
Notifications
You must be signed in to change notification settings - Fork 215
/
remote-state.tf
60 lines (42 loc) · 1.34 KB
/
remote-state.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
module "vpc" {
source = "cloudposse/stack-config/yaml//modules/remote-state"
version = "0.22.0"
component = "vpc"
context = module.this.context
}
module "vpc_ingress" {
source = "cloudposse/stack-config/yaml//modules/remote-state"
version = "0.22.0"
for_each = toset(var.allow_ingress_from_vpc_stages)
component = "vpc"
stage = each.key
context = module.this.context
}
module "primary_roles" {
source = "cloudposse/stack-config/yaml//modules/remote-state"
version = "0.22.0"
component = "iam-primary-roles"
tenant = local.iam_primary_roles_tenant_name
environment = var.iam_roles_environment_name
stage = var.iam_primary_roles_stage_name
context = module.this.context
}
module "delegated_roles" {
source = "cloudposse/stack-config/yaml//modules/remote-state"
version = "0.22.0"
component = "iam-delegated-roles"
environment = var.iam_roles_environment_name
context = module.this.context
}
# Yes, this is self-referential.
# It obtains the previous state of the cluster so that we can add
# to it rather than overwrite it (specifically the aws-auth configMap)
module "eks" {
source = "cloudposse/stack-config/yaml//modules/remote-state"
version = "0.22.0"
component = var.eks_component_name
defaults = {
eks_managed_node_workers_role_arns = []
}
context = module.this.context
}