Skip to content

Commit

Permalink
Merge branch 'main' into ibcdpe-935-vpc-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Jul 25, 2024
2 parents 63c5804 + 7da2f45 commit 89f7e84
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,24 @@ resource "spacelift_version" "spacelift-private-workerpool-version" {
module_id = spacelift_module.spacelift-private-workerpool.id
version_number = "0.2.0"
}

resource "spacelift_module" "spacelift-private-workerpool" {
github_enterprise {
namespace = "Sage-Bionetworks-Workflows"
id = "sage-bionetworks-workflows-gh"
}

name = "spacelift-private-workerpool"
terraform_provider = "aws"
administrative = false
branch = "ibcdpe-935-vpc-updates"
description = "Module for the spacelift private workerpool helm chart which deploys the K8s operator"
repository = "eks-stack"
project_root = "modules/spacelift-private-worker"
space_id = "root"
}

resource "spacelift_version" "spacelift-private-workerpool-version" {
module_id = spacelift_module.spacelift-private-workerpool.id
version_number = "0.1.3"
}
16 changes: 16 additions & 0 deletions modules/spacelift-private-worker/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
provider "aws" {
region = var.region
}

provider "kubernetes" {
config_path = var.kube_config_path
host = data.aws_eks_cluster.cluster.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.cluster.token
}

provider "helm" {
kubernetes {
config_path = var.kube_config_path
}
}

0 comments on commit 89f7e84

Please sign in to comment.