newrelic-lambda-cli 0.9.1__py2.py3-none-any.whl → 0.9.2__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.
@@ -107,7 +107,11 @@ def register(group):
107
107
  def install(ctx, **kwargs):
108
108
  """Install New Relic AWS Lambda Layers"""
109
109
  input = LayerInstall(session=None, verbose=ctx.obj["VERBOSE"], **kwargs)
110
-
110
+ input = input._replace(
111
+ session=boto3.Session(
112
+ profile_name=input.aws_profile, region_name=input.aws_region
113
+ )
114
+ )
111
115
  if input.aws_permissions_check:
112
116
  permissions.ensure_layer_install_permissions(input)
113
117
 
@@ -181,7 +185,11 @@ def install(ctx, **kwargs):
181
185
  def uninstall(ctx, **kwargs):
182
186
  """Uninstall New Relic AWS Lambda Layers"""
183
187
  input = LayerUninstall(session=None, verbose=ctx.obj["VERBOSE"], **kwargs)
184
-
188
+ input = input._replace(
189
+ session=boto3.Session(
190
+ profile_name=input.aws_profile, region_name=input.aws_region
191
+ )
192
+ )
185
193
  if input.aws_permissions_check:
186
194
  permissions.ensure_layer_uninstall_permissions(input)
187
195
 
@@ -64,7 +64,11 @@ def register(group):
64
64
  def install(**kwargs):
65
65
  """Install New Relic AWS Lambda Log Subscriptions"""
66
66
  input = SubscriptionInstall(session=None, **kwargs)
67
-
67
+ input = input._replace(
68
+ session=boto3.Session(
69
+ profile_name=input.aws_profile, region_name=input.aws_region
70
+ )
71
+ )
68
72
  if input.aws_permissions_check:
69
73
  permissions.ensure_subscription_install_permissions(input)
70
74
 
@@ -121,7 +125,11 @@ def install(**kwargs):
121
125
  def uninstall(**kwargs):
122
126
  """Uninstall New Relic AWS Lambda Log Subscriptions"""
123
127
  input = SubscriptionUninstall(session=None, **kwargs)
124
-
128
+ input = input._replace(
129
+ session=boto3.Session(
130
+ profile_name=input.aws_profile, region_name=input.aws_region
131
+ )
132
+ )
125
133
  if input.aws_permissions_check:
126
134
  permissions.ensure_subscription_uninstall_permissions(input)
127
135
 
@@ -202,6 +202,18 @@ def _add_new_relic(input, config, nr_license_key):
202
202
  "NEW_RELIC_LAMBDA_EXTENSION_ENABLED"
203
203
  ] = "false"
204
204
 
205
+ if "dotnet" in runtime:
206
+ update_kwargs["Environment"]["Variables"]["CORECLR_ENABLE_PROFILING"] = "1"
207
+ update_kwargs["Environment"]["Variables"][
208
+ "CORECLR_PROFILER"
209
+ ] = "{36032161-FFC0-4B61-B559-F6C5D41BAE5A}"
210
+ update_kwargs["Environment"]["Variables"][
211
+ "CORECLR_NEWRELIC_HOME"
212
+ ] = "/opt/lib/newrelic-dotnet-agent"
213
+ update_kwargs["Environment"]["Variables"][
214
+ "CORECLR_PROFILER_PATH"
215
+ ] = "/opt/lib/newrelic-dotnet-agent/libNewRelicProfiler.so"
216
+
205
217
  return update_kwargs
206
218
 
207
219
 
@@ -10,6 +10,8 @@ NR_DOCS_ACT_LINKING_URL = "https://docs.newrelic.com/docs/serverless-function-mo
10
10
  NEW_RELIC_ARN_PREFIX_TEMPLATE = "arn:aws:lambda:%s:451483290750"
