pulumi-datadog icon indicating copy to clipboard operation
pulumi-datadog copied to clipboard

Provider auth error links to Terraform docs instead of Pulumi docs

Open svangordon-fruit opened this issue 3 years ago • 0 comments

Hello!

  • Vote on this issue by adding a 👍 reaction
  • To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already)

Issue details

Datadog provider with invalid auth config produces an error message referring to Terraform docs

Steps to reproduce

  1. Dependencies: pulumi-datadog==4.5.0, pulumi==3.22.1
  2. Config set to something bogus:
❯ p config --show-secrets
KEY             VALUE
datadog:apiKey  asdf
datadog:appKey  asdf
  1. Bare bones DataDog stack:
import pulumi_datadog as datadog

dashboard = datadog.Dashboard("Test Dashboard", layout_type="free", title="myDashboardWithoutAuth")
  1. Run pulumi preview

Expected: Error message pointing to Pulumi docs (the Configuring Credentials page, probably) Actual: Error message pointing to Terraform docs

Diagnostics:
  datadog:index:Dashboard (Test Dashboard):
    error: 1 error occurred:
    	* Invalid or missing credentials provided to the Datadog Provider. Please confirm your API and APP keys are valid and are for the correct region, see https://www.terraform.io/docs/providers/datadog/ for more information on providing credentials for the Datadog Provider

The initial error is from here DataDog/terraform-provider-datadog.

(As an aside, I'm not sure if it's my local network, but I'm seeing crazy long load times on https://www.pulumi.com/registry/packages/datadog/api-docs/dashboard/ , like ~45 seconds)

svangordon-fruit avatar Jan 26 '22 00:01 svangordon-fruit