Skip to content

Commit b49fd5e

Browse files
authored
enh: update terraform eks module (#261)
1 parent 1bd1e07 commit b49fd5e

File tree

11 files changed

+416
-402
lines changed

11 files changed

+416
-402
lines changed

terraform/layer1-aws/.terraform.lock.hcl

Lines changed: 51 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terraform/layer1-aws/README.md

Lines changed: 45 additions & 52 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
locals {
2+
eks_map_roles = [
3+
{
4+
rolearn = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/administrator"
5+
username = "administrator"
6+
groups = ["system:masters"]
7+
}
8+
]
9+
eks_map_users = []
10+
11+
aws_auth_configmap_yaml = <<-CONTENT
12+
${chomp(module.eks.aws_auth_configmap_yaml)}
13+
${indent(4, yamlencode(local.eks_map_roles))}
14+
mapUsers: |
15+
${indent(4, yamlencode(local.eks_map_users))}
16+
CONTENT
17+
}
18+
19+
resource "kubectl_manifest" "this" {
20+
yaml_body = local.aws_auth_configmap_yaml
21+
}

0 commit comments

Comments
 (0)