11
11
  RUNTIME_CONFIG = {
12
12
  "dotnetcore3.1": {"LambdaExtension": True},
13
+ "dotnet6": {"LambdaExtension": True},
14
+ "dotnet8": {"LambdaExtension": True},
13
15
  "java21": {
14
16
  "Handler": "com.newrelic.java.HandlerWrapper::",
15
17
  "LambdaExtension": True,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: newrelic-lambda-cli
3
- Version: 0.9.1
3
+ Version: 0.9.2
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
@@ -52,6 +52,8 @@ A CLI to install the New Relic AWS Lambda integration and layers.
52
52
  ## Runtimes Supported
53
53
 
54
54
  * dotnetcore3.1
55
+ * dotnet6
56
+ * dotnet8
55
57
  * java8.al2
56
58
  * java11
57
59
  * java17
@@ -3,23 +3,23 @@ newrelic_lambda_cli/api.py,sha256=tkjuR_qkD2uZgXfXPFR6YKnmRiNYkrEmqQEeUgDtNn8,14
3
3
  newrelic_lambda_cli/cliutils.py,sha256=x2pWlL3DJ9t98QNElp_rhawNQoIZ0vd55R2jpo3_oI0,902
4
4
  newrelic_lambda_cli/functions.py,sha256=p57ZUw424BaSUA_Gw8DrYsJOYKROEHEaXgARadqwcP0,2800
5
5
  newrelic_lambda_cli/integrations.py,sha256=X9OuBK_sNfjb1cjbZ1dctd_YTVyEeCCGsPaJp0Bni1U,30864
6
- newrelic_lambda_cli/layers.py,sha256=Gnt9pdG1Tfh79Y8ZWWJyMVXEB6xnW2UaSuo5zoYLa3U,14270
6
+ newrelic_lambda_cli/layers.py,sha256=7ntl48RVEoRO4iiD3yzsxgqNkx013vXO5wQuoP6M0-I,14805
7
7
  newrelic_lambda_cli/permissions.py,sha256=H7v5IMpKaJIWC4Dff2YcTis4BKAAFIJr9IHWUj1LnF4,9093
8
8
  newrelic_lambda_cli/subscriptions.py,sha256=wh6vroU8RfSEwqAMObjPNVPb0TbBxUYYPO_c3mY7miA,6166
9
9
  newrelic_lambda_cli/types.py,sha256=kzubT5cGiI-k6h_8b_iTaj3bnsNwolhjgSbpFJT9iBk,2304
10
- newrelic_lambda_cli/utils.py,sha256=cwYX_zG72EjGT92l43mEAJRygrClUNseKDyssQ6D_2Q,5240
10
+ newrelic_lambda_cli/utils.py,sha256=dYcSFZj7Mpgr5f8YSaAjt80N1q9akcOj1_puL8iRHak,5324
11
11
  newrelic_lambda_cli/cli/__init__.py,sha256=n_QPd3oJqkFxryy-pJ-Y_AsqsmgbTb3dlQCjPJueaYQ,544
12
12
  newrelic_lambda_cli/cli/decorators.py,sha256=a3agkVfy8omkUSL4aKblwSX95xtxYOGASULDYcJDPHk,1786
13
13
  newrelic_lambda_cli/cli/functions.py,sha256=RSh2Cowe1_oQup8q5YRidp03z-BITo2uzvDh4zvLr4I,2601
14
14
  newrelic_lambda_cli/cli/integrations.py,sha256=aQAWcCCU2kBmbF8fLKwKB9bzSY0uipvnojajjTkhqEs,10461
15
- newrelic_lambda_cli/cli/layers.py,sha256=dVlBB0rnhnWEXl9EygEjSiJknNnIQgPbF8L5hsdkMfU,5886
16
- newrelic_lambda_cli/cli/subscriptions.py,sha256=qwV4WUW9fbju0t4-aSfIrPdeEa4QvIJ8bfwTvMnm7zs,4251
15
+ newrelic_lambda_cli/cli/layers.py,sha256=3CTukG79vM2Gzx3NFXsqUEjy5mNQ4rawIh53oQeCyCI,6180
16
+ newrelic_lambda_cli/cli/subscriptions.py,sha256=fmFkGq8AGExOaHzQxMhYfOCmpxhnCwUWbeJUOuTWi60,4545
17
17
  newrelic_lambda_cli/templates/import-template.yaml,sha256=0r1yeoqpnqtEMggWomALkPG10NiANPWWBqz03rChch8,3771
18
18
  newrelic_lambda_cli/templates/license-key-secret.yaml,sha256=ZldQaLXsyF1K2I4X_AsLdH7kRmLkPUYI3talmhqQyHg,1849
19
19
  newrelic_lambda_cli/templates/nr-lambda-integration-role.yaml,sha256=s7T73B_k-mAwgzJrD2xn8YGUNgn2E1V7Exifrl81ViU,2874
20
- newrelic_lambda_cli-0.9.1.dist-info/LICENSE,sha256=uuxDzQm0yfq_tNZX0tQYzsZUVRIF0jm3dBLZUojSYzI,11345
21
- newrelic_lambda_cli-0.9.1.dist-info/METADATA,sha256=rKXVnaSVtnjbs_5xuj_CdvJh8fRMWEpB5_LAnrTACag,21703
22
- newrelic_lambda_cli-0.9.1.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
23
- newrelic_lambda_cli-0.9.1.dist-info/entry_points.txt,sha256=iks2k9Y4WNgIecsDzreIvMV9pGCjwwKTf33LKKvl2A8,65
24
- newrelic_lambda_cli-0.9.1.dist-info/top_level.txt,sha256=dxX2w58VgSUFiPD8C_lFuY-T2C1kjfeY0xi8iTh0r44,20
25
- newrelic_lambda_cli-0.9.1.dist-info/RECORD,,
20
+ newrelic_lambda_cli-0.9.2.dist-info/LICENSE,sha256=uuxDzQm0yfq_tNZX0tQYzsZUVRIF0jm3dBLZUojSYzI,11345
21
+ newrelic_lambda_cli-0.9.2.dist-info/METADATA,sha256=jkaZoQkVvvW6PWth1X6xRGrjMNUjK0VvH1IDU2hyBwI,21723
22
+ newrelic_lambda_cli-0.9.2.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
23
+ newrelic_lambda_cli-0.9.2.dist-info/entry_points.txt,sha256=iks2k9Y4WNgIecsDzreIvMV9pGCjwwKTf33LKKvl2A8,65
24
+ newrelic_lambda_cli-0.9.2.dist-info/top_level.txt,sha256=dxX2w58VgSUFiPD8C_lFuY-T2C1kjfeY0xi8iTh0r44,20
25
+ newrelic_lambda_cli-0.9.2.dist-info/RECORD,,