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] Example in temporalcloud_metrics_endpoint doesn't work #241

Open
Israphel opened this issue Jan 28, 2025 · 0 comments
Open

[Bug] Example in temporalcloud_metrics_endpoint doesn't work #241

Israphel opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Israphel
Copy link

What are you really trying to do?

Create Metrics Endpoint using Terraform.

Describe the bug

  1. This block is wrong:
resource "tls_self_signed_cert" "ca" {
  private_key_pem = tls_private_key.ca.private_key_pem

Because there's no "tls_private_key.ca", it's "tls_private_key.default"

  1. Fixing that, apply also fails with the error:

Must contain at least one Distinguished Name when creating Certificate Authority (CA)

the CA in the example doesn't contain "subject"

  1. Inside tls_locally_signed_cert.default, there's a variable called "var.certificate_expiration_hours" which is not defined and it doesn't specify what it is for, or which value to use.

Minimal Reproduction

Use the provided example as is.

Environment/Versions

  • OS and processor: Hashicorp Cloud (Linux amd64)
  • Temporal Version: Cloud
  • Are you using Docker or Kubernetes or building Temporal from source? No

Additional context

@Israphel Israphel added the bug Something isn't working label Jan 28, 2025
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