-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from newrelic/manheim-trustedAccountKeyFix
fix: Patch for trusted account key
- Loading branch information
Showing
7 changed files
with
278 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
tests/fixtures/trusted-account-key-excluded.input.service.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"service": "newrelic-lambda-layers-nodejs-example", | ||
"provider": { | ||
"name": "aws", | ||
"stage": "prod", | ||
"region": "us-east-1", | ||
"stackTags": { | ||
"environment": "us-testing", | ||
"owning_team": "LAMBDA", | ||
"product": "aws-lambda" | ||
}, | ||
"tags": { | ||
"environment": "us-testing", | ||
"owning_team": "LAMBDA", | ||
"product": "aws-lambda" | ||
} | ||
}, | ||
"plugins": ["serverless-newrelic-lambda-layers"], | ||
"configValidationMode": "warn", | ||
"custom": { | ||
"newRelic": { | ||
"accountId": "${env:NEW_RELIC_ACCOUNT_ID}" | ||
} | ||
}, | ||
"disabledDeprecations": [], | ||
"functions": { | ||
"layer-nodejs10x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "handler.handler", | ||
"package": { "exclude": ["./**"], "include": ["handler.js"] }, | ||
"runtime": "nodejs10.x" | ||
}, | ||
"layer-nodejs12x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "handler.handler", | ||
"package": { "exclude": ["./**"], "include": ["handler.js"] }, | ||
"runtime": "nodejs12.x" | ||
}, | ||
"layer-nodejs14x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "handler.handler", | ||
"package": { "exclude": ["./**"], "include": ["handler.js"] }, | ||
"runtime": "nodejs14.x" | ||
} | ||
} | ||
} |
89 changes: 89 additions & 0 deletions
89
tests/fixtures/trusted-account-key-excluded.output.service.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"service": "newrelic-lambda-layers-nodejs-example", | ||
"provider": { | ||
"name": "aws", | ||
"stage": "prod", | ||
"region": "us-east-1", | ||
"stackTags": { | ||
"environment": "us-testing", | ||
"owning_team": "LAMBDA", | ||
"product": "aws-lambda" | ||
}, | ||
"tags": { | ||
"environment": "us-testing", | ||
"owning_team": "LAMBDA", | ||
"product": "aws-lambda" | ||
} | ||
}, | ||
"plugins": ["serverless-newrelic-lambda-layers"], | ||
"configValidationMode": "warn", | ||
"custom": { | ||
"newRelic": { | ||
"accountId": "${env:NEW_RELIC_ACCOUNT_ID}", | ||
"enableExtension": true | ||
} | ||
}, | ||
"disabledDeprecations": [], | ||
"functions": { | ||
"layer-nodejs10x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "newrelic-lambda-wrapper.handler", | ||
"layers": [ | ||
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS10X:54" | ||
], | ||
"package": { | ||
"exclude": ["./**", "!newrelic-wrapper-helper.js"], | ||
"include": ["handler.js"] | ||
}, | ||
"runtime": "nodejs10.x", | ||
"environment": { | ||
"NEW_RELIC_ACCOUNT_ID": "${env:NEW_RELIC_ACCOUNT_ID}", | ||
"NEW_RELIC_APP_NAME": "layer-nodejs10x", | ||
"NEW_RELIC_LAMBDA_EXTENSION_ENABLED": "true", | ||
"NEW_RELIC_LAMBDA_HANDLER": "handler.handler", | ||
"NEW_RELIC_NO_CONFIG_FILE": "true", | ||
"NEW_RELIC_TRUSTED_ACCOUNT_KEY": "${env:NEW_RELIC_ACCOUNT_ID}" | ||
} | ||
}, | ||
"layer-nodejs12x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "newrelic-lambda-wrapper.handler", | ||
"layers": [ | ||
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS12X:52" | ||
], | ||
"package": { | ||
"exclude": ["./**", "!newrelic-wrapper-helper.js"], | ||
"include": ["handler.js"] | ||
}, | ||
"runtime": "nodejs12.x", | ||
"environment": { | ||
"NEW_RELIC_ACCOUNT_ID": "${env:NEW_RELIC_ACCOUNT_ID}", | ||
"NEW_RELIC_APP_NAME": "layer-nodejs12x", | ||
"NEW_RELIC_LAMBDA_EXTENSION_ENABLED": "true", | ||
"NEW_RELIC_LAMBDA_HANDLER": "handler.handler", | ||
"NEW_RELIC_NO_CONFIG_FILE": "true", | ||
"NEW_RELIC_TRUSTED_ACCOUNT_KEY": "${env:NEW_RELIC_ACCOUNT_ID}" | ||
} | ||
}, | ||
"layer-nodejs14x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "newrelic-lambda-wrapper.handler", | ||
"layers": [ | ||
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS14X:22" | ||
], | ||
"package": { | ||
"exclude": ["./**", "!newrelic-wrapper-helper.js"], | ||
"include": ["handler.js"] | ||
}, | ||
"runtime": "nodejs14.x", | ||
"environment": { | ||
"NEW_RELIC_ACCOUNT_ID": "${env:NEW_RELIC_ACCOUNT_ID}", | ||
"NEW_RELIC_APP_NAME": "layer-nodejs14x", | ||
"NEW_RELIC_LAMBDA_EXTENSION_ENABLED": "true", | ||
"NEW_RELIC_LAMBDA_HANDLER": "handler.handler", | ||
"NEW_RELIC_NO_CONFIG_FILE": "true", | ||
"NEW_RELIC_TRUSTED_ACCOUNT_KEY": "${env:NEW_RELIC_ACCOUNT_ID}" | ||
} | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
tests/fixtures/trusted-account-key-included.input.service.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"service": "newrelic-lambda-layers-nodejs-example", | ||
"provider": { | ||
"name": "aws", | ||
"stage": "prod", | ||
"region": "us-east-1", | ||
"stackTags": { | ||
"environment": "us-testing", | ||
"owning_team": "LAMBDA", | ||
"product": "aws-lambda" | ||
}, | ||
"tags": { | ||
"environment": "us-testing", | ||
"owning_team": "LAMBDA", | ||
"product": "aws-lambda" | ||
} | ||
}, | ||
"plugins": ["serverless-newrelic-lambda-layers"], | ||
"configValidationMode": "warn", | ||
"custom": { | ||
"newRelic": { | ||
"accountId": "${env:NEW_RELIC_ACCOUNT_ID}", | ||
"trustedAccountKey": "${env:NEW_RELIC_TRUSTED_ACCOUNT_KEY}" | ||
} | ||
}, | ||
"disabledDeprecations": [], | ||
"functions": { | ||
"layer-nodejs10x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "handler.handler", | ||
"package": { "exclude": ["./**"], "include": ["handler.js"] }, | ||
"runtime": "nodejs10.x" | ||
}, | ||
"layer-nodejs12x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "handler.handler", | ||
"package": { "exclude": ["./**"], "include": ["handler.js"] }, | ||
"runtime": "nodejs12.x" | ||
}, | ||
"layer-nodejs14x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "handler.handler", | ||
"package": { "exclude": ["./**"], "include": ["handler.js"] }, | ||
"runtime": "nodejs14.x" | ||
} | ||
} | ||
} |
90 changes: 90 additions & 0 deletions
90
tests/fixtures/trusted-account-key-included.output.service.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"service": "newrelic-lambda-layers-nodejs-example", | ||
"provider": { | ||
"name": "aws", | ||
"stage": "prod", | ||
"region": "us-east-1", | ||
"stackTags": { | ||
"environment": "us-testing", | ||
"owning_team": "LAMBDA", | ||
"product": "aws-lambda" | ||
}, | ||
"tags": { | ||
"environment": "us-testing", | ||
"owning_team": "LAMBDA", | ||
"product": "aws-lambda" | ||
} | ||
}, | ||
"plugins": ["serverless-newrelic-lambda-layers"], | ||
"configValidationMode": "warn", | ||
"custom": { | ||
"newRelic": { | ||
"accountId": "${env:NEW_RELIC_ACCOUNT_ID}", | ||
"enableExtension": true, | ||
"trustedAccountKey": "${env:NEW_RELIC_TRUSTED_ACCOUNT_KEY}" | ||
} | ||
}, | ||
"disabledDeprecations": [], | ||
"functions": { | ||
"layer-nodejs10x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "newrelic-lambda-wrapper.handler", | ||
"layers": [ | ||
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS10X:54" | ||
], | ||
"package": { | ||
"exclude": ["./**", "!newrelic-wrapper-helper.js"], | ||
"include": ["handler.js"] | ||
}, | ||
"runtime": "nodejs10.x", | ||
"environment": { | ||
"NEW_RELIC_ACCOUNT_ID": "${env:NEW_RELIC_ACCOUNT_ID}", | ||
"NEW_RELIC_APP_NAME": "layer-nodejs10x", | ||
"NEW_RELIC_LAMBDA_EXTENSION_ENABLED": "true", | ||
"NEW_RELIC_LAMBDA_HANDLER": "handler.handler", | ||
"NEW_RELIC_NO_CONFIG_FILE": "true", | ||
"NEW_RELIC_TRUSTED_ACCOUNT_KEY": "${env:NEW_RELIC_TRUSTED_ACCOUNT_KEY}" | ||
} | ||
}, | ||
"layer-nodejs12x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "newrelic-lambda-wrapper.handler", | ||
"layers": [ | ||
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS12X:52" | ||
], | ||
"package": { | ||
"exclude": ["./**", "!newrelic-wrapper-helper.js"], | ||
"include": ["handler.js"] | ||
}, | ||
"runtime": "nodejs12.x", | ||
"environment": { | ||
"NEW_RELIC_ACCOUNT_ID": "${env:NEW_RELIC_ACCOUNT_ID}", | ||
"NEW_RELIC_APP_NAME": "layer-nodejs12x", | ||
"NEW_RELIC_LAMBDA_EXTENSION_ENABLED": "true", | ||
"NEW_RELIC_LAMBDA_HANDLER": "handler.handler", | ||
"NEW_RELIC_NO_CONFIG_FILE": "true", | ||
"NEW_RELIC_TRUSTED_ACCOUNT_KEY": "${env:NEW_RELIC_TRUSTED_ACCOUNT_KEY}" | ||
} | ||
}, | ||
"layer-nodejs14x": { | ||
"events": [{ "schedule": "rate(5 minutes)" }], | ||
"handler": "newrelic-lambda-wrapper.handler", | ||
"layers": [ | ||
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS14X:22" | ||
], | ||
"package": { | ||
"exclude": ["./**", "!newrelic-wrapper-helper.js"], | ||
"include": ["handler.js"] | ||
}, | ||
"runtime": "nodejs14.x", | ||
"environment": { | ||
"NEW_RELIC_ACCOUNT_ID": "${env:NEW_RELIC_ACCOUNT_ID}", | ||
"NEW_RELIC_APP_NAME": "layer-nodejs14x", | ||
"NEW_RELIC_LAMBDA_EXTENSION_ENABLED": "true", | ||
"NEW_RELIC_LAMBDA_HANDLER": "handler.handler", | ||
"NEW_RELIC_NO_CONFIG_FILE": "true", | ||
"NEW_RELIC_TRUSTED_ACCOUNT_KEY": "${env:NEW_RELIC_TRUSTED_ACCOUNT_KEY}" | ||
} | ||
} | ||
} | ||
} |