@aws-solutions-constructs/aws-fargate-stepfunctions 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.farstp-new-resources.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
- package/test/integ.farstp-new-resources.js.snapshot/cdk.out +1 -1
- package/test/integ.farstp-new-resources.js.snapshot/farstp-new-resources.assets.json +6 -6
- package/test/integ.farstp-new-resources.js.snapshot/farstp-new-resources.template.json +25 -1
- package/test/integ.farstp-new-resources.js.snapshot/farstpnewresourcesIntegDefaultTestDeployAssert36B3414D.assets.json +1 -1
- package/test/integ.farstp-new-resources.js.snapshot/integ.json +1 -1
- package/test/integ.farstp-new-resources.js.snapshot/manifest.json +8 -2
- package/test/integ.farstp-new-resources.js.snapshot/tree.json +132 -108
- package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
- package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/cdk.out +1 -1
- package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/farstp-no-cloudwatch-alarms.assets.json +6 -6
- package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/farstp-no-cloudwatch-alarms.template.json +25 -1
- package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/farstpnocloudwatchalarmsIntegDefaultTestDeployAssertC4578F22.assets.json +1 -1
- package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/integ.json +1 -1
- package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/manifest.json +8 -2
- package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/tree.json +126 -102
- package/test/integ.farstp-new-resources.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
- package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js +0 -1
- /package/test/integ.farstp-new-resources.js.snapshot/{asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a → asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200}/index.js +0 -0
- /package/test/integ.farstp-no-cloudwatch-alarms.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"}
|
package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/farstp-no-cloudwatch-alarms.assets.json
CHANGED
|
@@ -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
|
+
"e2fa1aa6cc3567daf95f84993c353ae65d2f591ea1a1b4663714316adb6704b2": {
|
|
19
19
|
"source": {
|
|
20
20
|
"path": "farstp-no-cloudwatch-alarms.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": "e2fa1aa6cc3567daf95f84993c353ae65d2f591ea1a1b4663714316adb6704b2.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
|
}
|
package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/farstp-no-cloudwatch-alarms.template.json
CHANGED
|
@@ -568,6 +568,12 @@
|
|
|
568
568
|
"Ref": "VpcPrivateSubnet2Subnet3788AAA1"
|
|
569
569
|
}
|
|
570
570
|
],
|
|
571
|
+
"Tags": [
|
|
572
|
+
{
|
|
573
|
+
"Key": "Name",
|
|
574
|
+
"Value": "farstp-no-cloudwatch-alarms/Vpc"
|
|
575
|
+
}
|
|
576
|
+
],
|
|
571
577
|
"VpcEndpointType": "Interface",
|
|
572
578
|
"VpcId": {
|
|
573
579
|
"Ref": "Vpc8378EB38"
|
|
@@ -595,6 +601,12 @@
|
|
|
595
601
|
"Ref": "VpcPrivateSubnet2Subnet3788AAA1"
|
|
596
602
|
}
|
|
597
603
|
],
|
|
604
|
+
"Tags": [
|
|
605
|
+
{
|
|
606
|
+
"Key": "Name",
|
|
607
|
+
"Value": "farstp-no-cloudwatch-alarms/Vpc"
|
|
608
|
+
}
|
|
609
|
+
],
|
|
598
610
|
"VpcEndpointType": "Interface",
|
|
599
611
|
"VpcId": {
|
|
600
612
|
"Ref": "Vpc8378EB38"
|
|
@@ -630,6 +642,12 @@
|
|
|
630
642
|
]
|
|
631
643
|
]
|
|
632
644
|
},
|
|
645
|
+
"Tags": [
|
|
646
|
+
{
|
|
647
|
+
"Key": "Name",
|
|
648
|
+
"Value": "farstp-no-cloudwatch-alarms/Vpc"
|
|
649
|
+
}
|
|
650
|
+
],
|
|
633
651
|
"VpcEndpointType": "Gateway",
|
|
634
652
|
"VpcId": {
|
|
635
653
|
"Ref": "Vpc8378EB38"
|
|
@@ -657,6 +675,12 @@
|
|
|
657
675
|
"Ref": "VpcPrivateSubnet2Subnet3788AAA1"
|
|
658
676
|
}
|
|
659
677
|
],
|
|
678
|
+
"Tags": [
|
|
679
|
+
{
|
|
680
|
+
"Key": "Name",
|
|
681
|
+
"Value": "farstp-no-cloudwatch-alarms/Vpc"
|
|
682
|
+
}
|
|
683
|
+
],
|
|
660
684
|
"VpcEndpointType": "Interface",
|
|
661
685
|
"VpcId": {
|
|
662
686
|
"Ref": "Vpc8378EB38"
|
|
@@ -736,7 +760,7 @@
|
|
|
736
760
|
"S3Bucket": {
|
|
737
761
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1"
|
|
738
762
|
},
|
|
739
|
-
"S3Key": "
|
|
763
|
+
"S3Key": "7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200.zip"
|
|
740
764
|
},
|
|
741
765
|
"Timeout": 900,
|
|
742
766
|
"MemorySize": 128,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "39.0.0",
|
|
3
3
|
"artifacts": {
|
|
4
4
|
"farstpnocloudwatchalarmsIntegDefaultTestDeployAssertC4578F22.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/e2fa1aa6cc3567daf95f84993c353ae65d2f591ea1a1b4663714316adb6704b2.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -274,6 +274,12 @@
|
|
|
274
274
|
"data": "VpcSTEPFUNCTIONS550F8CB6"
|
|
275
275
|
}
|
|
276
276
|
],
|
|
277
|
+
"/farstp-no-cloudwatch-alarms/Custom::VpcRestrictDefaultSGCustomResourceProvider": [
|
|
278
|
+
{
|
|
279
|
+
"type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
|
|
280
|
+
"data": true
|
|
281
|
+
}
|
|
282
|
+
],
|
|
277
283
|
"/farstp-no-cloudwatch-alarms/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
|
|
278
284
|
{
|
|
279
285
|
"type": "aws:cdk:logicalId",
|