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: add timeouts to the instance resource + timeouts variable #146

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

DaveSpe
Copy link
Contributor

@DaveSpe DaveSpe commented Nov 9, 2022

what

  • added timeouts variable (object) to the variables.tf file
  • added timeouts code block that references the var.timeouts.x variable with default values to the aws_db_instance resource in main.tf
  • added variable description in the README.md

why

I ran into an issue where using the module in TF Cloud during creation the run times out.
The instance get's created but due to the run timing out the TF Cloud state does not get updated and each subsequent run would tear down an instance and recreate it, timing out once again.
I added a timeouts variable with default terraform values, which a user can change if they desire in order to accommodate a longer run.

@DaveSpe DaveSpe requested review from a team as code owners November 9, 2022 23:17
@Gowiem Gowiem self-requested a review November 10, 2022 21:10
@Gowiem
Copy link
Member

Gowiem commented Nov 10, 2022

/test all

Copy link
Member

@Gowiem Gowiem left a comment

Choose a reason for hiding this comment

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

Looks solid @DaveSpe 👍

@Gowiem Gowiem changed the title add timeouts to the instance, timeouts variable and update readme feat: add timeouts to the instance resource + timeouts variable Nov 10, 2022
@Gowiem Gowiem merged commit 9ae80a2 into cloudposse:master Nov 10, 2022
@DaveSpe DaveSpe deleted the add-timeouts branch November 10, 2022 21:28
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.

3 participants