Skip to content

Commit 52afa7c

Browse files
authored
add db_instance_type and db_engine_version to main (#55)
1 parent 40eb571 commit 52afa7c

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ resource "local_file" "metaflow_config" {
108108
| <a name="input_compute_environment_instance_types"></a> [compute\_environment\_instance\_types](#input\_compute\_environment\_instance\_types) | The instance types for the compute environment | `list(string)` | <pre>[<br> "c4.large",<br> "c4.xlarge",<br> "c4.2xlarge",<br> "c4.4xlarge",<br> "c4.8xlarge"<br>]</pre> | no |
109109
| <a name="input_compute_environment_max_vcpus"></a> [compute\_environment\_max\_vcpus](#input\_compute\_environment\_max\_vcpus) | Maximum VCPUs for Batch Compute Environment [16-96] | `number` | `64` | no |
110110
| <a name="input_compute_environment_min_vcpus"></a> [compute\_environment\_min\_vcpus](#input\_compute\_environment\_min\_vcpus) | Minimum VCPUs for Batch Compute Environment [0-16] for EC2 Batch Compute Environment (ignored for Fargate) | `number` | `8` | no |
111+
| <a name="input_db_engine_version"></a> [db\_engine\_version](#input\_db\_engine\_version) | n/a | `string` | `"11"` | no |
112+
| <a name="input_db_instance_type"></a> [db\_instance\_type](#input\_db\_instance\_type) | RDS instance type to launch for PostgresQL database. | `string` | `"db.t2.small"` | no |
111113
| <a name="input_enable_custom_batch_container_registry"></a> [enable\_custom\_batch\_container\_registry](#input\_enable\_custom\_batch\_container\_registry) | Provisions infrastructure for custom Amazon ECR container registry if enabled | `bool` | `false` | no |
112114
| <a name="input_enable_step_functions"></a> [enable\_step\_functions](#input\_enable\_step\_functions) | Provisions infrastructure for step functions if enabled | `bool` | n/a | yes |
113115
| <a name="input_extra_ui_backend_env_vars"></a> [extra\_ui\_backend\_env\_vars](#input\_extra\_ui\_backend\_env\_vars) | Additional environment variables for UI backend container | `map(string)` | `{}` | no |

main.tf

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ module "metaflow-datastore" {
1111
subnet1_id = var.subnet1_id
1212
subnet2_id = var.subnet2_id
1313

14+
db_instance_type = var.db_instance_type
15+
db_engine_version = var.db_engine_version
16+
1417
standard_tags = var.tags
1518
}
1619

variables.tf

+11
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ variable "compute_environment_egress_cidr_blocks" {
6161
description = "CIDR blocks to which egress is allowed from the Batch Compute environment's security group"
6262
}
6363

64+
variable "db_instance_type" {
65+
type = string
66+
description = "RDS instance type to launch for PostgresQL database."
67+
default = "db.t2.small"
68+
}
69+
70+
variable "db_engine_version" {
71+
type = string
72+
default = "11"
73+
}
74+
6475
variable "launch_template_http_endpoint" {
6576
type = string
6677
description = "Whether the metadata service is available. Can be 'enabled' or 'disabled'"

0 commit comments

Comments
 (0)