Skip to content

Commit

Permalink
Created simple example for local testing/validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgin314 committed Jul 23, 2024
1 parent b341335 commit e40b99f
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions examples/simple/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
provider "aws" {
profile = local.profile
region = local.region
}

provider "helm" {
kubernetes {
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 "kubernetes" {
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
}

data "aws_eks_cluster" "cluster" {
name = local.cluster_name
}

data "aws_eks_cluster_auth" "cluster" {
name = local.cluster_name
}

locals {
region = "us-gov-east-1"
profile = "terraform"
cluster_name = "platform-test-1"
namespace = "prometheus"
create_namespace = "true"

# tags = {
# project_number = "fs0000000078"
# project_name = "csvd_platformbaseline"
# project_role = "csvd_platformbaseline_app"
# organization = "census:ocio:csvd"
# created_by = "luther.coleman.mcginty@census.gov"
# created_for = "luther.coleman.mcginty@census.gov"
# created_reason = "Testing eks module operation"
# Terraform = "true"
# Terragrunt = "true"
# test_adjustment = "testing adding tags"
# }
}

module "prometheus" {
source = "../.."

profile = local.profile
cluster_name = local.cluster_name
namespace = local.namespace
create_namespace = local.create_namespace
}

0 comments on commit e40b99f

Please sign in to comment.