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

fields are statically typed. Make sure all fields are of the correct type #868

Open
raywonkari opened this issue Sep 10, 2024 · 2 comments
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. kind/bug Some behavior is incorrect or out of spec

Comments

@raywonkari
Copy link

raywonkari commented Sep 10, 2024

Describe what happened

Trying to create a NotificationDestination using Pulumi Golang, but seeing this error.

using latest version
github.com/pulumi/pulumi-newrelic/sdk/v5 v5.31.0

error: 1 error occurred:
    * 403 response returned: NOTICE: fields are statically typed. Make sure all fields are of the correct type

Sample program

notificationDestination, err := newrelic.NewNotificationDestination(ctx, destinationName, &newrelic.NotificationDestinationArgs{
	AccountId: pulumi.String(accountId),
	Name:      pulumi.String(destinationName),
	Type:      pulumi.String("WEBHOOK"),
	Properties: newrelic.NotificationDestinationPropertyArray{
		&newrelic.NotificationDestinationPropertyArgs{
			Key:   pulumi.String("url"),
			Value: pulumi.String(webhookUrl),
		},
	},
})

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

some fields are masked

CLI          
Version      3.131.0
Go Version   go1.23.0
Go Compiler  gc

Plugins
KIND      NAME        VERSION
resource  archive     0.0.6
resource  aws         6.29.0
resource  aws-native  0.13.0
resource  cloudflare  5.16.0
resource  cloudflare  3.5.0
resource  command     0.11.1
resource  fastly      8.4.1
language  go          unknown
resource  kubernetes  4.9.1
resource  newrelic    5.31.0
resource  random      4.2.0
resource  tailscale   0.13.3

Host     
OS       darwin
Version  14.6.1
Arch     arm64

This project is written in go: executable='/opt/homebrew/bin/go' version='go version go1.22.2 darwin/arm64'

Current Stack: xxxxxxxxxxx

TYPE                       URN
pulumi:pulumi:Stack        urn:pulumi:newrelic::xxxxxxxx::pulumi:pulumi:Stack::xxxxxxxx-newrelic
pulumi:providers:newrelic  urn:pulumi:newrelic::xxxxxxxx::pulumi:providers:newrelic::default_5_31_0
pulumi:providers:newrelic  urn:pulumi:newrelic::xxxxxxxx::pulumi:providers:newrelic::default_5_17_0


Found no pending operations associated with newrelic

Backend        
Name           work.local
URL            s3://xxxxxxxx
User           raywonkari
Organizations  
Token type     personal

Dependencies:
NAME                                        VERSION
github.com/aws/aws-sdk-go-v2                v1.21.2
github.com/aws/aws-sdk-go-v2/config         v1.15.15
github.com/aws/aws-sdk-go-v2/service/ecs    v1.9.0
github.com/pulumi/pulumi-aws-native/sdk     v0.13.0
github.com/pulumi/pulumi-random/sdk/v4      v4.2.0
github.com/pulumi/pulumi/sdk/v3             v3.129.0
github.com/stretchr/testify                 v1.9.0
github.com/aws/aws-sdk-go                   v1.44.298
github.com/chartmogul/chartmogul-go/v3      v3.1.1
github.com/docker/docker                    v24.0.7+incompatible
github.com/go-git/go-git/v5                 v5.12.0
github.com/opencontainers/image-spec        v1.0.2
github.com/pulumi/pulumi-archive/sdk        v0.0.6
github.com/pulumi/pulumi-aws/sdk/v6         v6.29.0
github.com/pulumi/pulumi-cloudflare/sdk/v5  v5.16.0
github.com/pulumi/pulumi-command/sdk        v0.11.1
github.com/pulumi/pulumi-fastly/sdk/v8      v8.4.1
github.com/pulumi/pulumi-kubernetes/sdk/v4  v4.9.1
github.com/pulumi/pulumi-newrelic/sdk/v5    v5.31.0
github.com/pulumi/pulumi-tailscale/sdk      v0.13.3
github.com/tdewolff/minify/v2               v2.20.16
github.com/pulumi/pulumi-cloudflare/sdk/v3  v3.5.0

Pulumi locates its logs in /var/folders/m_/y8fbgmsd693cgpl3lh22hqth0000gn/T/ by default

Additional context

No response

Contributing

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).

@raywonkari raywonkari added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Sep 10, 2024
@VenelinMartinov VenelinMartinov removed the needs-triage Needs attention from the triage team label Sep 11, 2024
@VenelinMartinov
Copy link
Contributor

Hi @raywonkari, thanks for reporting the issue and sorry you've hit this.

The pulumi newrelic provider uses the terraform newrelic provider under the hood and this issue seems to be a problem with the TF provider. I've reported it here newrelic/terraform-provider-newrelic#2746 to the newrelic team.

The newrelic team has the expertise to handle this. As soon as that issue is addressed we'll pick it up in the pulumi provider as well.

@VenelinMartinov VenelinMartinov added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. labels Sep 11, 2024
@VenelinMartinov
Copy link
Contributor

@raywonkari, a user came up with a workaround for the issue in the TF issue thread: newrelic/terraform-provider-newrelic#2746 (comment)

Can you please try it and see if it works for you? You'd need to remove the account ID parameter from the NotificationDestination resource and specify it on the provider resource instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants