Skip to content

Commit

Permalink
feat(lambda): add insights version 1.0.178.0 (#23836)
Browse files Browse the repository at this point in the history
----

### All Submissions:

* [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Construct Runtime Dependencies:

* [ ] This PR adds new construct runtime dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
kaizencc committed Feb 13, 2023
1 parent 1a07081 commit 5272908
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/@aws-cdk/aws-lambda/lib/lambda-insights.ts
Expand Up @@ -21,7 +21,6 @@ interface InsightsBindConfig {
* Version of CloudWatch Lambda Insights
*/
export abstract class LambdaInsightsVersion {

/**
* Version 1.0.54.0
*/
Expand Down Expand Up @@ -57,6 +56,11 @@ export abstract class LambdaInsightsVersion {
*/
public static readonly VERSION_1_0_143_0 = LambdaInsightsVersion.fromInsightsVersion('1.0.143.0');

/**
* Version 1.0.178.0
*/
public static readonly VERSION_1_0_178_0 = LambdaInsightsVersion.fromInsightsVersion('1.0.178.0');

/**
* Use the insights extension associated with the provided ARN. Make sure the ARN is associated
* with same region as your function
Expand All @@ -75,7 +79,6 @@ export abstract class LambdaInsightsVersion {

// Use the verison to build the object. Not meant to be called by the user -- user should use e.g. VERSION_1_0_54_0
private static fromInsightsVersion(insightsVersion: string): LambdaInsightsVersion {

class InsightsVersion extends LambdaInsightsVersion {
public readonly layerVersionArn = Lazy.uncachedString({
produce: (context) => getVersionArn(context.scope, insightsVersion),
Expand Down
14 changes: 14 additions & 0 deletions packages/@aws-cdk/region-info/build-tools/fact-tables.ts
Expand Up @@ -200,6 +200,20 @@ export const APPMESH_ECR_ACCOUNTS: { [region: string]: string } = {

// https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Lambda-Insights-extension-versions.html
export const CLOUDWATCH_LAMBDA_INSIGHTS_ARNS: { [key: string]: any } = {
'1.0.178.0': {
x86_64: {
// Asia Pacific (Hyderabad)
'ap-south-2': 'arn:aws:lambda:ap-south-2:891564319516:layer:LambdaInsightsExtension:6',
// Asia Pacific (Jakarta)
'ap-southeast-3': 'arn:aws:lambda:ap-southeast-3:439286490199:layer:LambdaInsightsExtension:8',
// Europe (Spain)
'eu-south-2': 'arn:aws:lambda:eu-south-2:352183217350:layer:LambdaInsightsExtension:2',
// Europe (Zurich)
'eu-central-2': 'arn:aws:lambda:eu-central-2:033019950311:layer:LambdaInsightsExtension:7',
// Middle East (UAE)
'me-central-1': 'arn:aws:lambda:me-central-1:732604637566:layer:LambdaInsightsExtension:6',
},
},
'1.0.143.0': {
x86_64: {
// US East (N. Virginia)
Expand Down
Expand Up @@ -13,6 +13,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:af-south-1:012438385374:layer:LambdaInsightsExtension:9",
"1.0.135.0": "arn:aws:lambda:af-south-1:012438385374:layer:LambdaInsightsExtension:11",
"1.0.143.0": "arn:aws:lambda:af-south-1:012438385374:layer:LambdaInsightsExtension:13",
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -47,6 +48,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:ap-east-1:519774774795:layer:LambdaInsightsExtension:9",
"1.0.135.0": "arn:aws:lambda:ap-east-1:519774774795:layer:LambdaInsightsExtension:11",
"1.0.143.0": "arn:aws:lambda:ap-east-1:519774774795:layer:LambdaInsightsExtension:13",
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -81,6 +83,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:ap-northeast-1:580247275435:layer:LambdaInsightsExtension:23",
"1.0.135.0": "arn:aws:lambda:ap-northeast-1:580247275435:layer:LambdaInsightsExtension:25",
"1.0.143.0": "arn:aws:lambda:ap-northeast-1:580247275435:layer:LambdaInsightsExtension:31",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:ap-northeast-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:ap-northeast-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:ap-northeast-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -115,6 +118,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:ap-northeast-2:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:ap-northeast-2:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:ap-northeast-2:580247275435:layer:LambdaInsightsExtension:20",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:ap-northeast-2:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:ap-northeast-2:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:ap-northeast-2:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -149,6 +153,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": "arn:aws:lambda:ap-northeast-3:194566237122:layer:LambdaInsightsExtension:1",
"1.0.143.0": "arn:aws:lambda:ap-northeast-3:194566237122:layer:LambdaInsightsExtension:2",
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -183,6 +188,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:ap-south-1:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:ap-south-1:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:ap-south-1:580247275435:layer:LambdaInsightsExtension:21",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:ap-south-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:ap-south-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:ap-south-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -217,6 +223,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": "arn:aws:lambda:ap-south-2:891564319516:layer:LambdaInsightsExtension:6",
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -251,6 +258,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:ap-southeast-1:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:ap-southeast-1:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:ap-southeast-1:580247275435:layer:LambdaInsightsExtension:21",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:ap-southeast-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:ap-southeast-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:ap-southeast-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -285,6 +293,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:ap-southeast-2:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:ap-southeast-2:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:ap-southeast-2:580247275435:layer:LambdaInsightsExtension:21",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:ap-southeast-2:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:ap-southeast-2:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:ap-southeast-2:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -319,6 +328,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": "arn:aws:lambda:ap-southeast-3:439286490199:layer:LambdaInsightsExtension:8",
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -353,6 +363,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:ca-central-1:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:ca-central-1:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:ca-central-1:580247275435:layer:LambdaInsightsExtension:20",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:ca-central-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:ca-central-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:ca-central-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -387,6 +398,7 @@ Object {
"1.0.119.0": "arn:aws-cn:lambda:cn-north-1:488211338238:layer:LambdaInsightsExtension:9",
"1.0.135.0": "arn:aws-cn:lambda:cn-north-1:488211338238:layer:LambdaInsightsExtension:11",
"1.0.143.0": "arn:aws-cn:lambda:cn-north-1:488211338238:layer:LambdaInsightsExtension:14",
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -421,6 +433,7 @@ Object {
"1.0.119.0": "arn:aws-cn:lambda:cn-northwest-1:488211338238:layer:LambdaInsightsExtension:9",
"1.0.135.0": "arn:aws-cn:lambda:cn-northwest-1:488211338238:layer:LambdaInsightsExtension:11",
"1.0.143.0": "arn:aws-cn:lambda:cn-northwest-1:488211338238:layer:LambdaInsightsExtension:14",
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -455,6 +468,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:eu-central-1:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:eu-central-1:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:eu-central-1:580247275435:layer:LambdaInsightsExtension:21",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:eu-central-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:eu-central-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:eu-central-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -489,6 +503,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": "arn:aws:lambda:eu-central-2:033019950311:layer:LambdaInsightsExtension:7",
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -523,6 +538,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:eu-north-1:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:eu-north-1:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:eu-north-1:580247275435:layer:LambdaInsightsExtension:20",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:eu-north-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:eu-north-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:eu-north-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -557,6 +573,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:eu-south-1:339249233099:layer:LambdaInsightsExtension:9",
"1.0.135.0": "arn:aws:lambda:eu-south-1:339249233099:layer:LambdaInsightsExtension:11",
"1.0.143.0": "arn:aws:lambda:eu-south-1:339249233099:layer:LambdaInsightsExtension:13",
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -591,6 +608,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": "arn:aws:lambda:eu-south-2:352183217350:layer:LambdaInsightsExtension:2",
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -625,6 +643,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:eu-west-1:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:eu-west-1:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:eu-west-1:580247275435:layer:LambdaInsightsExtension:21",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:eu-west-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:eu-west-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:eu-west-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -659,6 +678,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension:21",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -693,6 +713,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:eu-west-3:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:eu-west-3:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:eu-west-3:580247275435:layer:LambdaInsightsExtension:20",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:eu-west-3:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:eu-west-3:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:eu-west-3:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -727,6 +748,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": "arn:aws:lambda:me-central-1:732604637566:layer:LambdaInsightsExtension:6",
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -761,6 +783,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:me-south-1:285320876703:layer:LambdaInsightsExtension:9",
"1.0.135.0": "arn:aws:lambda:me-south-1:285320876703:layer:LambdaInsightsExtension:11",
"1.0.143.0": "arn:aws:lambda:me-south-1:285320876703:layer:LambdaInsightsExtension:13",
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -795,6 +818,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:sa-east-1:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:sa-east-1:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:sa-east-1:580247275435:layer:LambdaInsightsExtension:20",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:sa-east-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:sa-east-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:sa-east-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -829,6 +853,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:us-east-1:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:us-east-1:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:us-east-1:580247275435:layer:LambdaInsightsExtension:21",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:us-east-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:us-east-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:us-east-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -863,6 +888,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:us-east-2:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:us-east-2:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:us-east-2:580247275435:layer:LambdaInsightsExtension:21",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:us-east-2:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:us-east-2:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:us-east-2:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -897,6 +923,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -931,6 +958,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -965,6 +993,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -999,6 +1028,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -1033,6 +1063,7 @@ Object {
"1.0.119.0": undefined,
"1.0.135.0": undefined,
"1.0.143.0": undefined,
"1.0.178.0": undefined,
"1.0.54.0": undefined,
"1.0.86.0": undefined,
"1.0.89.0": undefined,
Expand Down Expand Up @@ -1067,6 +1098,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:us-west-1:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:us-west-1:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:us-west-1:580247275435:layer:LambdaInsightsExtension:20",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:us-west-1:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:us-west-1:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:us-west-1:580247275435:layer:LambdaInsightsExtension:12",
Expand Down Expand Up @@ -1101,6 +1133,7 @@ Object {
"1.0.119.0": "arn:aws:lambda:us-west-2:580247275435:layer:LambdaInsightsExtension:16",
"1.0.135.0": "arn:aws:lambda:us-west-2:580247275435:layer:LambdaInsightsExtension:18",
"1.0.143.0": "arn:aws:lambda:us-west-2:580247275435:layer:LambdaInsightsExtension:21",
"1.0.178.0": undefined,
"1.0.54.0": "arn:aws:lambda:us-west-2:580247275435:layer:LambdaInsightsExtension:2",
"1.0.86.0": "arn:aws:lambda:us-west-2:580247275435:layer:LambdaInsightsExtension:11",
"1.0.89.0": "arn:aws:lambda:us-west-2:580247275435:layer:LambdaInsightsExtension:12",
Expand Down

0 comments on commit 5272908

Please sign in to comment.