@aws-solutions-constructs/aws-lambda-opensearch 2.60.0 → 2.62.0
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.
- package/.jsii +19 -6
- package/lib/index.js +1 -1
- package/package.json +6 -6
- package/test/integ.lamopn-cluster-config.js +2 -2
- package/test/integ.lamopn-cluster-config.js.snapshot/{asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e → asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a}/__entrypoint__.js +1 -1
- package/test/integ.lamopn-cluster-config.js.snapshot/lamopn-cluster-config.assets.json +5 -5
- package/test/integ.lamopn-cluster-config.js.snapshot/lamopn-cluster-config.template.json +120 -3
- package/test/integ.lamopn-cluster-config.js.snapshot/manifest.json +7 -1
- package/test/integ.lamopn-cluster-config.js.snapshot/tree.json +92 -84
- package/test/integ.lamopn-disabled-zone-awareness.js +2 -2
- package/test/{integ.lamopn-existing-vpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e → integ.lamopn-disabled-zone-awareness.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a}/__entrypoint__.js +1 -1
- package/test/integ.lamopn-disabled-zone-awareness.js.snapshot/lamopn-disabled-zone-awareness.assets.json +5 -5
- package/test/integ.lamopn-disabled-zone-awareness.js.snapshot/lamopn-disabled-zone-awareness.template.json +120 -3
- package/test/integ.lamopn-disabled-zone-awareness.js.snapshot/manifest.json +7 -1
- package/test/integ.lamopn-disabled-zone-awareness.js.snapshot/tree.json +87 -79
- package/test/integ.lamopn-domain-arguments.js +3 -2
- package/test/integ.lamopn-domain-arguments.js.snapshot/lamopn-domain-arguments.assets.json +2 -2
- package/test/integ.lamopn-domain-arguments.js.snapshot/lamopn-domain-arguments.template.json +1 -1
- package/test/integ.lamopn-domain-arguments.js.snapshot/manifest.json +1 -1
- package/test/integ.lamopn-domain-arguments.js.snapshot/tree.json +57 -57
- package/test/integ.lamopn-existing-vpc.js +2 -2
- package/test/{integ.lamopn-disabled-zone-awareness.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e → integ.lamopn-existing-vpc.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a}/__entrypoint__.js +1 -1
- package/test/integ.lamopn-existing-vpc.js.snapshot/lamopn-existing-vpc.assets.json +5 -5
- package/test/integ.lamopn-existing-vpc.js.snapshot/lamopn-existing-vpc.template.json +3 -3
- package/test/integ.lamopn-existing-vpc.js.snapshot/manifest.json +1 -1
- package/test/integ.lamopn-existing-vpc.js.snapshot/tree.json +104 -104
- package/test/integ.lamopn-no-arguments.js +3 -2
- package/test/integ.lamopn-no-arguments.js.snapshot/lamopn-no-arguments.assets.json +2 -2
- package/test/integ.lamopn-no-arguments.js.snapshot/lamopn-no-arguments.template.json +1 -1
- package/test/integ.lamopn-no-arguments.js.snapshot/manifest.json +1 -1
- package/test/integ.lamopn-no-arguments.js.snapshot/tree.json +57 -57
- package/test/integ.lamopn-vpc-props.js +2 -2
- package/test/integ.lamopn-vpc-props.js.snapshot/{asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e → asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a}/__entrypoint__.js +1 -1
- package/test/integ.lamopn-vpc-props.js.snapshot/lamopn-vpc-props.assets.json +5 -5
- package/test/integ.lamopn-vpc-props.js.snapshot/lamopn-vpc-props.template.json +3 -3
- package/test/integ.lamopn-vpc-props.js.snapshot/manifest.json +1 -1
- package/test/integ.lamopn-vpc-props.js.snapshot/tree.json +84 -84
- package/test/lambda-opensearch.test.js +6 -6
- /package/test/integ.lamopn-cluster-config.js.snapshot/{asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e → asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a}/index.js +0 -0
- /package/test/integ.lamopn-disabled-zone-awareness.js.snapshot/{asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e → asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a}/index.js +0 -0
- /package/test/integ.lamopn-existing-vpc.js.snapshot/{asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e → asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a}/index.js +0 -0
- /package/test/integ.lamopn-vpc-props.js.snapshot/{asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e → asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a}/index.js +0 -0
|
@@ -23,7 +23,7 @@ const app = new aws_cdk_lib_1.App();
|
|
|
23
23
|
const stack = new aws_cdk_lib_1.Stack(app, defaults.generateIntegStackName(__filename), {});
|
|
24
24
|
const lambdaProps = {
|
|
25
25
|
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
|
|
26
|
-
runtime:
|
|
26
|
+
runtime: defaults.COMMERCIAL_REGION_LAMBDA_NODE_RUNTIME,
|
|
27
27
|
handler: 'index.handler',
|
|
28
28
|
};
|
|
29
29
|
const openSearchDomainProps = {
|
|
@@ -48,4 +48,4 @@ defaults.suppressCustomHandlerCfnNagWarnings(stack, 'Custom::VpcRestrictDefaultS
|
|
|
48
48
|
new integ_tests_alpha_1.IntegTest(stack, 'Integ', { testCases: [
|
|
49
49
|
stack
|
|
50
50
|
] });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtb3BuLWRpc2FibGVkLXpvbmUtYXdhcmVuZXNzLmpzIiwic291c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cbn07XG5cbm5ldyBMYW1iZGFUb09wZW5TZWFyY2goc3RhY2ssICd0ZXN0LWxhbWJkYS1vcGVuc2VhcmNoJywge1xuICBsYW1iZGFGdW5jdGlvblByb3BzOiBsYW1iZGFQcm9wcyxcbiAgb3BlblNlYXJjaERvbWFpbk5hbWU6IGRlZmF1bHRzLkNyZWF0ZVNob3J0VW5pcXVlVGVzdE5hbWUoXCJkbW5cIiksXG4gIG9wZW5TZWFyY2hEb21haW5Qcm9wcyxcbiAgZGVwbG95VnBjOiB0cnVlLFxuICB2cGNQcm9wczoge1xuICAgIG1heEF6czogMVxuICB9XG59KTtcblxuZGVmYXVsdHMuc3VwcHJlc3NDdXN0b21IYW5kbGVyQ2ZuTmFnV2FybmluZ3Moc3RhY2ssICdDdXN0b206OlZwY1Jlc3RyaWN0RGVmYXVsdFNHQ3VzdG9tUmVzb3VyY2VQcm92aWRlcicpO1xuXG4vLyBTeW50aFxubmV3IEludGVnVGVzdChzdGFjaywgJ0ludGVnJywgeyB0ZXN0Q2FzZXM6IFtcbiAgc3RhY2tcbl0gfSk7XG4iXX0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.withRetries=exports.handler=exports.external=void 0;const https=require("https"),url=require("url");exports.external={sendHttpRequest:defaultSendHttpRequest,log:defaultLog,includeStackTraces:!0,userHandlerIndex:"./index"};const CREATE_FAILED_PHYSICAL_ID_MARKER="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",MISSING_PHYSICAL_ID_MARKER="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";async function handler(event,context){const sanitizedEvent={...event,ResponseURL:"..."};if(exports.external.log(JSON.stringify(sanitizedEvent,void 0,2)),event.RequestType==="Delete"&&event.PhysicalResourceId===CREATE_FAILED_PHYSICAL_ID_MARKER){exports.external.log("ignoring DELETE event caused by a failed CREATE event"),await submitResponse("SUCCESS",event);return}try{const userHandler=require(exports.external.userHandlerIndex).handler,result=await userHandler(sanitizedEvent,context),responseEvent=renderResponse(event,result);await submitResponse("SUCCESS",responseEvent)}catch(e){const resp={...event,Reason:exports.external.includeStackTraces?e.stack:e.message};resp.PhysicalResourceId||(event.RequestType==="Create"?(exports.external.log("CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored"),resp.PhysicalResourceId=CREATE_FAILED_PHYSICAL_ID_MARKER):exports.external.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify(event)}`)),await submitResponse("FAILED",resp)}}exports.handler=handler;function renderResponse(cfnRequest,handlerResponse={}){const physicalResourceId=handlerResponse.PhysicalResourceId??cfnRequest.PhysicalResourceId??cfnRequest.RequestId;if(cfnRequest.RequestType==="Delete"&&physicalResourceId!==cfnRequest.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${handlerResponse.PhysicalResourceId}" during deletion`);return{...cfnRequest,...handlerResponse,PhysicalResourceId:physicalResourceId}}async function submitResponse(status,event){const json={Status:status,Reason:event.Reason??status,StackId:event.StackId,RequestId:event.RequestId,PhysicalResourceId:event.PhysicalResourceId||MISSING_PHYSICAL_ID_MARKER,LogicalResourceId:event.LogicalResourceId,NoEcho:event.NoEcho,Data:event.Data}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.withRetries=exports.handler=exports.external=void 0;const https=require("https"),url=require("url");exports.external={sendHttpRequest:defaultSendHttpRequest,log:defaultLog,includeStackTraces:!0,userHandlerIndex:"./index"};const CREATE_FAILED_PHYSICAL_ID_MARKER="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",MISSING_PHYSICAL_ID_MARKER="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";async function handler(event,context){const sanitizedEvent={...event,ResponseURL:"..."};if(exports.external.log(JSON.stringify(sanitizedEvent,void 0,2)),event.RequestType==="Delete"&&event.PhysicalResourceId===CREATE_FAILED_PHYSICAL_ID_MARKER){exports.external.log("ignoring DELETE event caused by a failed CREATE event"),await submitResponse("SUCCESS",event);return}try{const userHandler=require(exports.external.userHandlerIndex).handler,result=await userHandler(sanitizedEvent,context),responseEvent=renderResponse(event,result);await submitResponse("SUCCESS",responseEvent)}catch(e){const resp={...event,Reason:exports.external.includeStackTraces?e.stack:e.message};resp.PhysicalResourceId||(event.RequestType==="Create"?(exports.external.log("CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored"),resp.PhysicalResourceId=CREATE_FAILED_PHYSICAL_ID_MARKER):exports.external.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify(event)}`)),await submitResponse("FAILED",resp)}}exports.handler=handler;function renderResponse(cfnRequest,handlerResponse={}){const physicalResourceId=handlerResponse.PhysicalResourceId??cfnRequest.PhysicalResourceId??cfnRequest.RequestId;if(cfnRequest.RequestType==="Delete"&&physicalResourceId!==cfnRequest.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${handlerResponse.PhysicalResourceId}" during deletion`);return{...cfnRequest,...handlerResponse,PhysicalResourceId:physicalResourceId}}async function submitResponse(status,event){const json={Status:status,Reason:event.Reason??status,StackId:event.StackId,RequestId:event.RequestId,PhysicalResourceId:event.PhysicalResourceId||MISSING_PHYSICAL_ID_MARKER,LogicalResourceId:event.LogicalResourceId,NoEcho:event.NoEcho,Data:event.Data},parsedUrl=url.parse(event.ResponseURL),loggingSafeUrl=`${parsedUrl.protocol}//${parsedUrl.hostname}/${parsedUrl.pathname}?***`;exports.external.log("submit response to cloudformation",loggingSafeUrl,json);const responseBody=JSON.stringify(json),req={hostname:parsedUrl.hostname,path:parsedUrl.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(responseBody,"utf8")}};await withRetries({attempts:5,sleep:1e3},exports.external.sendHttpRequest)(req,responseBody)}async function defaultSendHttpRequest(options,requestBody){return new Promise((resolve,reject)=>{try{const request=https.request(options,response=>{response.resume(),!response.statusCode||response.statusCode>=400?reject(new Error(`Unsuccessful HTTP response: ${response.statusCode}`)):resolve()});request.on("error",reject),request.write(requestBody),request.end()}catch(e){reject(e)}})}function defaultLog(fmt,...params){console.log(fmt,...params)}function withRetries(options,fn){return async(...xs)=>{let attempts=options.attempts,ms=options.sleep;for(;;)try{return await fn(...xs)}catch(e){if(attempts--<=0)throw e;await sleep(Math.floor(Math.random()*ms)),ms*=2}}}exports.withRetries=withRetries;async function sleep(ms){return new Promise(ok=>setTimeout(ok,ms))}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "36.0.0",
|
|
3
3
|
"files": {
|
|
4
|
-
"
|
|
4
|
+
"ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a": {
|
|
5
5
|
"source": {
|
|
6
|
-
"path": "asset.
|
|
6
|
+
"path": "asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a",
|
|
7
7
|
"packaging": "zip"
|
|
8
8
|
},
|
|
9
9
|
"destinations": {
|
|
10
10
|
"current_account-current_region": {
|
|
11
11
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
12
|
-
"objectKey": "
|
|
12
|
+
"objectKey": "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a.zip",
|
|
13
13
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
"
|
|
30
|
+
"12b2c777fcbca6e98014ab2c23c088db65ec69162032901dddf421849421520b": {
|
|
31
31
|
"source": {
|
|
32
32
|
"path": "lamopn-disabled-zone-awareness.template.json",
|
|
33
33
|
"packaging": "file"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"destinations": {
|
|
36
36
|
"current_account-current_region": {
|
|
37
37
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
38
|
-
"objectKey": "
|
|
38
|
+
"objectKey": "12b2c777fcbca6e98014ab2c23c088db65ec69162032901dddf421849421520b.json",
|
|
39
39
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"Arn"
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
|
-
"Runtime": "
|
|
154
|
+
"Runtime": "nodejs20.x",
|
|
155
155
|
"TracingConfig": {
|
|
156
156
|
"Mode": "Active"
|
|
157
157
|
},
|
|
@@ -1154,7 +1154,7 @@
|
|
|
1154
1154
|
"S3Bucket": {
|
|
1155
1155
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
1156
1156
|
},
|
|
1157
|
-
"S3Key": "
|
|
1157
|
+
"S3Key": "ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a.zip"
|
|
1158
1158
|
},
|
|
1159
1159
|
"Timeout": 900,
|
|
1160
1160
|
"MemorySize": 128,
|
|
@@ -1165,7 +1165,15 @@
|
|
|
1165
1165
|
"Arn"
|
|
1166
1166
|
]
|
|
1167
1167
|
},
|
|
1168
|
-
"Runtime":
|
|
1168
|
+
"Runtime": {
|
|
1169
|
+
"Fn::FindInMap": [
|
|
1170
|
+
"LatestNodeRuntimeMap",
|
|
1171
|
+
{
|
|
1172
|
+
"Ref": "AWS::Region"
|
|
1173
|
+
},
|
|
1174
|
+
"value"
|
|
1175
|
+
]
|
|
1176
|
+
},
|
|
1169
1177
|
"Description": "Lambda function for removing all inbound/outbound rules from the VPC default security group"
|
|
1170
1178
|
},
|
|
1171
1179
|
"DependsOn": [
|
|
@@ -1191,6 +1199,115 @@
|
|
|
1191
1199
|
}
|
|
1192
1200
|
}
|
|
1193
1201
|
},
|
|
1202
|
+
"Mappings": {
|
|
1203
|
+
"LatestNodeRuntimeMap": {
|
|
1204
|
+
"af-south-1": {
|
|
1205
|
+
"value": "nodejs20.x"
|
|
1206
|
+
},
|
|
1207
|
+
"ap-east-1": {
|
|
1208
|
+
"value": "nodejs20.x"
|
|
1209
|
+
},
|
|
1210
|
+
"ap-northeast-1": {
|
|
1211
|
+
"value": "nodejs20.x"
|
|
1212
|
+
},
|
|
1213
|
+
"ap-northeast-2": {
|
|
1214
|
+
"value": "nodejs20.x"
|
|
1215
|
+
},
|
|
1216
|
+
"ap-northeast-3": {
|
|
1217
|
+
"value": "nodejs20.x"
|
|
1218
|
+
},
|
|
1219
|
+
"ap-south-1": {
|
|
1220
|
+
"value": "nodejs20.x"
|
|
1221
|
+
},
|
|
1222
|
+
"ap-south-2": {
|
|
1223
|
+
"value": "nodejs20.x"
|
|
1224
|
+
},
|
|
1225
|
+
"ap-southeast-1": {
|
|
1226
|
+
"value": "nodejs20.x"
|
|
1227
|
+
},
|
|
1228
|
+
"ap-southeast-2": {
|
|
1229
|
+
"value": "nodejs20.x"
|
|
1230
|
+
},
|
|
1231
|
+
"ap-southeast-3": {
|
|
1232
|
+
"value": "nodejs20.x"
|
|
1233
|
+
},
|
|
1234
|
+
"ap-southeast-4": {
|
|
1235
|
+
"value": "nodejs20.x"
|
|
1236
|
+
},
|
|
1237
|
+
"ca-central-1": {
|
|
1238
|
+
"value": "nodejs20.x"
|
|
1239
|
+
},
|
|
1240
|
+
"cn-north-1": {
|
|
1241
|
+
"value": "nodejs18.x"
|
|
1242
|
+
},
|
|
1243
|
+
"cn-northwest-1": {
|
|
1244
|
+
"value": "nodejs18.x"
|
|
1245
|
+
},
|
|
1246
|
+
"eu-central-1": {
|
|
1247
|
+
"value": "nodejs20.x"
|
|
1248
|
+
},
|
|
1249
|
+
"eu-central-2": {
|
|
1250
|
+
"value": "nodejs20.x"
|
|
1251
|
+
},
|
|
1252
|
+
"eu-north-1": {
|
|
1253
|
+
"value": "nodejs20.x"
|
|
1254
|
+
},
|
|
1255
|
+
"eu-south-1": {
|
|
1256
|
+
"value": "nodejs20.x"
|
|
1257
|
+
},
|
|
1258
|
+
"eu-south-2": {
|
|
1259
|
+
"value": "nodejs20.x"
|
|
1260
|
+
},
|
|
1261
|
+
"eu-west-1": {
|
|
1262
|
+
"value": "nodejs20.x"
|
|
1263
|
+
},
|
|
1264
|
+
"eu-west-2": {
|
|
1265
|
+
"value": "nodejs20.x"
|
|
1266
|
+
},
|
|
1267
|
+
"eu-west-3": {
|
|
1268
|
+
"value": "nodejs20.x"
|
|
1269
|
+
},
|
|
1270
|
+
"il-central-1": {
|
|
1271
|
+
"value": "nodejs20.x"
|
|
1272
|
+
},
|
|
1273
|
+
"me-central-1": {
|
|
1274
|
+
"value": "nodejs20.x"
|
|
1275
|
+
},
|
|
1276
|
+
"me-south-1": {
|
|
1277
|
+
"value": "nodejs20.x"
|
|
1278
|
+
},
|
|
1279
|
+
"sa-east-1": {
|
|
1280
|
+
"value": "nodejs20.x"
|
|
1281
|
+
},
|
|
1282
|
+
"us-east-1": {
|
|
1283
|
+
"value": "nodejs20.x"
|
|
1284
|
+
},
|
|
1285
|
+
"us-east-2": {
|
|
1286
|
+
"value": "nodejs20.x"
|
|
1287
|
+
},
|
|
1288
|
+
"us-gov-east-1": {
|
|
1289
|
+
"value": "nodejs18.x"
|
|
1290
|
+
},
|
|
1291
|
+
"us-gov-west-1": {
|
|
1292
|
+
"value": "nodejs18.x"
|
|
1293
|
+
},
|
|
1294
|
+
"us-iso-east-1": {
|
|
1295
|
+
"value": "nodejs18.x"
|
|
1296
|
+
},
|
|
1297
|
+
"us-iso-west-1": {
|
|
1298
|
+
"value": "nodejs18.x"
|
|
1299
|
+
},
|
|
1300
|
+
"us-isob-east-1": {
|
|
1301
|
+
"value": "nodejs18.x"
|
|
1302
|
+
},
|
|
1303
|
+
"us-west-1": {
|
|
1304
|
+
"value": "nodejs20.x"
|
|
1305
|
+
},
|
|
1306
|
+
"us-west-2": {
|
|
1307
|
+
"value": "nodejs20.x"
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1194
1311
|
"Parameters": {
|
|
1195
1312
|
"BootstrapVersion": {
|
|
1196
1313
|
"Type": "AWS::SSM::Parameter::Value<String>",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"validateOnSynth": false,
|
|
67
67
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
68
68
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
69
|
-
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/
|
|
69
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/12b2c777fcbca6e98014ab2c23c088db65ec69162032901dddf421849421520b.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -268,6 +268,12 @@
|
|
|
268
268
|
"data": "VpcFlowLog8FF33A73"
|
|
269
269
|
}
|
|
270
270
|
],
|
|
271
|
+
"/lamopn-disabled-zone-awareness/LatestNodeRuntimeMap": [
|
|
272
|
+
{
|
|
273
|
+
"type": "aws:cdk:logicalId",
|
|
274
|
+
"data": "LatestNodeRuntimeMap"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
271
277
|
"/lamopn-disabled-zone-awareness/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
|
|
272
278
|
{
|
|
273
279
|
"type": "aws:cdk:logicalId",
|