quaint-queen-45003
06/05/2019, 8:26 PMconst nrprovider = new newrelic.Provider("bngo-test", { apiKey: "test" });
const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooInfraAlertCondition = new newrelic.InfraAlertCondition("foo", {
comparison: "above",
critical: {
duration: 25,
timeFunction: "all",
value: 90,
},
event: "StorageSample",
policyId: 100,
select: "diskUsedPercent",
type: "infra_metric",
where: "(`hostname` LIKE '%frontend%')",
}, {provider: nrprovider});
Diagnostics:
newrelic:index:AlertPolicy (foo):
error: 1 error occurred:
* missing required configuration key "newrelic:apiKey":
Set a value using the command `pulumi config set newrelic:apiKey <value>`.
broad-dog-22463
06/05/2019, 8:27 PMquaint-queen-45003
06/05/2019, 8:27 PMstocky-spoon-28903
06/05/2019, 8:33 PMquaint-queen-45003
06/05/2019, 8:35 PMbroad-dog-22463
06/06/2019, 3:32 PMquaint-queen-45003
06/06/2019, 3:34 PMbroad-dog-22463
06/06/2019, 3:34 PMconst nrprovider = new newrelic.Provider("bngo-test", { apiKey: "test" });
quaint-queen-45003
06/06/2019, 3:35 PMbroad-dog-22463
06/06/2019, 3:35 PMNEWRELIC_API_KEY
as an env varquaint-queen-45003
06/06/2019, 3:39 PMconst fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooInfraAlertCondition = new newrelic.InfraAlertCondition("foo", {
comparison: "above",
critical: {
duration: 25,
timeFunction: "all",
value: 90,
},
event: "StorageSample",
policyId: 100,
select: "diskUsedPercent",
type: "infra_metric",
where: "(`hostname` LIKE '%frontend%')",
});
broad-dog-22463
06/06/2019, 3:41 PMquaint-queen-45003
06/06/2019, 3:55 PMDiagnostics:
newrelic:index:AlertPolicy (foo):
error: could not validate provider configuration: 1 error occurred:
* : invalid or unknown key: key
broad-dog-22463
06/06/2019, 4:22 PMquaint-queen-45003
06/06/2019, 4:34 PMbroad-dog-22463
06/06/2019, 4:39 PMβΆ pulumi up
Previewing update (newrelic-test):
Type Name Plan
+ pulumi:pulumi:Stack alert-policy-newrelic-newrelic-test create
+ ββ newrelic:index:AlertPolicy foo create
Resources:
+ 2 to create
Do you want to perform this update? yes
Updating (newrelic-test):
Type Name Status
+ pulumi:pulumi:Stack alert-policy-newrelic-newrelic-test created
+ ββ newrelic:index:AlertPolicy foo created
Outputs:
id: "460780"
Resources:
+ 2 created
Duration: 5s
quaint-queen-45003
06/06/2019, 4:40 PMbroad-dog-22463
06/06/2019, 4:46 PMquaint-queen-45003
06/06/2019, 4:47 PMpulumi version
v0.17.14
broad-dog-22463
06/06/2019, 4:59 PMquaint-queen-45003
06/06/2019, 4:59 PM0.18.1
broad-dog-22463
06/06/2019, 5:00 PMpulumi config set newrelic:apiKey NOTAREALKEY
quaint-queen-45003
06/06/2019, 5:28 PMDiagnostics:
newrelic:index:AlertPolicy (foo):
error: could not validate provider configuration: 1 error occurred:
* : invalid or unknown key: key
when i try my known key and new admin keybroad-dog-22463
06/06/2019, 5:31 PMpulumi preview -v=8 --logtostderr
quaint-queen-45003
06/06/2019, 6:01 PMbroad-dog-22463
06/06/2019, 6:24 PMquaint-queen-45003
06/10/2019, 5:06 PMbroad-dog-22463
06/14/2019, 6:55 PMquaint-queen-45003
06/17/2019, 3:55 PMbroad-dog-22463
06/17/2019, 4:39 PMquaint-queen-45003
06/19/2019, 7:56 PMalertPolicyChannel
. The example provided in the code throws an error around fooAlertChannel.id
and fooAlertPolicy.id
. here's the sample code provided const fooAlertChannel = new newrelic.AlertChannel("foo", {
configuration: {
include_json_attachment: "1",
recipients: "<mailto:foo@example.com|foo@example.com>",
},
type: "email",
});
const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
channelId: fooAlertChannel.id,
policyId: fooAlertPolicy.id,
});
Type 'Output<string>' is not assignable to type 'Input<number>'.
Type 'Output<string>' is not assignable to type 'OutputInstance<number>'.
fooAlertChannel.id
and fooAlertPolicy.id
?