@aws-solutions-constructs/aws-fargate-opensearch 2.76.0 → 2.77.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 +57 -18
- package/lib/index.js +1 -1
- package/package.json +7 -6
- package/test/integ.faropn-existing-resources.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
- package/test/integ.faropn-existing-resources.js.snapshot/cdk.out +1 -1
- package/test/integ.faropn-existing-resources.js.snapshot/faropn-existing-resources.assets.json +6 -6
- package/test/integ.faropn-existing-resources.js.snapshot/faropn-existing-resources.template.json +19 -1
- package/test/integ.faropn-existing-resources.js.snapshot/faropnexistingresourcesIntegDefaultTestDeployAssert753D5E58.assets.json +1 -1
- package/test/integ.faropn-existing-resources.js.snapshot/integ.json +1 -1
- package/test/integ.faropn-existing-resources.js.snapshot/manifest.json +8 -2
- package/test/integ.faropn-existing-resources.js.snapshot/tree.json +133 -115
- package/test/integ.faropn-new-resources.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
- package/test/integ.faropn-new-resources.js.snapshot/cdk.out +1 -1
- package/test/integ.faropn-new-resources.js.snapshot/faropn-new-resources.assets.json +6 -6
- package/test/integ.faropn-new-resources.js.snapshot/faropn-new-resources.template.json +19 -1
- package/test/integ.faropn-new-resources.js.snapshot/faropnnewresourcesIntegDefaultTestDeployAssert740558EF.assets.json +1 -1
- package/test/integ.faropn-new-resources.js.snapshot/integ.json +1 -1
- package/test/integ.faropn-new-resources.js.snapshot/manifest.json +8 -2
- package/test/integ.faropn-new-resources.js.snapshot/tree.json +133 -115
- package/test/integ.faropn-existing-resources.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
- package/test/integ.faropn-new-resources.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
- /package/test/integ.faropn-existing-resources.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
- /package/test/integ.faropn-new-resources.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.external=void 0,exports.handler=handler,exports.withRetries=withRetries;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)}}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}}}async function sleep(ms){return new Promise(ok=>setTimeout(ok,ms))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"39.0.0"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "39.0.0",
|
|
3
3
|
"files": {
|
|
4
|
-
"
|
|
4
|
+
"7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200": {
|
|
5
5
|
"source": {
|
|
6
|
-
"path": "asset.
|
|
6
|
+
"path": "asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200",
|
|
7
7
|
"packaging": "zip"
|
|
8
8
|
},
|
|
9
9
|
"destinations": {
|
|
10
10
|
"current_account-us-east-1": {
|
|
11
11
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1",
|
|
12
|
-
"objectKey": "
|
|
12
|
+
"objectKey": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip",
|
|
13
13
|
"region": "us-east-1",
|
|
14
14
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-us-east-1"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"535c92b36e13738fad084cc72163a8dafd62e1abf3ec853140eac740e7a16508": {
|
|
19
19
|
"source": {
|
|
20
20
|
"path": "faropn-new-resources.template.json",
|
|
21
21
|
"packaging": "file"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"destinations": {
|
|
24
24
|
"current_account-us-east-1": {
|
|
25
25
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1",
|
|
26
|
-
"objectKey": "
|
|
26
|
+
"objectKey": "535c92b36e13738fad084cc72163a8dafd62e1abf3ec853140eac740e7a16508.json",
|
|
27
27
|
"region": "us-east-1",
|
|
28
28
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-us-east-1"
|
|
29
29
|
}
|
|
@@ -1254,6 +1254,12 @@
|
|
|
1254
1254
|
"Ref": "VpcPrivateSubnet2Subnet3788AAA1"
|
|
1255
1255
|
}
|
|
1256
1256
|
],
|
|
1257
|
+
"Tags": [
|
|
1258
|
+
{
|
|
1259
|
+
"Key": "Name",
|
|
1260
|
+
"Value": "faropn-new-resources/Vpc"
|
|
1261
|
+
}
|
|
1262
|
+
],
|
|
1257
1263
|
"VpcEndpointType": "Interface",
|
|
1258
1264
|
"VpcId": {
|
|
1259
1265
|
"Ref": "Vpc8378EB38"
|
|
@@ -1281,6 +1287,12 @@
|
|
|
1281
1287
|
"Ref": "VpcPrivateSubnet2Subnet3788AAA1"
|
|
1282
1288
|
}
|
|
1283
1289
|
],
|
|
1290
|
+
"Tags": [
|
|
1291
|
+
{
|
|
1292
|
+
"Key": "Name",
|
|
1293
|
+
"Value": "faropn-new-resources/Vpc"
|
|
1294
|
+
}
|
|
1295
|
+
],
|
|
1284
1296
|
"VpcEndpointType": "Interface",
|
|
1285
1297
|
"VpcId": {
|
|
1286
1298
|
"Ref": "Vpc8378EB38"
|
|
@@ -1316,6 +1328,12 @@
|
|
|
1316
1328
|
]
|
|
1317
1329
|
]
|
|
1318
1330
|
},
|
|
1331
|
+
"Tags": [
|
|
1332
|
+
{
|
|
1333
|
+
"Key": "Name",
|
|
1334
|
+
"Value": "faropn-new-resources/Vpc"
|
|
1335
|
+
}
|
|
1336
|
+
],
|
|
1319
1337
|
"VpcEndpointType": "Gateway",
|
|
1320
1338
|
"VpcId": {
|
|
1321
1339
|
"Ref": "Vpc8378EB38"
|
|
@@ -1395,7 +1413,7 @@
|
|
|
1395
1413
|
"S3Bucket": {
|
|
1396
1414
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1"
|
|
1397
1415
|
},
|
|
1398
|
-
"S3Key": "
|
|
1416
|
+
"S3Key": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip"
|
|
1399
1417
|
},
|
|
1400
1418
|
"Timeout": 900,
|
|
1401
1419
|
"MemorySize": 128,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "39.0.0",
|
|
3
3
|
"artifacts": {
|
|
4
4
|
"faropnnewresourcesIntegDefaultTestDeployAssert740558EF.assets": {
|
|
5
5
|
"type": "cdk:asset-manifest",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"validateOnSynth": false,
|
|
67
67
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-us-east-1",
|
|
68
68
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-us-east-1",
|
|
69
|
-
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1/
|
|
69
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1/535c92b36e13738fad084cc72163a8dafd62e1abf3ec853140eac740e7a16508.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -376,6 +376,12 @@
|
|
|
376
376
|
"data": "VpcS3A5408339"
|
|
377
377
|
}
|
|
378
378
|
],
|
|
379
|
+
"/faropn-new-resources/Custom::VpcRestrictDefaultSGCustomResourceProvider": [
|
|
380
|
+
{
|
|
381
|
+
"type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
|
|
382
|
+
"data": true
|
|
383
|
+
}
|
|
384
|
+
],
|
|
379
385
|
"/faropn-new-resources/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
|
|
380
386
|
{
|
|
381
387
|
"type": "aws:cdk:logicalId",
|