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

Module tries to create db_option_group for postgres #62

Closed
artursmet opened this issue Jun 6, 2018 · 5 comments
Closed

Module tries to create db_option_group for postgres #62

artursmet opened this issue Jun 6, 2018 · 5 comments

Comments

@artursmet
Copy link

After update to the latest version of this module (v1.17.0), it tries to create db_option_group for postgresql engine. But this operation is not supported by the AWS API: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithOptionGroups.html

Applying the changes required by the update ends with infinite loop of:

module.postgres_db.db_option_group.aws_db_option_group.this: Still creating... (30m10s elapsed)

The issue can be resolved by disabling option_group creation:

create_db_option_group = false

I think that the module should contain some logic that would know that option groups are not supported for Postgres engine.

What do you think?

@antonbabenko
Copy link
Member

Thanks for opening this issue. I didn't know that Postgres does not have option groups, I will issue a fix now.

@antonbabenko
Copy link
Member

v1.18.0 has been released.

@artursmet
Copy link
Author

Thank you for very fast response :)

@abeluck
Copy link

abeluck commented May 13, 2020

This issue has resurfaced.

The default variable value for create_db_option_group is true, so if I do not use create_db_option_group = false myself, local.enable_create_db_option_group will always be true. See this line: https://github.com/terraform-aws-modules/terraform-aws-rds/blob/master/main.tf#L9

The check for postgres should happen in an outer conditional

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants