|
1 | 1 | resource "aws_db_instance" "airflow" {
|
2 |
| - count = var.postgres_uri != "" || var.airflow_executor == "Sequential" ? 0 : 1 |
3 |
| - name = replace(title(local.rds_name), "-", "") |
4 |
| - allocated_storage = var.rds_allocated_storage |
5 |
| - storage_type = var.rds_storage_type |
6 |
| - engine = var.rds_engine |
7 |
| - engine_version = "11.8" |
8 |
| - instance_class = var.rds_instance_class |
9 |
| - username = var.rds_username |
10 |
| - password = var.rds_password |
11 |
| - multi_az = false |
12 |
| - availability_zone = var.rds_availability_zone |
13 |
| - publicly_accessible = false |
14 |
| - deletion_protection = var.rds_deletion_protection |
15 |
| - skip_final_snapshot = var.rds_skip_final_snapshot |
16 |
| - final_snapshot_identifier = "${var.resource_prefix}-airflow-${var.resource_suffix}-${local.timestamp_sanitized}" |
17 |
| - identifier = local.rds_name |
18 |
| - vpc_security_group_ids = [aws_security_group.airflow.id] |
19 |
| - db_subnet_group_name = aws_db_subnet_group.airflow[0].name |
| 2 | + count = var.postgres_uri != "" || var.airflow_executor == "Sequential" ? 0 : 1 |
| 3 | + name = replace(title(local.rds_name), "-", "") |
| 4 | + allocated_storage = var.rds_allocated_storage |
| 5 | + storage_type = var.rds_storage_type |
| 6 | + engine = var.rds_engine |
| 7 | + engine_version = var.rds_version |
| 8 | + auto_minor_version_upgrade = false |
| 9 | + instance_class = var.rds_instance_class |
| 10 | + username = var.rds_username |
| 11 | + password = var.rds_password |
| 12 | + multi_az = false |
| 13 | + availability_zone = var.rds_availability_zone |
| 14 | + publicly_accessible = false |
| 15 | + deletion_protection = var.rds_deletion_protection |
| 16 | + skip_final_snapshot = var.rds_skip_final_snapshot |
| 17 | + final_snapshot_identifier = "${var.resource_prefix}-airflow-${var.resource_suffix}-${local.timestamp_sanitized}" |
| 18 | + identifier = local.rds_name |
| 19 | + vpc_security_group_ids = [aws_security_group.airflow.id] |
| 20 | + db_subnet_group_name = aws_db_subnet_group.airflow[0].name |
20 | 21 |
|
21 | 22 | tags = local.common_tags
|
22 | 23 | }
|
|
0 commit comments