newrelic-lambda-cli 0.9.3__py2.py3-none-any.whl → 0.9.5__py2.py3-none-any.whl
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/cliutils.py +11 -12
- newrelic_lambda_cli/subscriptions.py +2 -2
- newrelic_lambda_cli/utils.py +8 -0
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.5.dist-info}/METADATA +5 -4
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.5.dist-info}/RECORD +9 -9
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.5.dist-info}/WHEEL +1 -1
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.5.dist-info}/LICENSE +0 -0
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.5.dist-info}/entry_points.txt +0 -0
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.5.dist-info}/top_level.txt +0 -0
newrelic_lambda_cli/cliutils.py
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
3
|
import click
|
|
4
|
-
import emoji
|
|
5
4
|
|
|
6
5
|
from click.exceptions import Exit
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
def done(message):
|
|
10
9
|
"""Prints a done message to the terminal"""
|
|
11
|
-
click.echo(
|
|
10
|
+
click.echo(f"✔️ {message} ✔️")
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
def failure(message, exit=False):
|
|
15
14
|
"""Prints a failure message to the terminal"""
|
|
16
|
-
click.
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
click.secho(
|
|
16
|
+
f"✘ {message}",
|
|
17
|
+
fg="red",
|
|
19
18
|
err=True,
|
|
20
19
|
)
|
|
21
20
|
if exit:
|
|
@@ -24,15 +23,15 @@ def failure(message, exit=False):
|
|
|
24
23
|
|
|
25
24
|
def success(message):
|
|
26
25
|
"""Prints a success message to the terminal"""
|
|
27
|
-
click.
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
click.secho(
|
|
27
|
+
f"✔️ {message}",
|
|
28
|
+
fg="green",
|
|
30
29
|
)
|
|
31
30
|
|
|
32
31
|
|
|
33
32
|
def warning(message):
|
|
34
|
-
"""Prints a
|
|
35
|
-
click.
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
"""Prints a warning message to the terminal"""
|
|
34
|
+
click.secho(
|
|
35
|
+
f"⚠️ {message}",
|
|
36
|
+
fg="blue",
|
|
38
37
|
)
|
|
@@ -100,8 +100,8 @@ def create_log_subscription(input, function_name):
|
|
|
100
100
|
destination = get_newrelic_log_ingestion_function(input.session, input.stackname)
|
|
101
101
|
if destination is None:
|
|
102
102
|
failure(
|
|
103
|
-
"Could not find newrelic-log-ingestion function. Is the New Relic AWS "
|
|
104
|
-
"integration installed?"
|
|
103
|
+
"Could not find newrelic-log-ingestion function in stack: %s. Is the New Relic AWS "
|
|
104
|
+
"integration installed?" % input.stackname
|
|
105
105
|
)
|
|
106
106
|
return False
|
|
107
107
|
destination_arn = destination["Configuration"]["FunctionArn"]
|
newrelic_lambda_cli/utils.py
CHANGED
|
@@ -40,6 +40,10 @@ RUNTIME_CONFIG = {
|
|
|
40
40
|
"Handler": "newrelic-lambda-wrapper.handler",
|
|
41
41
|
"LambdaExtension": True,
|
|
42
42
|
},
|
|
43
|
+
"nodejs22.x": {
|
|
44
|
+
"Handler": "newrelic-lambda-wrapper.handler",
|
|
45
|
+
"LambdaExtension": True,
|
|
46
|
+
},
|
|
43
47
|
"provided": {"LambdaExtension": True},
|
|
44
48
|
"provided.al2": {"LambdaExtension": True},
|
|
45
49
|
"provided.al2023": {"LambdaExtension": True},
|
|
@@ -67,6 +71,10 @@ RUNTIME_CONFIG = {
|
|
|
67
71
|
"Handler": "newrelic_lambda_wrapper.handler",
|
|
68
72
|
"LambdaExtension": True,
|
|
69
73
|
},
|
|
74
|
+
"python3.13": {
|
|
75
|
+
"Handler": "newrelic_lambda_wrapper.handler",
|
|
76
|
+
"LambdaExtension": True,
|
|
77
|
+
},
|
|
70
78
|
"ruby3.2": {
|
|
71
79
|
"Handler": "newrelic_lambda_wrapper.handler",
|
|
72
80
|
"LambdaExtension": True,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: newrelic-lambda-cli
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: A CLI to install the New Relic AWS Lambda integration and layers.
|
|
5
5
|
Home-page: https://github.com/newrelic/newrelic-lambda-cli
|
|
6
6
|
Author: New Relic
|
|
@@ -11,14 +11,13 @@ License-File: LICENSE
|
|
|
11
11
|
Requires-Dist: boto3<5
|
|
12
12
|
Requires-Dist: click>=7.1.2
|
|
13
13
|
Requires-Dist: colorama
|
|
14
|
-
Requires-Dist: emoji<3,>=2
|
|
15
14
|
Requires-Dist: gql<3,>=2
|
|
16
15
|
Requires-Dist: requests<3
|
|
17
16
|
Requires-Dist: tabulate
|
|
18
17
|
|
|
19
18
|
[](https://opensource.newrelic.com/oss-category/#community-plus)
|
|
20
19
|
|
|
21
|
-
# newrelic-lambda-cli [](https://github.com/newrelic/newrelic-lambda-cli/actions/workflows/build-test-release.yml) [](https://codecov.io/gh/newrelic/newrelic-lambda-cli)
|
|
22
21
|
|
|
23
22
|
A CLI to install the New Relic AWS Lambda integration and layers.
|
|
24
23
|
|
|
@@ -64,6 +63,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
|
|
|
64
63
|
* nodejs16.x
|
|
65
64
|
* nodejs18.x
|
|
66
65
|
* nodejs20.x
|
|
66
|
+
* nodejs22.x
|
|
67
67
|
* provided
|
|
68
68
|
* provided.al2
|
|
69
69
|
* provided.al2023
|
|
@@ -73,6 +73,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
|
|
|
73
73
|
* python3.10
|
|
74
74
|
* python3.11
|
|
75
75
|
* python3.12
|
|
76
|
+
* python3.13
|
|
76
77
|
* ruby3.2
|
|
77
78
|
* ruby3.3
|
|
78
79
|
|
|
@@ -377,7 +378,7 @@ Using these together will auto format your git commits.
|
|
|
377
378
|
## Running Tests
|
|
378
379
|
|
|
379
380
|
```bash
|
|
380
|
-
|
|
381
|
+
pytest tests
|
|
381
382
|
```
|
|
382
383
|
|
|
383
384
|
## Troubleshooting
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
newrelic_lambda_cli/__init__.py,sha256=u4cy7hwbrNjK3xtldGQD_51aoNgSqGQ3IzFYsuvaIM4,149
|
|
2
2
|
newrelic_lambda_cli/api.py,sha256=b75XwylRhW9pcA6aZ9EjBW1yIFOGHhhULDD5hNhMyes,15065
|
|
3
|
-
newrelic_lambda_cli/cliutils.py,sha256=
|
|
3
|
+
newrelic_lambda_cli/cliutils.py,sha256=XDtvTlgbf2uVg01yCJrfJmmgxbF0nIL9x58ETyvefk8,685
|
|
4
4
|
newrelic_lambda_cli/functions.py,sha256=p57ZUw424BaSUA_Gw8DrYsJOYKROEHEaXgARadqwcP0,2800
|
|
5
5
|
newrelic_lambda_cli/integrations.py,sha256=r0gxfEqVHTGu3xbr4dOCDwm0-Yhoz3KntfeQRWvoWrQ,31266
|
|
6
6
|
newrelic_lambda_cli/layers.py,sha256=7ntl48RVEoRO4iiD3yzsxgqNkx013vXO5wQuoP6M0-I,14805
|
|
7
7
|
newrelic_lambda_cli/otel_ingestions.py,sha256=vi1Mlfc9nRvRWV7STwK7fDXZGozG8ufKohmpHcaWGic,9250
|
|
8
8
|
newrelic_lambda_cli/permissions.py,sha256=H7v5IMpKaJIWC4Dff2YcTis4BKAAFIJr9IHWUj1LnF4,9093
|
|
9
|
-
newrelic_lambda_cli/subscriptions.py,sha256
|
|
9
|
+
newrelic_lambda_cli/subscriptions.py,sha256=-BYkltqiDLdmhUB_Ot4w-5vvrKcQC6aHcTBLl1mlUlI,9564
|
|
10
10
|
newrelic_lambda_cli/types.py,sha256=z4K_ALDhF-iOKpyQUekbzETa586mr9bMpK9RCuffVQ8,3293
|
|
11
|
-
newrelic_lambda_cli/utils.py,sha256=
|
|
11
|
+
newrelic_lambda_cli/utils.py,sha256=10jrSm7FO2uXIN1dFCyfeV75yZVc26snNx-TCYHnq84,5552
|
|
12
12
|
newrelic_lambda_cli/cli/__init__.py,sha256=FciF2RVqQbpMKqEiN8qjO6qmdLB6Yv8LyyyPYcfJNrc,622
|
|
13
13
|
newrelic_lambda_cli/cli/decorators.py,sha256=a3agkVfy8omkUSL4aKblwSX95xtxYOGASULDYcJDPHk,1786
|
|
14
14
|
newrelic_lambda_cli/cli/functions.py,sha256=RSh2Cowe1_oQup8q5YRidp03z-BITo2uzvDh4zvLr4I,2601
|
|
@@ -19,9 +19,9 @@ newrelic_lambda_cli/cli/subscriptions.py,sha256=bUupv5iv3mUkC8t31nnI3BahoKxDnUJ8
|
|
|
19
19
|
newrelic_lambda_cli/templates/import-template.yaml,sha256=0r1yeoqpnqtEMggWomALkPG10NiANPWWBqz03rChch8,3771
|
|
20
20
|
newrelic_lambda_cli/templates/license-key-secret.yaml,sha256=ZldQaLXsyF1K2I4X_AsLdH7kRmLkPUYI3talmhqQyHg,1849
|
|
21
21
|
newrelic_lambda_cli/templates/nr-lambda-integration-role.yaml,sha256=s7T73B_k-mAwgzJrD2xn8YGUNgn2E1V7Exifrl81ViU,2874
|
|
22
|
-
newrelic_lambda_cli-0.9.
|
|
23
|
-
newrelic_lambda_cli-0.9.
|
|
24
|
-
newrelic_lambda_cli-0.9.
|
|
25
|
-
newrelic_lambda_cli-0.9.
|
|
26
|
-
newrelic_lambda_cli-0.9.
|
|
27
|
-
newrelic_lambda_cli-0.9.
|
|
22
|
+
newrelic_lambda_cli-0.9.5.dist-info/LICENSE,sha256=uuxDzQm0yfq_tNZX0tQYzsZUVRIF0jm3dBLZUojSYzI,11345
|
|
23
|
+
newrelic_lambda_cli-0.9.5.dist-info/METADATA,sha256=s3NWOafSdD8gtteqSRgjxjYWspt_Owu1ytnGbrAh9yY,26874
|
|
24
|
+
newrelic_lambda_cli-0.9.5.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
|
|
25
|
+
newrelic_lambda_cli-0.9.5.dist-info/entry_points.txt,sha256=iks2k9Y4WNgIecsDzreIvMV9pGCjwwKTf33LKKvl2A8,65
|
|
26
|
+
newrelic_lambda_cli-0.9.5.dist-info/top_level.txt,sha256=dxX2w58VgSUFiPD8C_lFuY-T2C1kjfeY0xi8iTh0r44,20
|
|
27
|
+
newrelic_lambda_cli-0.9.5.dist-info/RECORD,,
|
|
File without changes
|
{newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.5.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|