strip cluster bootstraps
All checks were successful
AI Code Review / ai-review (pull_request) Successful in 59s
All checks were successful
AI Code Review / ai-review (pull_request) Successful in 59s
This commit is contained in:
@@ -2,7 +2,7 @@ module "cluster" {
|
||||
source = "../modules/cluster"
|
||||
|
||||
region = var.region
|
||||
prefix = "devhub"
|
||||
prefix = "clst"
|
||||
|
||||
# VPC
|
||||
availability_zones = ["${var.region}a", "${var.region}b", "${var.region}c"]
|
||||
@@ -14,24 +14,6 @@ module "cluster" {
|
||||
node_max_count = 6
|
||||
kubernetes_version = "1.30"
|
||||
|
||||
# RDS — larger instance with Multi-AZ for production
|
||||
rds_instance_class = "db.r5.large"
|
||||
rds_allocated_storage = 100
|
||||
rds_multi_az = true
|
||||
|
||||
# ElastiCache — larger instance with replica for production
|
||||
redis_node_type = "cache.r5.large"
|
||||
redis_num_cache_clusters = 2
|
||||
redis_automatic_failover = true
|
||||
|
||||
# DNS — must match an existing Route53 hosted zone
|
||||
domain = "example.com" # TODO: set to your actual domain
|
||||
|
||||
# Cognito — domain prefix must be globally unique
|
||||
cognito_domain_prefix = "devhub-prod-devhub" # TODO: customize to avoid conflicts
|
||||
|
||||
enable_deletion_protection = true
|
||||
|
||||
tags = {
|
||||
Environment = "prod"
|
||||
ManagedBy = "tofu"
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
output "cluster_name" { value = module.cluster.cluster_name }
|
||||
output "aws_region" { value = module.cluster.aws_region }
|
||||
output "pg_host" { value = module.cluster.pg_host }
|
||||
output "pg_port" { value = module.cluster.pg_port }
|
||||
output "pg_admin_login" { value = module.cluster.pg_admin_login }
|
||||
output "pg_admin_password" { value = module.cluster.pg_admin_password; sensitive = true }
|
||||
output "pg_keycloak_password" { value = module.cluster.pg_keycloak_password; sensitive = true }
|
||||
output "pg_gitlab_password" { value = module.cluster.pg_gitlab_password; sensitive = true }
|
||||
output "redis_host" { value = module.cluster.redis_host }
|
||||
output "redis_port" { value = module.cluster.redis_port }
|
||||
output "gitlab_s3_bucket_prefix" { value = module.cluster.gitlab_s3_bucket_prefix }
|
||||
output "gitlab_irsa_role_arn" { value = module.cluster.gitlab_irsa_role_arn }
|
||||
output "cognito_user_pool_id" { value = module.cluster.cognito_user_pool_id }
|
||||
output "cognito_issuer_url" { value = module.cluster.cognito_issuer_url }
|
||||
output "cognito_hosted_ui_domain" { value = module.cluster.cognito_hosted_ui_domain }
|
||||
output "cognito_client_id" { value = module.cluster.cognito_client_id }
|
||||
output "cognito_client_secret" { value = module.cluster.cognito_client_secret; sensitive = true }
|
||||
output "cluster_name" { value = module.cluster.cluster_name }
|
||||
output "aws_region" { value = module.cluster.aws_region }
|
||||
output "oidc_issuer_url" { value = module.cluster.oidc_issuer_url }
|
||||
output "oidc_provider_arn" { value = module.cluster.oidc_provider_arn }
|
||||
output "vpc_id" { value = module.cluster.vpc_id }
|
||||
|
||||
@@ -8,10 +8,6 @@ terraform {
|
||||
source = "hashicorp/tls"
|
||||
version = "~> 4.0"
|
||||
}
|
||||
random = {
|
||||
source = "hashicorp/random"
|
||||
version = "~> 3.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user