-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
45 lines (41 loc) · 1.27 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module "network" {
source = "./modules/network"
name = var.name
create_ngw = false
vpc_cidr = "10.0.0.0/16"
}
module "eks" {
source = "./modules/eks"
create_eks = false
cluster_name = "${var.name}-cluster"
cluster_version = "1.30"
subnet_ids = module.network.private_subnet_ids
control_plane_subnet_ids = module.network.private_subnet_ids
}
module "permission_sets" {
source = "./modules/iam_identity_center"
permission_sets = [
{
name = "AdministratorAccess",
description = "Allow full access to the account",
relay_state = "",
session_duration = "",
tags = {},
inline_policy = "",
policy_attachments = ["arn:aws:iam::aws:policy/AdministratorAccess"]
customer_managed_policy_attachments = []
}]
groups = ["administrators", "developers", "networking"]
users = {
"Zach Rundle" = {
first_name = "Zach"
last_name = "Rundle"
groups = "administrators"
},
"Maverick Dog" = {
first_name = "Maverick"
last_name = "Dog"
groups = "developers"
},
}
}