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

hcp_service_principal_key documentation example has errors #1132

Open
thomashashi opened this issue Nov 13, 2024 · 1 comment
Open

hcp_service_principal_key documentation example has errors #1132

thomashashi opened this issue Nov 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@thomashashi
Copy link

Terraform Version and Provider Version

Terraform version:  1.9.7
HCP provider version: 0.99.0

Affected Resource(s)

  • hcp_service_principal_key

Terraform Configuration Files

[...]
resource "hcp_service_principal_key" "key" {
  service_principal = hcp_service_principal.example.resource_name
  rotation_triggers {
    rotation_time = time_rotating.key_rotation.rotation_rfc3339
  }
}

Debug Output

Screenshot 2024-11-13 at 13 28 08

Blocks of type "rotation_triggers" are not expected here.

Correct example

[...]
resource "hcp_service_principal_key" "key" {
  service_principal = hcp_service_principal.example.resource_name
  rotate_triggers = {
    rotation_time = time_rotating.key_rotation.rotation_rfc3339
  }
}

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@thomashashi thomashashi added the bug Something isn't working label Nov 13, 2024
@thomashashi
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant