sparse-intern-71089
04/22/2019, 8:06 PMwhite-balloon-205
stocky-spoon-28903
04/22/2019, 8:07 PMquaint-queen-45003
04/22/2019, 8:08 PMquaint-queen-45003
04/22/2019, 8:11 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 luckquaint-queen-45003
04/22/2019, 8:52 PMlet nr = new newrelic.Provider("test", {apiKey: "api-key"});
export const fooAlertChannel = pulumi.output(newrelic.getAlertChannel({
name: "<mailto:foo@example.com|foo@example.com>",
}));
quaint-queen-45003
04/22/2019, 8:52 PMstocky-spoon-28903
04/22/2019, 9:13 PMstocky-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 PMstocky-spoon-28903
04/22/2019, 9:47 PMquaint-queen-45003
04/22/2019, 9:48 PMquaint-queen-45003
04/22/2019, 9:49 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 PMstocky-spoon-28903
04/22/2019, 9:54 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 PMquaint-queen-45003
04/22/2019, 9:59 PMstocky-spoon-28903
04/22/2019, 10:02 PMquaint-queen-45003
04/22/2019, 10:33 PMstocky-spoon-28903
04/22/2019, 11:57 PMstocky-spoon-28903
04/22/2019, 11:57 PMstocky-spoon-28903
04/22/2019, 11:57 PMquaint-queen-45003
04/23/2019, 3:57 PMquaint-queen-45003
04/23/2019, 4:06 PMquaint-queen-45003
04/23/2019, 4:37 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}"
}
quaint-queen-45003
05/06/2019, 10:48 PMstocky-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 PMquaint-queen-45003
05/06/2019, 10:59 PMstocky-spoon-28903
05/06/2019, 11:02 PMconst nrprovider = new newrelic.Provider("somename", {
apiKey: "whatever"
});
stocky-spoon-28903
05/06/2019, 11:04 PMstocky-spoon-28903
05/06/2019, 11:04 PMquaint-queen-45003
05/07/2019, 5:07 PMerror: Missing required configuration variable 'newrelic:apiKey'
quaint-queen-45003
05/07/2019, 5:08 PMpulumi 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 failsquaint-queen-45003
05/07/2019, 5:10 PMquaint-queen-45003
05/07/2019, 5:12 PMapiKey
to the provider or notquaint-queen-45003
05/07/2019, 5:12 PMnewrelic:apiKey
from pulumi configquaint-queen-45003
05/07/2019, 5:13 PMpulumi config
stocky-spoon-28903
05/07/2019, 5:15 PMquaint-queen-45003
05/07/2019, 5:19 PMquaint-queen-45003
05/22/2019, 9:28 PM