Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Make repl config timeouts configurable #82

Conversation

Adam262
Copy link
Contributor

@Adam262 Adam262 commented Nov 18, 2024

Description

This PR exposes the timeouts block for the aws_dms_replication_config Terraform resource

Motivation and Context

In my team's work, we have found that Serverless Replications can take longer than the resource's default 60m timeout to become healthy. So we end up in a bad Terraform state, where TF creates the Replication, times out creating the config and leaves the resource in a tainted state that we need to clean up. Ideally, this change will allow TF to fully create Replication Config resources without timing out.

Breaking Changes

Changes are optional and non-breaking

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

This PR exposes the timeouts block for the aws_dms_replication_config resource
@Adam262 Adam262 changed the title feat: make repl config timeouts configurable feat: Make repl config timeouts configurable Nov 18, 2024
@Adam262 Adam262 force-pushed the feat/configure-dms-config-timeouts branch from 08bbd5e to c110502 Compare November 18, 2024 03:15
main.tf Outdated
@@ -432,6 +432,12 @@ resource "aws_dms_replication_config" "this" {
}

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

timeouts {
create = var.repl_config_timeouts.create
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this block and variable like in aws_dms_replication_instance resource:

Suggested change
create = var.repl_config_timeouts.create
create = try(var.repl_config_timeouts.create, null)

@Adam262 Adam262 force-pushed the feat/configure-dms-config-timeouts branch from c110502 to e58c043 Compare November 18, 2024 19:11
@Adam262 Adam262 requested a review from antonbabenko November 18, 2024 19:16
@antonbabenko antonbabenko merged commit 491f197 into terraform-aws-modules:master Nov 18, 2024
14 of 16 checks passed
antonbabenko pushed a commit that referenced this pull request Nov 18, 2024
## [2.4.0](v2.3.0...v2.4.0) (2024-11-18)

### Features

* Make repl config timeouts configurable ([#82](#82)) ([491f197](491f197))

### Bug Fixes

* Update CI workflow versions to latest ([#74](#74)) ([060e894](060e894))
@antonbabenko
Copy link
Member

This PR is included in version 2.4.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants