newrelic-lambda-cli 0.9.12__py2.py3-none-any.whl → 0.9.13__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/layers.py +22 -3
- {newrelic_lambda_cli-0.9.12.dist-info → newrelic_lambda_cli-0.9.13.dist-info}/METADATA +1 -1
- {newrelic_lambda_cli-0.9.12.dist-info → newrelic_lambda_cli-0.9.13.dist-info}/RECORD +7 -7
- {newrelic_lambda_cli-0.9.12.dist-info → newrelic_lambda_cli-0.9.13.dist-info}/WHEEL +0 -0
- {newrelic_lambda_cli-0.9.12.dist-info → newrelic_lambda_cli-0.9.13.dist-info}/entry_points.txt +0 -0
- {newrelic_lambda_cli-0.9.12.dist-info → newrelic_lambda_cli-0.9.13.dist-info}/licenses/LICENSE +0 -0
- {newrelic_lambda_cli-0.9.12.dist-info → newrelic_lambda_cli-0.9.13.dist-info}/top_level.txt +0 -0
newrelic_lambda_cli/layers.py
CHANGED
|
@@ -47,7 +47,18 @@ def index(region, runtime, architecture):
|
|
|
47
47
|
]
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
def layer_selection(
|
|
50
|
+
def layer_selection(
|
|
51
|
+
available_layers, runtime, architecture, upgrade=False, existing_layer_arn=None
|
|
52
|
+
):
|
|
53
|
+
if upgrade and existing_layer_arn:
|
|
54
|
+
base_arn = existing_layer_arn.rsplit(":", 1)[0]
|
|
55
|
+
|
|
56
|
+
for i, layer in enumerate(available_layers):
|
|
57
|
+
candidate_arn = layer["LatestMatchingVersion"]["LayerVersionArn"]
|
|
58
|
+
candidate_base_arn = candidate_arn.rsplit(":", 1)[0]
|
|
59
|
+
if candidate_base_arn == base_arn:
|
|
60
|
+
return candidate_arn
|
|
61
|
+
|
|
51
62
|
if len(available_layers) == 1:
|
|
52
63
|
return available_layers[0]["LatestMatchingVersion"]["LayerVersionArn"]
|
|
53
64
|
|
|
@@ -147,8 +158,16 @@ def _add_new_relic(input, config, nr_license_key):
|
|
|
147
158
|
% (config["Configuration"]["FunctionArn"], runtime, architecture)
|
|
148
159
|
)
|
|
149
160
|
return False
|
|
150
|
-
|
|
151
|
-
|
|
161
|
+
existing_layer_arn = (
|
|
162
|
+
existing_newrelic_layer[0] if existing_newrelic_layer else None
|
|
163
|
+
)
|
|
164
|
+
new_relic_layer = layer_selection(
|
|
165
|
+
available_layers,
|
|
166
|
+
runtime,
|
|
167
|
+
architecture,
|
|
168
|
+
upgrade=input.upgrade,
|
|
169
|
+
existing_layer_arn=existing_layer_arn,
|
|
170
|
+
)
|
|
152
171
|
|
|
153
172
|
update_kwargs = {
|
|
154
173
|
"FunctionName": config["Configuration"]["FunctionArn"],
|
|
@@ -3,7 +3,7 @@ newrelic_lambda_cli/api.py,sha256=-lRsWBNO0YWV2yHp-zUbS2vs4AYJCn9yJngOrKAvmuo,15
|
|
|
3
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
|
-
newrelic_lambda_cli/layers.py,sha256=
|
|
6
|
+
newrelic_lambda_cli/layers.py,sha256=pyTbSCwJ2A3KP6YZiN-bkzt210UEj3j6dVnIFgijxWo,20339
|
|
7
7
|
newrelic_lambda_cli/otel_ingestions.py,sha256=vi1Mlfc9nRvRWV7STwK7fDXZGozG8ufKohmpHcaWGic,9250
|
|
8
8
|
newrelic_lambda_cli/permissions.py,sha256=H7v5IMpKaJIWC4Dff2YcTis4BKAAFIJr9IHWUj1LnF4,9093
|
|
9
9
|
newrelic_lambda_cli/subscriptions.py,sha256=-BYkltqiDLdmhUB_Ot4w-5vvrKcQC6aHcTBLl1mlUlI,9564
|
|
@@ -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.13.dist-info/licenses/LICENSE,sha256=uuxDzQm0yfq_tNZX0tQYzsZUVRIF0jm3dBLZUojSYzI,11345
|
|
23
|
+
newrelic_lambda_cli-0.9.13.dist-info/METADATA,sha256=FgXCoP0n0coh0xQMDFh8h-QsY4ps6ZpjjfwGHDUsWTs,28715
|
|
24
|
+
newrelic_lambda_cli-0.9.13.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
25
|
+
newrelic_lambda_cli-0.9.13.dist-info/entry_points.txt,sha256=iks2k9Y4WNgIecsDzreIvMV9pGCjwwKTf33LKKvl2A8,65
|
|
26
|
+
newrelic_lambda_cli-0.9.13.dist-info/top_level.txt,sha256=dxX2w58VgSUFiPD8C_lFuY-T2C1kjfeY0xi8iTh0r44,20
|
|
27
|
+
newrelic_lambda_cli-0.9.13.dist-info/RECORD,,
|
|
File without changes
|
{newrelic_lambda_cli-0.9.12.dist-info → newrelic_lambda_cli-0.9.13.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.12.dist-info → newrelic_lambda_cli-0.9.13.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|