Skip to content

Commit

Permalink
Add README template for EKS cluster configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 27, 2025
1 parent 3773704 commit 6596ff7
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 383 deletions.
9 changes: 7 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@ locals {
finops_project_role = var.cluster_config.finops_project_role,
tags = var.cluster_config.tags,
module_enablement_overrides = var.cluster_config.module_enablement_overrides
}),
"README.md" : templatefile("${path.module}/templates/README.md.tf.tpl", {
environment = var.environment,
aws_region = var.region,
cluster_name = var.cluster_config.cluster_name
})
}
}

module "github_repo" {
source = "github.com/HappyPathway/terraform-github-repo"
source = "HappyPathway/repo/github"

name = var.repository_name
repo_org = var.organization
Expand All @@ -55,7 +60,7 @@ module "github_repo" {
github_has_wiki = true
github_has_projects = true

files = [
managed_extra_files = [
for path, content in local.rendered_files : {
path = path
content = content
Expand Down
39 changes: 39 additions & 0 deletions templates/README.md.tf.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# EKS Cluster Configuration - ${upper(environment)}

This EKS cluster configuration was generated using Terraform and the terraform-eks-deployment module.

## Environment Details

- **Environment**: ${environment}
- **Region**: ${aws_region}
- **Cluster Name**: ${cluster_name}

## Directory Structure

## Getting Started

To apply this configuration:

1. Change to the directory of the module you want to deploy:
```
cd ${environment}/${aws_region}/vpc/${cluster_name}/eks
```

2. Initialize and apply the Terragrunt configuration:
```
terragrunt init
terragrunt plan
terragrunt apply
```

3. Deploy additional modules as needed:
```
cd ../eks-cert-manager
terragrunt init
terragrunt plan
terragrunt apply
```

## Customization

Each module can be deployed independently using Terragrunt.
83 changes: 0 additions & 83 deletions tf-native-v2.md

This file was deleted.

75 changes: 0 additions & 75 deletions tf-native-v3.md

This file was deleted.

79 changes: 0 additions & 79 deletions tf-native-v4.md

This file was deleted.

Loading

0 comments on commit 6596ff7

Please sign in to comment.