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

index_configs is not supported on google_logging_project_bucket_config even in current version 5.35.0 #18536

Closed
shaunladd2021 opened this issue Jun 24, 2024 · 3 comments
Assignees
Labels
bug forward/review In review; remove label to forward service/logging

Comments

@shaunladd2021
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Terraform Version & Provider Version(s)

Terraform v1.8.5
on darwin_arm64

  • provider registry.terraform.io/hashicorp/google v5.35.0

Affected Resource(s)

google_logging_project_bucket_config does not support index_configs although the provider version >= 5.6.0 should support it.

Terraform Configuration

  project          = 'project-1111'
  description      = "logging bucket"
  location         = "global"
  retention_days   = 90
  enable_analytics = true
  bucket_id        = "my-log-bucket"

  index_configs = {
    file_path = "jsonPayload.meta.id"
    type      = "INDEX_TYPE_STRING"
  }
}

Debug Output

No response

Expected Behavior

expectation is that the index configs get added to this existing bucket

Actual Behavior

terraform plan

│ Error: Unsupported argument

│ on logging-bucket.tf line 9, in resource "google_logging_project_bucket_config" "analytics-enabled-log-bucket":
│ 9: index_configs = {

│ An argument named "index_configs" is not expected here. Did you mean to define a block of type "index_configs"?

Steps to reproduce

  1. terraform plan

Important Factoids

No response

References

No response

@github-actions github-actions bot added forward/review In review; remove label to forward service/logging labels Jun 24, 2024
@jbuck
Copy link

jbuck commented Jun 25, 2024

Drive-by comment, but I think if you change index_configs = { to index_configs { this will work for you. This is what the message is saying - you're currently defining a map named index_configs but the Terraform resource expects a block typed index_configs.

I looked up this issue and found that the documentation on the website is wrong #13287

@shaunladd2021
Copy link
Author

Thank you @jbuck! That did work. I appreciate your fast response. It would definitely help if the documentation was updated to reflect this. It shows "index_configs= {"

@shuyama1
Copy link
Collaborator

Documentation is fixed in GoogleCloudPlatform/magic-modules#11048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug forward/review In review; remove label to forward service/logging
Projects
None yet
Development

No branches or pull requests

4 participants