platform-infra/terraform/envs/prod/main.tf

29 lines
634 B
HCL

terraform {
backend "s3" {
bucket = "nexus-tfstate"
key = "prod/terraform.tfstate"
region = "eu-central-1"
dynamodb_table = "nexus-tfstate-lock"
}
}
module "vpc" {
source = "../../modules/vpc"
environment = "prod"
}
module "eks" {
source = "../../modules/eks"
cluster_name = "nexus-prod"
subnet_ids = module.vpc.private_subnet_ids
min_nodes = 3
max_nodes = 8
}
module "rds" {
source = "../../modules/rds"
identifier = "nexus-prod-postgres"
db_name = "nexus"
username = "nexus_app"
subnet_ids = module.vpc.isolated_subnet_ids
}