a9d8b31595
Add modules/l1/rds/ with interface.json (engine enum for postgres, mysql, mariadb, sqlserver, oracle), instance.json, README.md (full template with compliance extension points). Register in registry.json. Expand the adapter TYPE_MAP/INPUT_MAP/OUTPUT_MAP for aws:rds:instance -> aws_db_instance; emit backup_retention_period, deletion_protection, storage_encrypted, and skip_final_snapshot from NFRs/inputs. Add RDS to the primitives-plan matrix. Update tests for the new registry entry count (12) + RDS adapter emission. ---ci--- project: acdl phase: 27 milestone: v1.7 status: execute ---/ci---
81 lines
2.3 KiB
JSON
81 lines
2.3 KiB
JSON
{
|
|
"name": "rds",
|
|
"version": "1.0.0",
|
|
"kind": "l1",
|
|
"type": "aws:rds:instance",
|
|
"description": "RDS database instance primitive (substrate-agnostic stack type aws:rds:instance; the Terraform adapter translates to aws_db_instance). Supports multiple engines (postgres, mysql, etc.) via the engine input.",
|
|
"inputs": {
|
|
"engine": {
|
|
"type": "string",
|
|
"description": "Database engine (postgres, mysql, mariadb, sqlserver, oracle).",
|
|
"required": true,
|
|
"enum": ["postgres", "mysql", "mariadb", "sqlserver-ex", "sqlserver-web", "sqlserver-se", "oracle-se2"]
|
|
},
|
|
"engine_version": {
|
|
"type": "string",
|
|
"description": "Engine version (e.g. 16.4 for postgres, 8.4 for mysql).",
|
|
"required": true
|
|
},
|
|
"instance_class": {
|
|
"type": "string",
|
|
"description": "RDS instance class (e.g. db.t3.micro, db.r6g.large).",
|
|
"required": true,
|
|
"default": "db.t3.micro"
|
|
},
|
|
"allocated_storage": {
|
|
"type": "number",
|
|
"description": "Allocated storage in GB (default 20).",
|
|
"required": false,
|
|
"default": 20
|
|
},
|
|
"db_name": {
|
|
"type": "string",
|
|
"description": "The database name (some engines have restrictions).",
|
|
"required": true
|
|
},
|
|
"username": {
|
|
"type": "string",
|
|
"description": "Master username.",
|
|
"required": true
|
|
},
|
|
"multi_az": {
|
|
"type": "boolean",
|
|
"description": "Multi-AZ deployment (default false).",
|
|
"required": false,
|
|
"default": false
|
|
},
|
|
"storage_encrypted": {
|
|
"type": "boolean",
|
|
"description": "Enable storage encryption (default true).",
|
|
"required": false,
|
|
"default": true
|
|
},
|
|
"region": {
|
|
"type": "string",
|
|
"description": "AWS region the RDS instance is created in.",
|
|
"required": true
|
|
}
|
|
},
|
|
"outputs": {
|
|
"db_endpoint": {
|
|
"type": "string",
|
|
"description": "The RDS instance endpoint (host:port)."
|
|
},
|
|
"db_arn": {
|
|
"type": "arn",
|
|
"description": "The RDS instance ARN."
|
|
}
|
|
},
|
|
"nfrs": {
|
|
"backup_retention_period": {
|
|
"type": "number",
|
|
"description": "Backup retention period in days (default 7).",
|
|
"default": 7
|
|
},
|
|
"deletion_protection": {
|
|
"type": "boolean",
|
|
"description": "Enable deletion protection (default true for prod).",
|
|
"default": true
|
|
}
|
|
}
|
|
} |