forked from mentoriaiac/iac-modulo-aws-rds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rds.tf
18 lines (18 loc) · 793 Bytes
/
rds.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
resource "aws_db_instance" "rapadura" {
allocated_storage = var.storage
storage_type = var.storage_type
engine = var.engine
engine_version = var.engine_version
instance_class = var.instance_type
db_name = var.db_name
username = var.db_username
password = aws_ssm_parameter.db_passwd.value
port = var.port
db_subnet_group_name = aws_db_subnet_group.rds_subnet_group.name
vpc_security_group_ids = [aws_security_group.sg_rds.id]
identifier = var.identifier
parameter_group_name = var.parameter_group_name
skip_final_snapshot = var.snapshot
publicly_accessible = var.publicly_accessible_rds
tags = var.default_tags
}