Skip to content

Commit

Permalink
feat: make repl config timeouts configurable
Browse files Browse the repository at this point in the history
This PR exposes the timeouts block for the aws_dms_replication_config resource
  • Loading branch information
Adam262 committed Nov 18, 2024
1 parent 060e894 commit e58c043
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ No modules.
| <a name="input_event_subscriptions"></a> [event\_subscriptions](#input\_event\_subscriptions) | Map of objects that define the event subscriptions to be created | `any` | `{}` | no |
| <a name="input_iam_role_permissions_boundary"></a> [iam\_role\_permissions\_boundary](#input\_iam\_role\_permissions\_boundary) | ARN of the policy that is used to set the permissions boundary for the role | `string` | `null` | no |
| <a name="input_iam_role_tags"></a> [iam\_role\_tags](#input\_iam\_role\_tags) | A map of additional tags to apply to the DMS IAM roles | `map(string)` | `{}` | no |
| <a name="input_repl_config_timeouts"></a> [repl\_config\_timeouts](#input\_repl\_config\_timeouts) | A map of timeouts for serverless replication config create/update/delete operations | `map(string)` | `{}` | no |
| <a name="input_repl_instance_allocated_storage"></a> [repl\_instance\_allocated\_storage](#input\_repl\_instance\_allocated\_storage) | The amount of storage (in gigabytes) to be initially allocated for the replication instance. Min: 5, Max: 6144, Default: 50 | `number` | `null` | no |
| <a name="input_repl_instance_allow_major_version_upgrade"></a> [repl\_instance\_allow\_major\_version\_upgrade](#input\_repl\_instance\_allow\_major\_version\_upgrade) | Indicates that major version upgrades are allowed | `bool` | `true` | no |
| <a name="input_repl_instance_apply_immediately"></a> [repl\_instance\_apply\_immediately](#input\_repl\_instance\_apply\_immediately) | Indicates whether the changes should be applied immediately or during the next maintenance window | `bool` | `null` | no |
Expand Down
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,12 @@ resource "aws_dms_replication_config" "this" {
}

tags = merge(var.tags, try(each.value.tags, {}))

timeouts {
create = try(var.repl_config_timeouts.create, null)
update = try(var.repl_config_timeouts.update, null)
delete = try(var.repl_config_timeouts.delete, null)
}
}


Expand Down
10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ variable "repl_instance_timeouts" {
default = {}
}

################################################################################
# Replication task - serverless
################################################################################

variable "repl_config_timeouts" {
description = "A map of timeouts for serverless replication config create/update/delete operations"
type = map(string)
default = {}
}

################################################################################
# Endpoint
################################################################################
Expand Down

0 comments on commit e58c043

Please sign in to comment.