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]: I am trying to use enable_performance_insight attribute for DocumentDB, however the code does not pick that argument and is not enabling the attribute #28031

Open
Vaibhavarora08 opened this issue Nov 27, 2022 · 5 comments
Labels
bug Addresses a defect in current functionality. service/docdb Issues and PRs that pertain to the docdb service.

Comments

@Vaibhavarora08
Copy link

Vaibhavarora08 commented Nov 27, 2022

Terraform Core Version

01.2

AWS Provider Version

4.40.0

Affected Resource(s)

No response

Expected Behavior

When we add enable_performance_insight, the Terraform apply should pick that and enable the performance insight on AWS but that does not happen.

Actual Behavior

trying to use enable_performance_insight attribute for DocumentDB, however the code does not pick that argument and is not enabling the attribute

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_docdb_cluster_instance" "this" {
  count                        = var.cluster_size
  identifier                   = "${var.name}-instance-${count.index}"
  auto_minor_version_upgrade   = false
  cluster_identifier           = aws_docdb_cluster.this.id
  preferred_maintenance_window = "Sun:15:00-Sun:16:00" # 1:00 AM - 2:00 AM AEST
  instance_class               = var.instance_class
  ca_cert_identifier           = var.ca_cert_identifier
  apply_immediately            = true
  **enable_performance_insights  = true**
}

Steps to Reproduce

Try adding this attribute and see if it works

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No response

@Vaibhavarora08 Vaibhavarora08 added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Nov 27, 2022
@github-actions
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/docdb Issues and PRs that pertain to the docdb service. label Nov 27, 2022
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Nov 28, 2022
@Vaibhavarora08
Copy link
Author

Hi,

Can anyone please help on the above issue.

@hlepesant
Copy link

hlepesant commented Dec 8, 2022

works for me with this versions :

$ terraform version
Terraform v1.3.6
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.45.0

plan:

  ~ resource "aws_docdb_cluster_instance" "instance" {
      + enable_performance_insights  = true
        id                           = "docdb-instance-01"
        # (many unchanged attributes hidden)
    }

@Vaibhavarora08
Copy link
Author

@hlepesant have you made any other changes as well apart from version?

@hlepesant
Copy link

Any.
Juste terraform init -upgrade after comment all provider version's constraint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/docdb Issues and PRs that pertain to the docdb service.
Projects
None yet
Development

No branches or pull requests

3 participants