Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lambda): add insights version 1.0.178.0 #23836

Merged
merged 6 commits into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions packages/@aws-cdk/aws-lambda/lib/lambda-insights.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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