|
1 | 1 | # Define the RDS instance for Postgres
|
2 | 2 | resource "aws_db_instance" "query-templates" {
|
3 |
| - identifier = var.db_identifier |
4 |
| - instance_class = "db.t3.micro" |
5 |
| - allocated_storage = 5 |
6 |
| - engine = var.engine_type |
7 |
| - engine_version = var.engine_version |
8 |
| - username = var.db_username |
9 |
| - password = random_string.setup_rds_password.result |
10 |
| - #db_subnet_group_name = aws_db_subnet_group.this.name |
11 |
| - #vpc_security_group_ids = var.private_subnet_ids |
| 3 | + identifier = var.db_identifier |
| 4 | + instance_class = "db.t3.micro" |
| 5 | + allocated_storage = 5 |
| 6 | + engine = var.engine_type |
| 7 | + engine_version = var.engine_version |
| 8 | + username = var.db_username |
| 9 | + password = random_string.setup_rds_password.result |
| 10 | + db_subnet_group_name = aws_db_subnet_group.this.name |
| 11 | + vpc_security_group_ids = var.private_subnet_ids |
12 | 12 | parameter_group_name = aws_db_parameter_group.this.name
|
13 | 13 | publicly_accessible = false
|
14 | 14 | skip_final_snapshot = true
|
@@ -64,7 +64,7 @@ resource "aws_db_subnet_group" "this" {
|
64 | 64 |
|
65 | 65 | }
|
66 | 66 |
|
67 |
| -# TODO: Consider updating for Production to AWS Secrets Manager |
| 67 | +# TODO: Update for Production to AWS Secrets Manager |
68 | 68 | # This resource's attribute(s) default value is true
|
69 | 69 | resource "random_string" "setup_rds_password" {
|
70 | 70 | length = 13 #update as needed
|
|
0 commit comments