newrelic-lambda-cli 0.9.6__tar.gz → 0.9.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/PKG-INFO +1 -1
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/layers.py +1 -2
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/layers.py +13 -2
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/PKG-INFO +1 -1
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/setup.py +1 -1
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/tests/test_layers.py +1 -1
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/CODE_OF_CONDUCT.md +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/CONTRIBUTING.md +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/LICENSE +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/MANIFEST.in +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/README.md +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/THIRD_PARTY_NOTICES.md +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/__init__.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/api.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/__init__.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/decorators.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/functions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/integrations.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/otel_ingestions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/subscriptions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cliutils.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/functions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/integrations.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/otel_ingestions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/permissions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/subscriptions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/templates/import-template.yaml +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/templates/license-key-secret.yaml +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/templates/nr-lambda-integration-role.yaml +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/types.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/utils.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/SOURCES.txt +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/dependency_links.txt +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/entry_points.txt +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/not-zip-safe +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/requires.txt +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/top_level.txt +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/pyproject.toml +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/setup.cfg +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/tests/test_api.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/tests/test_functions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/tests/test_integrations.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/tests/test_new_relic_gql.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/tests/test_permissions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/tests/test_subscriptions.py +0 -0
- {newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/tests/test_utils.py +0 -0
|
@@ -105,8 +105,7 @@ def register(group):
|
|
|
105
105
|
)
|
|
106
106
|
@click.option(
|
|
107
107
|
"--esm",
|
|
108
|
-
|
|
109
|
-
show_default=True,
|
|
108
|
+
is_flag=True,
|
|
110
109
|
help="Nodejs runtimes only - nodejs implementation runtime handler to /opt/nodejs/node_modules/newrelic-esm-lambda-wrapper/index.handler",
|
|
111
110
|
)
|
|
112
111
|
@click.pass_context
|
|
@@ -104,7 +104,7 @@ def _add_new_relic(input, config, nr_license_key):
|
|
|
104
104
|
prefix = (
|
|
105
105
|
"/opt/nodejs/node_modules/newrelic-esm-lambda-wrapper/index"
|
|
106
106
|
if input.esm
|
|
107
|
-
else "
|
|
107
|
+
else "newrelic-lambda-wrapper"
|
|
108
108
|
)
|
|
109
109
|
runtime_handler = prefix + ".handler"
|
|
110
110
|
|
|
@@ -172,7 +172,18 @@ def _add_new_relic(input, config, nr_license_key):
|
|
|
172
172
|
|
|
173
173
|
# Update the NEW_RELIC_LAMBDA_HANDLER envvars only when it's a new install.
|
|
174
174
|
if runtime_handler and handler != runtime_handler:
|
|
175
|
-
|
|
175
|
+
if "nodejs" in runtime:
|
|
176
|
+
if handler not in [
|
|
177
|
+
"newrelic-lambda-wrapper.handler",
|
|
178
|
+
"/opt/nodejs/node_modules/newrelic-esm-lambda-wrapper/index.handler",
|
|
179
|
+
]:
|
|
180
|
+
update_kwargs["Environment"]["Variables"][
|
|
181
|
+
"NEW_RELIC_LAMBDA_HANDLER"
|
|
182
|
+
] = handler
|
|
183
|
+
else:
|
|
184
|
+
update_kwargs["Environment"]["Variables"][
|
|
185
|
+
"NEW_RELIC_LAMBDA_HANDLER"
|
|
186
|
+
] = handler
|
|
176
187
|
|
|
177
188
|
if input.enable_extension and not utils.supports_lambda_extension(runtime):
|
|
178
189
|
warning(
|
|
@@ -6,7 +6,7 @@ README = open(os.path.join(os.path.dirname(__file__), "README.md"), "r").read()
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name="newrelic-lambda-cli",
|
|
9
|
-
version="0.9.
|
|
9
|
+
version="0.9.7",
|
|
10
10
|
python_requires=">=3.3",
|
|
11
11
|
description="A CLI to install the New Relic AWS Lambda integration and layers.",
|
|
12
12
|
long_description=README,
|
|
@@ -333,7 +333,7 @@ def test_add_new_relic_nodejs(aws_credentials, mock_function_config):
|
|
|
333
333
|
assert (
|
|
334
334
|
update_kwargs_std["FunctionName"] == config_std["Configuration"]["FunctionArn"]
|
|
335
335
|
)
|
|
336
|
-
assert update_kwargs_std["Handler"] == "
|
|
336
|
+
assert update_kwargs_std["Handler"] == "newrelic-lambda-wrapper.handler"
|
|
337
337
|
assert (
|
|
338
338
|
update_kwargs_std["Environment"]["Variables"]["NEW_RELIC_LAMBDA_HANDLER"]
|
|
339
339
|
== original_std_handler
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/decorators.py
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/functions.py
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/integrations.py
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/otel_ingestions.py
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/cli/subscriptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/otel_ingestions.py
RENAMED
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli/subscriptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/requires.txt
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.6 → newrelic_lambda_cli-0.9.7}/newrelic_lambda_cli.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|