This message was deleted.
# general
s
This message was deleted.
b
I wanted to take a crack at https://github.com/pulumi/pulumi-newrelic/issues/87 I checkout out the project and ran
make build
and its erroring out.
w
make ensure
and
make install
should do it. What errors are you seeing?
b
Copy code
pulumi-tfgen-newrelic schema --out ./provider/cmd/pulumi-resource-newrelic
make: pulumi-tfgen-newrelic: No such file or directory
make: *** [generate_schema] Error 1
Let me run make ensure and install
w
pulumi-tfgen-newrelic: No such file or directory
You likely need to put your
GOBIN
on your path.
👍 1
✔️ 1
b
How do you update the terraform module? I can't find any hints
w
update the terraform module
You mean bump to a newer version? Update the
go.mod
reference like in https://github.com/pulumi/pulumi-newrelic/pull/86/files#diff-7b02f1907d34b696e53fa4ef8fd8796cR15 and then re-run generation. If there are new APIs you may need to map them. @broad-dog-22463 or @billowy-army-68599 may have pointers to a guide on how to do this generally.
b
hrm, looks like it is using a fork of the new relic provider
Copy code
<http://github.com/newrelic/terraform-provider-newrelic|github.com/newrelic/terraform-provider-newrelic> => <http://github.com/pulumi/terraform-provider-newrelic|github.com/pulumi/terraform-provider-newrelic> v1.16.1-0.20200709130657-73b822cfe9af
I'm not 100% what the version would be
@broad-dog-22463 must be
stack72
I definitely do not know enough about your setup to make this PR https://github.com/pulumi/terraform-provider-newrelic/compare/master...upstream-v2.2.1 Mainly why you have the fork and what bits would need to not be in the PR
Is the fork just a fork, or does it have customization?
b
@bright-restaurant-97414 please feel free to open the PR and we can work through it
b
I opened the PR: https://github.com/pulumi/terraform-provider-newrelic/pull/1 but I get vibes that this is not the normal process since this is the first PR and there are lots of commits.
b
Hey @bright-restaurant-97414 My apologies for the time taken to upgrade this provider - basically, since the provider went to a v2 module, I have found a bug in how we generate the documentation I am fixing that right now and hopefully we will then be back on track
b
okay, also if you documented or helped me work through this process I would be able to help in the future 🙂
I am doing all my new relic infra w/ this right now and will be maintaining it for at least the next 2 years.
Current plan is to use pulumi for all the out of the box monitoring, alerting, etc for this: https://github.com/armory-plugins/armory-observability-plugin
Also we have a partner channel in our slack with you. Look for
p-pulumi
in your private slack server
There is some partnering going on around Spinnaker + Pulumi with Armory right now
b
@bright-restaurant-97414 feel free to ping me directly and we can talk through this!
b
I took a go at this now that a blocking PR was merged in the bridge project. I wasn't quite able to figure it all out. https://github.com/pulumi/pulumi-newrelic/issues/87#issuecomment-662083321
Here is my attempt: https://github.com/pulumi/pulumi-newrelic/compare/master...fieldju:feature/upgrade_new_relic_terraform_provider?expand=1 but trying the lib out locally I get the following message...
Copy code
Previewing update (prod):
     Type                          Name                                Plan     Info
     pulumi:pulumi:Stack           plumi-newrelic-infrastructure-prod           
     └─ pulumi:providers:newrelic  default_3_1_0_RC1                            1 error
Diagnostics:
  pulumi:providers:newrelic (default_3_1_0_RC1):
    error: rpc error: code = Unknown desc = could not validate provider configuration: 1 error occurred:
        * Internal validation of the provider failed! This is always a bug
    with the provider itself, and not a user issue. Please report
    this bug:
    1 error occurred:
        * resource newrelic_nrql_alert_condition: ConflictsWith: critical configuration block reference (term.0) can only be used with TypeList and MaxItems: 1 configuration blocks