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

[Bug]: r/aws_neptune_cluster and r/aws_neptune_cluster_instance use incorrect default parameter group families #38979

Closed
triggan opened this issue Aug 22, 2024 · 4 comments · Fixed by #38980
Labels
bug Addresses a defect in current functionality. service/neptune Issues and PRs that pertain to the neptune service.
Milestone

Comments

@triggan
Copy link
Contributor

triggan commented Aug 22, 2024

Terraform Core Version

1.9.4

AWS Provider Version

5.63.1

Affected Resource(s)

  • aws_neptune_cluster
  • aws_neptune_cluster_instance

Expected Behavior

For aws_neptune_cluster and aws_neptune_cluster_instance, if you do not specify a value for neptune_cluster_parameter_group_name and neptune_parameter_group_name respectively, then the default behavior is for the Neptune control plane to provide the appropriate default parameter group with the appropriate default parameter group family.

For example, if deploying the current default engine version for a Neptune cluster (1.3.2.1), then control plane will automatically use default.neptune1.3 as the default parameter group is none is specified.

Actual Behavior

In version 5.63.1 and earlier of the Terraform AWS provider, the default parameter group was provided of default.neptune1. This parameter group will not work for engine version beyond 1.1.1.0 and caused deployment failures when attempting to launch Neptune clusters without specifying a custom parameter group.

Relevant Error/Panic Output Snippet

aws_neptune_cluster.new_cluster: Creating...
╷
│ Error: creating Neptune Cluster (tf-20240822002802218600000001): InvalidParameterCombination: 
The Parameter Group default.neptune1 with DBParameterGroupFamily neptune1 
cannot be used for this instance. 
Please use a Parameter Group with DBParameterGroupFamily neptune1.3
│       status code: 400, request id: c246928a-c540-482f-874b-fa9ad714022e
│ 
│   with aws_neptune_cluster.new_cluster,
│   on main.tf line 14, in resource "aws_neptune_cluster" "new_cluster":
│   14: resource "aws_neptune_cluster" "new_cluster" {
│ 
╵

Terraform Configuration Files

resource "aws_neptune_cluster" "new_cluster" {
engine = "neptune"
backup_retention_period = 5
preferred_backup_window = "07:00-09:00"
skip_final_snapshot = true
}

Steps to Reproduce

When creating a new Neptune cluster without specifying engine_version or neptune_cluster_parameter_group_name, the default behavior by the AWS APIs for CreateDBCluster would create a new cluster with engine version 1.3.2.1 and a default parameter group of default.neptune1.3. Instead, the configuration above attempts to create a new cluster with engine version 1.3.2.1 (which is correct) but with a default parameter group of default.neptune1 (which is incorrect).

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

Would you like to implement a fix?

Yes

@triggan triggan added the bug Addresses a defect in current functionality. label Aug 22, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/neptune Issues and PRs that pertain to the neptune service. label Aug 22, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 22, 2024
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Aug 22, 2024
ewbankkit added a commit that referenced this issue Aug 27, 2024
r/aws_neptune_cluster:  Fixing Issue #38979 with incorrect default value used for cluster and instance parameter group
Copy link

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v5.65.0 milestone Aug 27, 2024
Copy link

This functionality has been released in v5.65.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!

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 Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/neptune Issues and PRs that pertain to the neptune service.
Projects
None yet
2 participants