-
Notifications
You must be signed in to change notification settings - Fork 0
/
argo-apps.tf
107 lines (83 loc) · 2.56 KB
/
argo-apps.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Helm Charts
module "prometheus_operator_crds" {
source = "./modules/prometheus-operator-crds"
name = "prometheus-operator-crds"
namespace = "monitoring"
chart_repository = "https://prometheus-community.github.io/helm-charts"
chart_name = "prometheus-operator-crds"
chart_version = "2.0.0"
depends_on = [
module.aws_eks,
]
}
module "argocd" {
source = "./modules/argo-cd"
name = "argo-cd"
namespace = "argocd"
chart_repository = "https://argoproj.github.io/argo-helm"
chart_name = "argo-cd"
chart_version = "5.27.1"
github_repo_url = var.github_repo_url
public_zone_name = var.public_zone_name
depends_on = [
module.prometheus_operator_crds,
]
}
module "external_secrets" {
source = "./modules/external-secrets"
name = "external-secrets"
chart_name = "external-secrets"
namespace = "external-secrets"
chart_repository = "https://charts.external-secrets.io"
chart_version = "0.7.2"
region = var.region
cluster_identity_oidc_issuer_arn = module.aws_eks.cluster_identity_oidc_issuer_arn
cluster_identity_oidc_issuer_url = module.aws_eks.cluster_identity_oidc_issuer_url
depends_on = [
module.aws_eks,
]
}
# ArgoCD Apps
module "cert_manager" {
source = "./modules/cert-manager"
target_revision = "1.11.0"
region = var.region
cluster_identity_oidc_issuer_arn = module.aws_eks.cluster_identity_oidc_issuer_arn
cluster_identity_oidc_issuer_url = module.aws_eks.cluster_identity_oidc_issuer_url
depends_on = [
module.aws_eks,
module.argocd,
]
}
module "istio" {
source = "./modules/istio"
target_revision = "1.17.1"
depends_on = [
module.argocd,
]
}
module "alb_ingress_controller" {
source = "./modules/aws-loadbalancer-controller"
target_revision = "1.4.8"
project = var.project
cluster_identity_oidc_issuer_arn = module.aws_eks.cluster_identity_oidc_issuer_arn
cluster_identity_oidc_issuer_url = module.aws_eks.cluster_identity_oidc_issuer_url
depends_on = [
module.argocd,
module.aws_eks,
]
}
module "istio_gateways" {
source = "./modules/argo-apps"
name = "istio-gateways"
namespace = "istio-ingress"
path = "charts/istio-gateways"
target_revision = "master"
repo_url = var.github_repo_url
values = {
domainName = var.public_zone_name
}
depends_on = [
module.argocd,
]
}