Files
acdl/modules/l1/rds/terraform/main.tf
T
Jon Chery 0e6ecae26d feat(P4): Nova rebrand — AWS resource migration (REQ-163)
Rename all acdl-* AWS resources → nova-* across terraform (DynamoDB,
Secrets Manager, Lambda, SNS, SG, KMS alias, ECS, ECR, IAM user/policy,
state bucket, ALB, VPC/subnet names). Lambda default table names → nova-*
(D-111). State bucket backend → nova-tfstate (-migrate-state documented).
New docs/NOVA_AWS_MIGRATION.md runbook (staged migration + rollback).
New scripts/migrate_dynamodb_data.py (scan+copy, dry-run default).
acdl-deploy- → nova-deploy- role ARN in deploy workflows. Test fixtures
updated; terraform validate + pytest + run_ci.sh PASS.

---ci---
project: acdl
phase: 4
milestone: v1.15
status: execute
---/ci---
2026-07-30 01:54:26 +00:00

22 lines
768 B
Terraform

resource "aws_db_subnet_group" "this" {
count = var.subnet_ids != "" ? 1 : 0
name = "nova-ci-rds-subnet-group"
subnet_ids = split(",", var.subnet_ids)
}
resource "aws_db_instance" "this" {
engine = var.engine
engine_version = var.engine_version
instance_class = var.instance_class
allocated_storage = var.allocated_storage
db_name = var.db_name
username = var.username
password = var.password
multi_az = var.multi_az
storage_encrypted = var.storage_encrypted
kms_key_id = var.kms_key_arn
skip_final_snapshot = true
publicly_accessible = false
db_subnet_group_name = var.subnet_ids != "" ? aws_db_subnet_group.this[0].name : null
}