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

Add support for performance insights retention period #147

Merged
merged 3 commits into from
Jul 17, 2019
Merged

Add support for performance insights retention period #147

merged 3 commits into from
Jul 17, 2019

Conversation

walkafwalka
Copy link
Contributor

No description provided.

@antonbabenko antonbabenko merged commit 25808c7 into terraform-aws-modules:master Jul 17, 2019
@antonbabenko
Copy link
Member

Thanks @walkafwalka !

v2.4.0 has been just released.

@walkafwalka walkafwalka deleted the feature/performance-insights-retention branch July 17, 2019 19:29
@mprenditore
Copy link

mprenditore commented Jul 18, 2019

Hello,

I think there is a bug in this PR, if the performance_insight_enabled is set to false as per default I'm getting this error while executing the job:

Error: Error modifying DB Instance <<db>>: InvalidParameterCombination: Cannot set PerformanceInsightsRetention without EnablePerformanceInsights
	status code: 400, request id: <<request_id>>

As a simple fix, due the not programmability of TF, we could duplicate the aws_db_instance resource and in one add the definition of the variables performance_insight_enabled and performance_insight_retention_period and in the other we don't add it.
To discriminate about which one to apply we can define count var to:

  • count = var.create && local.is_mssql && car.performance_insight_enabled ? 1 : 0
  • count = var.create && local.is_mssql && car.performance_insight_enabled == false ? 1 : 0

I don't know if there is a better way to do it in TF, I'm quite new to it.

Thanks,

Stefano

flmmartins pushed a commit to flmmartins/terraform-aws-rds that referenced this pull request Dec 19, 2019
…modules#147)

* Add var.performance_insights_retention_period

* Add performance insights retention docs
@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, 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

Successfully merging this pull request may close these issues.

None yet

3 participants