-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.tf
19 lines (19 loc) · 967 Bytes
/
database.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
resource "aws_db_instance" "production" {
identifier = "${var.project_name}-${var.project_environment}"
allocated_storage = var.database_allocated_storage
max_allocated_storage = var.database_max_allocated_storage
engine = var.database_engine
engine_version = var.database_engine_version
instance_class = var.database_instance_class
db_name = var.database_name
username = var.database_username
password = var.database_password
db_subnet_group_name = aws_db_subnet_group.production-subnet-group.name
delete_automated_backups = false
deletion_protection = true
iops = var.database_iops
vpc_security_group_ids = [aws_security_group.production-rds.id]
storage_encrypted = true
final_snapshot_identifier = var.final_snapshot_identifier
snapshot_identifier = var.snapshot_identifier
}