Skip to content

Commit 8dba04f

Browse files
committed
connect to EKS cluster
1 parent 3c06e18 commit 8dba04f

File tree

4 files changed

+9
-24
lines changed

4 files changed

+9
-24
lines changed

cluster-bootstrap/akuity.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ resource "akp_kargo_agent" "kargo-agent" {
7575

7676

7777
# Register primary cluster with ArgoCD
78-
resource "akp_cluster" "local-cluster" {
78+
resource "akp_cluster" "eks-cluster" {
7979
instance_id = akp_instance.se-demo-iac.id
8080
kube_config = {
8181
host = data.terraform_remote_state.eks_clusters.outputs.primary_cluster_endpoint
@@ -90,7 +90,7 @@ resource "akp_cluster" "local-cluster" {
9090
}
9191

9292
}
93-
93+
9494
name = data.terraform_remote_state.eks_clusters.outputs.primary_cluster_name
9595
namespace = "akuity"
9696
spec = {

cluster-bootstrap/outputs.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,3 @@ output "argo_admin_password" {
2020
value = var.argo_admin_password
2121
sensitive = true
2222
}
23-
24-
output "iac_cluster_name" {
25-
description = "The name of the local cluster registered with ArgoCD."
26-
value = var.iac_cluster_name
27-
}

cluster-bootstrap/terraform.tfvars

Lines changed: 0 additions & 4 deletions
This file was deleted.

cluster-bootstrap/variables.tf

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ variable "org_name" {
1212
variable "akp_instance_name" {
1313
description = "The name of the AKP instance to create or update."
1414
type = string
15-
default = "se-demo-iac-dev"
15+
default = "se-demo-iac"
1616
}
1717

1818
variable "akp_instance_version" {
@@ -24,7 +24,7 @@ variable "akp_instance_version" {
2424
variable "kargo_instance_name" {
2525
description = "The name of the Kargo instance to create or update."
2626
type = string
27-
default = "se-demo-iac-kargo-dev"
27+
default = "se-demo-iac-kargo"
2828
}
2929

3030
variable "kargo_instance_version" {
@@ -51,32 +51,26 @@ variable "argo_admin_password" {
5151
sensitive = true
5252
}
5353

54-
variable "iac_cluster_name" {
55-
description = "The name of the local cluster to register with ArgoCD."
56-
type = string
57-
}
54+
55+
# APP of APP config
56+
# This is the single root seed for all other argoCD apps.
5857

5958
variable "source_repo_url" {
6059
description = "The git URL of the repo containing the app-of-apps."
6160
type = string
62-
}
63-
64-
variable "destination_cluster_name" {
65-
description = "The name of the destination cluster in ArgoCD."
66-
type = string
61+
default = "https://github.com/akuity/sedemo-platform"
6762
}
6863

6964
variable "source_repo_target_revision" {
7065
description = "The git revision (branch, tag, commit) of the repo containing the app-of-apps."
7166
type = string
7267
default = "HEAD"
73-
7468
}
7569

7670
variable "source_directory_recursive" {
7771
description = "The path within the git repo to the app-of-apps."
7872
type = bool
79-
default = false
73+
default = true
8074
}
8175

8276
variable "source_directory_path" {

0 commit comments

Comments
 (0)