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

r/rds_cluster_instance: Add support for performance_insights_retention_period #20109

Conversation

bobziuchkovski
Copy link
Contributor

@bobziuchkovski bobziuchkovski commented Jul 8, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Superceded by #17111
Closes #9307

Output from acceptance testing for the new test covering performance_insights_retention_period:

$ make testacc TESTARGS='-run=TestAccAWSRDSClusterInstance_PerformanceInsightsRetentionPeriod'                               [13:39:50]
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSRDSClusterInstance_PerformanceInsightsRetentionPeriod -timeout 180m
=== RUN   TestAccAWSRDSClusterInstance_PerformanceInsightsRetentionPeriod
=== PAUSE TestAccAWSRDSClusterInstance_PerformanceInsightsRetentionPeriod
=== CONT  TestAccAWSRDSClusterInstance_PerformanceInsightsRetentionPeriod
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsRetentionPeriod (935.64s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       940.219s

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. service/rds Issues and PRs that pertain to the rds service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. size/M Managed by automation to categorize the size of a PR. labels Jul 8, 2021
@bobziuchkovski bobziuchkovski marked this pull request as ready for review July 8, 2021 20:06
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @bobziuchkovski 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@bobziuchkovski
Copy link
Contributor Author

I tried to make sure I followed all of the contribution guidelines/docs and updated everything that needs updating. Please let me know if I've missed anything. I've confirmed on my end that in addition to the added acceptance test passing, this works correctly for our company's RDS cluster config where we wanted to use this feature.

@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Aug 31, 2021
@drewmullen
Copy link
Collaborator

drewmullen commented Sep 14, 2021

i dont know this resource but heres some feedback on the schema after looking at the API:

  • you should add a validation function to your new parameter. per the docs:

Valid values are 7 or 731 (2 years).

  • should not be computed if you can set a value
  • should set a default if this is the APIs behavior

something like:

			"performance_insights_retention_period": {
				Type:     schema.TypeInt,
				Optional: true,
				Default: 7,
				ValidateFunc: validation.IntInSlice([]int{7, 731}),
			},

@YakDriver YakDriver self-assigned this Oct 13, 2021
YakDriver pushed a commit to mantoine96/terraform-provider-aws that referenced this pull request Oct 13, 2021
@YakDriver
Copy link
Member

Thank you for your work on this! Your commits were included with #17111. Of course, you still receive credit for them.

@github-actions github-actions bot added this to the v3.63.0 milestone Oct 13, 2021
@github-actions
Copy link

This functionality has been released in v3.63.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@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 Jun 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/rds Issues and PRs that pertain to the rds service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

performance_insights_retention_period for aws_rds_cluster_instance instance
4 participants