-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Phase 1 Implementation: Simplify module interface and consolidate naming
- Created defaults.tf with centralized module defaults - Updated variables.tf to remove redundant variables (repository_template, etc.) - Fixed main.tf to pass local values to templates instead of hardcoded defaults - Updated locals.tf to use new simplified variable structure - Fixed validation errors and template variable references - Updated examples to demonstrate simplified user interface - Consolidated repository and cluster naming to single 'name' variable - Hidden implementation complexity from users per call notes discussion Implements Phase 1 of callnotes-09152025 implementation plan. Ready for Phase 2: eks-clusters-workspace creation.
- Loading branch information
Your Name
committed
Sep 16, 2025
1 parent
d0abbb6
commit 5e31ec1
Showing
6 changed files
with
218 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # defaults.tf - Default values for module configuration | ||
| # These values should not be exposed to users but are used internally by templates | ||
|
|
||
| locals { | ||
| # Dynamic AWS profile generation | ||
| aws_profile = "${var.cluster_config.account_name}-${var.cluster_config.environment_abbr}" | ||
|
|
||
| # Static template values (hidden from users) | ||
| repository_defaults = { | ||
| template = "template-eks-cluster" | ||
| template_owner = "SCT-Engineering" | ||
| } | ||
|
|
||
| # Default module enablement | ||
| enable_all_modules = true | ||
|
|
||
| # Static EKS configuration for Karpenter bootstrap node group | ||
| eks_defaults = { | ||
| instance_disk_size = 200 | ||
| ng_desired_size = 3 | ||
| ng_max_size = 10 | ||
| ng_min_size = 3 | ||
| enable_cluster_creator_admin_permissions = true | ||
| } | ||
|
|
||
| # Default organization settings | ||
| organization_defaults = { | ||
| finops_project_name = "csvd_platformbaseline" | ||
| finops_project_number = "fs0000000078" | ||
| finops_project_role = "csvd_platformbaseline_app" | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.