-
Notifications
You must be signed in to change notification settings - Fork 1
/
group-cluster.tf
23 lines (21 loc) · 1014 Bytes
/
group-cluster.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# data "gitlab_group" "gitops-apps" {
# full_path = "cloudnua-public/gitops/apps"
# }
# data "gitlab_projects" "cluster-management-search" {
# # Returns a list of matching projects. limit to 1 result matching "cluster-management"
# group_id = data.gitlab_group.gitops-apps.id
# simple = true
# search = "cluster-management"
# per_page = 1
# max_queryable_pages = 1
# }
# resource "gitlab_group_cluster" "aws_cluster" {
# group = data.gitlab_group.gitops-apps.id
# name = module.eks.cluster_id
# domain = "eks.gitops-streamlit.com"
# environment_scope = "eks/*"
# kubernetes_api_url = module.eks.cluster_endpoint
# kubernetes_token = data.kubernetes_secret.gitlab-admin-token.data.token
# kubernetes_ca_cert = trimspace(base64decode(module.eks.cluster_certificate_authority_data))
# management_project_id = data.gitlab_projects.cluster-management-search.projects.0.id
# }