newrelic-lambda-cli 0.9.3__py2.py3-none-any.whl → 0.9.4__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-0.9.3.dist-info → newrelic_lambda_cli-0.9.4.dist-info}/METADATA +2 -3
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.4.dist-info}/RECORD +8 -8
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.4.dist-info}/WHEEL +1 -1
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.4.dist-info}/LICENSE +0 -0
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.4.dist-info}/entry_points.txt +0 -0
- {newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.4.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"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: newrelic-lambda-cli
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.4
|
|
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,7 +11,6 @@ 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
|
|
@@ -377,7 +376,7 @@ Using these together will auto format your git commits.
|
|
|
377
376
|
## Running Tests
|
|
378
377
|
|
|
379
378
|
```bash
|
|
380
|
-
|
|
379
|
+
pytest tests
|
|
381
380
|
```
|
|
382
381
|
|
|
383
382
|
## Troubleshooting
|
|
@@ -1,12 +1,12 @@
|
|
|
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
11
|
newrelic_lambda_cli/utils.py,sha256=dYcSFZj7Mpgr5f8YSaAjt80N1q9akcOj1_puL8iRHak,5324
|
|
12
12
|
newrelic_lambda_cli/cli/__init__.py,sha256=FciF2RVqQbpMKqEiN8qjO6qmdLB6Yv8LyyyPYcfJNrc,622
|
|
@@ -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.4.dist-info/LICENSE,sha256=uuxDzQm0yfq_tNZX0tQYzsZUVRIF0jm3dBLZUojSYzI,11345
|
|
23
|
+
newrelic_lambda_cli-0.9.4.dist-info/METADATA,sha256=K1KLdhwr6VrkOIyaGBIoJkNcwKV4QSkXj-fbRYx8EvI,26780
|
|
24
|
+
newrelic_lambda_cli-0.9.4.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
|
25
|
+
newrelic_lambda_cli-0.9.4.dist-info/entry_points.txt,sha256=iks2k9Y4WNgIecsDzreIvMV9pGCjwwKTf33LKKvl2A8,65
|
|
26
|
+
newrelic_lambda_cli-0.9.4.dist-info/top_level.txt,sha256=dxX2w58VgSUFiPD8C_lFuY-T2C1kjfeY0xi8iTh0r44,20
|
|
27
|
+
newrelic_lambda_cli-0.9.4.dist-info/RECORD,,
|
|
File without changes
|
{newrelic_lambda_cli-0.9.3.dist-info → newrelic_lambda_cli-0.9.4.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|