Skip to content

Commit 491f197

Browse files
authored
feat: Make repl config timeouts configurable (#82)
1 parent 060e894 commit 491f197

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ No modules.
378378
| <a name="input_event_subscriptions"></a> [event\_subscriptions](#input\_event\_subscriptions) | Map of objects that define the event subscriptions to be created | `any` | `{}` | no |
379379
| <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 |
380380
| <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 |
381+
| <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 |
381382
| <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 |
382383
| <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 |
383384
| <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 |

main.tf

+6
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,12 @@ resource "aws_dms_replication_config" "this" {
432432
}
433433

434434
tags = merge(var.tags, try(each.value.tags, {}))
435+
436+
timeouts {
437+
create = try(var.repl_config_timeouts.create, null)
438+
update = try(var.repl_config_timeouts.update, null)
439+
delete = try(var.repl_config_timeouts.delete, null)
440+
}
435441
}
436442

437443

variables.tf

+10
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@ variable "repl_instance_timeouts" {
186186
default = {}
187187
}
188188

189+
################################################################################
190+
# Replication task - serverless
191+
################################################################################
192+
193+
variable "repl_config_timeouts" {
194+
description = "A map of timeouts for serverless replication config create/update/delete operations"
195+
type = map(string)
196+
default = {}
197+
}
198+
189199
################################################################################
190200
# Endpoint
191201
################################################################################

0 commit comments

Comments
 (0)