quaint-queen-45003
04/22/2019, 8:06 PM@pulumi/newrelic
package? I'm hitting errors like this
error: Plan apply failed: The API key provided is invalid
.white-balloon-205
stocky-spoon-28903
04/22/2019, 8:07 PMquaint-queen-45003
04/22/2019, 8:08 PMconst newRelic = new newrelic.Provider("newRelic", {
apiKey: newRelicApiKey
})
export const fooAlertChannel = pulumi.output(newrelic.getAlertChannel({
name: "<mailto:foo@example.com|foo@example.com>",
}));
but haven't had any lucklet nr = new newrelic.Provider("test", {apiKey: "api-key"});
export const fooAlertChannel = pulumi.output(newrelic.getAlertChannel({
name: "<mailto:foo@example.com|foo@example.com>",
}));
stocky-spoon-28903
04/22/2019, 9:13 PMNEWRELIC_API_KEY
quaint-queen-45003
04/22/2019, 9:18 PMexport const fooAlertChannel = pulumi.output(newrelic.getAlertChannel({
name: "bngo"
}));
and im still hitting an error with the api key š Error: invocation of newrelic:index/getAlertChannel:getAlertChannel returned an error: invoking newrelic:index/getAlertChannel:getAlertChannel: The API key provided is invalid
stocky-spoon-28903
04/22/2019, 9:25 PMquaint-queen-45003
04/22/2019, 9:48 PMNEWRELIC_API_KEY=
set to a known working key so i wonder where it's getting tripped up š¤stocky-spoon-28903
04/22/2019, 9:49 PMquaint-queen-45003
04/22/2019, 9:50 PMstocky-spoon-28903
04/22/2019, 9:53 PMNEWRELIC_API_KEY
set and it works here. Once we get the account upgraded at this end Iāll come back to you for further debuggingquaint-queen-45003
04/22/2019, 9:55 PMstocky-spoon-28903
04/22/2019, 10:02 PMquaint-queen-45003
04/22/2019, 10:33 PMstocky-spoon-28903
04/22/2019, 11:57 PMquaint-queen-45003
04/23/2019, 3:57 PMstocky-spoon-28903
04/23/2019, 7:26 PMquaint-queen-45003
04/23/2019, 7:47 PM# Configure the New Relic provider
provider "newrelic" {
api_key = "${var.newrelic_api_key}"
}
stocky-spoon-28903
05/06/2019, 10:52 PMquaint-queen-45003
05/06/2019, 10:56 PMstocky-spoon-28903
05/06/2019, 10:58 PMquaint-queen-45003
05/06/2019, 10:58 PMstocky-spoon-28903
05/06/2019, 11:02 PMconst nrprovider = new newrelic.Provider("somename", {
apiKey: "whatever"
});
quaint-queen-45003
05/07/2019, 5:07 PMerror: Missing required configuration variable 'newrelic:apiKey'
pulumi config
shows that I have my key set as newrelic:key
rather than newrelic:apiKey
stocky-spoon-28903
05/07/2019, 5:09 PMquaint-queen-45003
05/07/2019, 5:10 PMnewrelic:key
it failsapiKey
to the provider or notnewrelic:apiKey
from pulumi configpulumi config
stocky-spoon-28903
05/07/2019, 5:15 PMquaint-queen-45003
05/07/2019, 5:19 PM