@aws-solutions-constructs/aws-alb-lambda 2.51.0 → 2.52.1
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/.eslintignore +2 -0
- package/.jsii +49 -4
- package/integ.config.json +7 -0
- package/lib/index.js +1 -1
- package/package.json +10 -9
- package/test/integ.alblam-privateApiExistingResources.js +7 -3
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblam-privateApiExistingResources.assets.json +62 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblam-privateApiExistingResources.template.json +1332 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.assets.json +19 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.template.json +36 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/cdk.out +1 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/integ.json +12 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/manifest.json +371 -0
- package/test/integ.alblam-privateApiExistingResources.js.snapshot/tree.json +1708 -0
- package/test/integ.alblam-privateApiNewResources.js +7 -3
- package/test/integ.alblam-privateApiNewResources.js.snapshot/alblam-privateApiNewResources.assets.json +62 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/alblam-privateApiNewResources.template.json +1048 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/alblamprivateApiNewResourcesIntegDefaultTestDeployAssertB0CCE59F.assets.json +19 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/alblamprivateApiNewResourcesIntegDefaultTestDeployAssertB0CCE59F.template.json +36 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/cdk.out +1 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/integ.json +12 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/manifest.json +275 -0
- package/test/integ.alblam-privateApiNewResources.js.snapshot/tree.json +1294 -0
- package/test/integ.alblam-publicApiExistingResources.js +7 -3
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblam-publicApiExistingResources.assets.json +62 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblam-publicApiExistingResources.template.json +1332 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblampublicApiExistingResourcesIntegDefaultTestDeployAssert22C8EEFD.assets.json +19 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblampublicApiExistingResourcesIntegDefaultTestDeployAssert22C8EEFD.template.json +36 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/cdk.out +1 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/integ.json +12 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/manifest.json +371 -0
- package/test/integ.alblam-publicApiExistingResources.js.snapshot/tree.json +1708 -0
- package/test/integ.alblam-publicApiNewResources.js +7 -3
- package/test/integ.alblam-publicApiNewResources.js.snapshot/alblam-publicApiNewResources.assets.json +62 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/alblam-publicApiNewResources.template.json +1338 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/alblampublicApiNewResourcesIntegDefaultTestDeployAssert43CC63D2.assets.json +19 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/alblampublicApiNewResourcesIntegDefaultTestDeployAssert43CC63D2.template.json +36 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/cdk.out +1 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/integ.json +12 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/manifest.json +371 -0
- package/test/integ.alblam-publicApiNewResources.js.snapshot/tree.json +1706 -0
- package/test/integ.alblam-twoTargets.js +7 -3
- package/test/integ.alblam-twoTargets.js.snapshot/alblam-twoTargets.assets.json +62 -0
- package/test/integ.alblam-twoTargets.js.snapshot/alblam-twoTargets.template.json +1598 -0
- package/test/integ.alblam-twoTargets.js.snapshot/alblamtwoTargetsIntegDefaultTestDeployAssert4F811416.assets.json +19 -0
- package/test/integ.alblam-twoTargets.js.snapshot/alblamtwoTargetsIntegDefaultTestDeployAssert4F811416.template.json +36 -0
- package/test/integ.alblam-twoTargets.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
- package/test/integ.alblam-twoTargets.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
- package/test/integ.alblam-twoTargets.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
- package/test/integ.alblam-twoTargets.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
- package/test/integ.alblam-twoTargets.js.snapshot/cdk.out +1 -0
- package/test/integ.alblam-twoTargets.js.snapshot/integ.json +12 -0
- package/test/integ.alblam-twoTargets.js.snapshot/manifest.json +413 -0
- package/test/integ.alblam-twoTargets.js.snapshot/tree.json +2067 -0
- package/test/integ.alblam-privateApiExistingResources.expected.json +0 -1378
- package/test/integ.alblam-privateApiNewResources.expected.json +0 -983
- package/test/integ.alblam-publicApiExistingResources.expected.json +0 -1378
- package/test/integ.alblam-publicApiNewResources.expected.json +0 -1386
- package/test/integ.alblam-twoTargets.expected.json +0 -1659
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "36.0.0",
|
|
3
|
+
"files": {
|
|
4
|
+
"21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
|
|
5
|
+
"source": {
|
|
6
|
+
"path": "alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.template.json",
|
|
7
|
+
"packaging": "file"
|
|
8
|
+
},
|
|
9
|
+
"destinations": {
|
|
10
|
+
"current_account-current_region": {
|
|
11
|
+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
12
|
+
"objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
|
|
13
|
+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"dockerImages": {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Parameters": {
|
|
3
|
+
"BootstrapVersion": {
|
|
4
|
+
"Type": "AWS::SSM::Parameter::Value<String>",
|
|
5
|
+
"Default": "/cdk-bootstrap/hnb659fds/version",
|
|
6
|
+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"Rules": {
|
|
10
|
+
"CheckBootstrapVersion": {
|
|
11
|
+
"Assertions": [
|
|
12
|
+
{
|
|
13
|
+
"Assert": {
|
|
14
|
+
"Fn::Not": [
|
|
15
|
+
{
|
|
16
|
+
"Fn::Contains": [
|
|
17
|
+
[
|
|
18
|
+
"1",
|
|
19
|
+
"2",
|
|
20
|
+
"3",
|
|
21
|
+
"4",
|
|
22
|
+
"5"
|
|
23
|
+
],
|
|
24
|
+
{
|
|
25
|
+
"Ref": "BootstrapVersion"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var C=Object.create,i=Object.defineProperty,I=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,P=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,L=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},d=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of w(t))!A.call(e,s)&&s!==o&&i(e,s,{get:()=>t[s],enumerable:!(r=I(t,s))||r.enumerable});return e},l=(e,t,o)=>(o=e!=null?C(P(e)):{},d(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),k=e=>d(i({},"__esModule",{value:!0}),e),U={};L(U,{autoDeleteHandler:()=>S,handler:()=>_}),module.exports=k(U);var h=require("@aws-sdk/client-s3"),y=l(require("https")),m=l(require("url")),a={sendHttpRequest:T,log:b,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",B="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function R(e){return async(t,o)=>{let r={...t,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),t.RequestType==="Delete"&&t.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await u("SUCCESS",t);return}try{let s=await e(r,o),n=D(t,s);await u("SUCCESS",n)}catch(s){let n={...t,Reason:a.includeStackTraces?s.stack:s.message};n.PhysicalResourceId||(t.RequestType==="Create"?(a.log("CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored"),n.PhysicalResourceId=p):a.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify(t)}`)),await u("FAILED",n)}}}function D(e,t={}){let o=t.PhysicalResourceId??e.PhysicalResourceId??e.RequestId;if(e.RequestType==="Delete"&&o!==e.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${e.PhysicalResourceId}" to "${t.PhysicalResourceId}" during deletion`);return{...e,...t,PhysicalResourceId:o}}async function u(e,t){let o={Status:e,Reason:t.Reason??e,StackId:t.StackId,RequestId:t.RequestId,PhysicalResourceId:t.PhysicalResourceId||B,LogicalResourceId:t.LogicalResourceId,NoEcho:t.NoEcho,Data:t.Data};a.log("submit response to cloudformation",o);let r=JSON.stringify(o),s=m.parse(t.ResponseURL),n={hostname:s.hostname,path:s.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(r,"utf8")}};await O({attempts:5,sleep:1e3},a.sendHttpRequest)(n,r)}async function T(e,t){return new Promise((o,r)=>{try{let s=y.request(e,n=>o());s.on("error",r),s.write(t),s.end()}catch(s){r(s)}})}function b(e,...t){console.log(e,...t)}function O(e,t){return async(...o)=>{let r=e.attempts,s=e.sleep;for(;;)try{return await t(...o)}catch(n){if(r--<=0)throw n;await x(Math.floor(Math.random()*s)),s*=2}}}async function x(e){return new Promise(t=>setTimeout(t,e))}var g="aws-cdk:auto-delete-objects",H=JSON.stringify({Version:"2012-10-17",Statement:[]}),c=new h.S3({}),_=R(S);async function S(e){switch(e.RequestType){case"Create":return;case"Update":return F(e);case"Delete":return f(e.ResourceProperties?.BucketName)}}async function F(e){let t=e,o=t.OldResourceProperties?.BucketName,r=t.ResourceProperties?.BucketName;if(r!=null&&o!=null&&r!==o)return f(o)}async function N(e){try{let t=(await c.getBucketPolicy({Bucket:e}))?.Policy??H,o=JSON.parse(t);o.Statement.push({Principal:"*",Effect:"Deny",Action:["s3:PutObject"],Resource:[`arn:aws:s3:::${e}/*`]}),await c.putBucketPolicy({Bucket:e,Policy:JSON.stringify(o)})}catch(t){if(t.name==="NoSuchBucket")throw t;console.log(`Could not set new object deny policy on bucket '${e}' prior to deletion.`)}}async function E(e){let t=await c.listObjectVersions({Bucket:e}),o=[...t.Versions??[],...t.DeleteMarkers??[]];if(o.length===0)return;let r=o.map(s=>({Key:s.Key,VersionId:s.VersionId}));await c.deleteObjects({Bucket:e,Delete:{Objects:r}}),t?.IsTruncated&&await E(e)}async function f(e){if(!e)throw new Error("No BucketName was provided.");try{if(!await W(e)){console.log(`Bucket does not have '${g}' tag, skipping cleaning.`);return}await N(e),await E(e)}catch(t){if(t.name==="NoSuchBucket"){console.log(`Bucket '${e}' does not exist.`);return}throw t}}async function W(e){return(await c.getBucketTagging({Bucket:e})).TagSet?.some(o=>o.Key===g&&o.Value==="true")}
|
|
@@ -0,0 +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};exports.external.log("submit response to cloudformation",json);const responseBody=JSON.stringify(json),parsedUrl=url.parse(event.ResponseURL),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,responseBody){return new Promise((resolve,reject)=>{try{const request=https.request(options,_=>resolve());request.on("error",reject),request.write(responseBody),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))}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var I=Object.create,t=Object.defineProperty,y=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyNames,g=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,G=(r,e)=>{for(var o in e)t(r,o,{get:e[o],enumerable:!0})},n=(r,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of P(e))!l.call(r,s)&&s!==o&&t(r,s,{get:()=>e[s],enumerable:!(i=y(e,s))||i.enumerable});return r},R=(r,e,o)=>(o=r!=null?I(g(r)):{},n(e||!r||!r.__esModule?t(o,"default",{value:r,enumerable:!0}):o,r)),S=r=>n(t({},"__esModule",{value:!0}),r),k={};G(k,{handler:()=>f}),module.exports=S(k);var a=R(require("@aws-sdk/client-ec2")),u=new a.EC2({});function c(r,e){return{GroupId:r,IpPermissions:[{UserIdGroupPairs:[{GroupId:r,UserId:e}],IpProtocol:"-1"}]}}function d(r){return{GroupId:r,IpPermissions:[{IpRanges:[{CidrIp:"0.0.0.0/0"}],IpProtocol:"-1"}]}}async function f(r){let e=r.ResourceProperties.DefaultSecurityGroupId,o=r.ResourceProperties.Account;switch(r.RequestType){case"Create":return p(e,o);case"Update":return h(r);case"Delete":return m(e,o)}}async function h(r){let e=r.OldResourceProperties.DefaultSecurityGroupId,o=r.ResourceProperties.DefaultSecurityGroupId;e!==o&&(await m(e,r.ResourceProperties.Account),await p(o,r.ResourceProperties.Account))}async function p(r,e){try{await u.revokeSecurityGroupEgress(d(r))}catch(o){if(o.name!=="InvalidPermission.NotFound")throw o}try{await u.revokeSecurityGroupIngress(c(r,e))}catch(o){if(o.name!=="InvalidPermission.NotFound")throw o}}async function m(r,e){await u.authorizeSecurityGroupIngress(c(r,e)),await u.authorizeSecurityGroupEgress(d(r))}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"36.0.0"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "36.0.0",
|
|
3
|
+
"testCases": {
|
|
4
|
+
"alblam-privateApiExistingResources/Integ/DefaultTest": {
|
|
5
|
+
"stacks": [
|
|
6
|
+
"alblam-privateApiExistingResources"
|
|
7
|
+
],
|
|
8
|
+
"assertionStack": "alblam-privateApiExistingResources/Integ/DefaultTest/DeployAssert",
|
|
9
|
+
"assertionStackName": "alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "36.0.0",
|
|
3
|
+
"artifacts": {
|
|
4
|
+
"alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.assets": {
|
|
5
|
+
"type": "cdk:asset-manifest",
|
|
6
|
+
"properties": {
|
|
7
|
+
"file": "alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.assets.json",
|
|
8
|
+
"requiresBootstrapStackVersion": 6,
|
|
9
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59": {
|
|
13
|
+
"type": "aws:cloudformation:stack",
|
|
14
|
+
"environment": "aws://unknown-account/unknown-region",
|
|
15
|
+
"properties": {
|
|
16
|
+
"templateFile": "alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.template.json",
|
|
17
|
+
"terminationProtection": false,
|
|
18
|
+
"validateOnSynth": false,
|
|
19
|
+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
20
|
+
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
21
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
|
|
22
|
+
"requiresBootstrapStackVersion": 6,
|
|
23
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
24
|
+
"additionalDependencies": [
|
|
25
|
+
"alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.assets"
|
|
26
|
+
],
|
|
27
|
+
"lookupRole": {
|
|
28
|
+
"arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}",
|
|
29
|
+
"requiresBootstrapStackVersion": 8,
|
|
30
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"dependencies": [
|
|
34
|
+
"alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.assets"
|
|
35
|
+
],
|
|
36
|
+
"metadata": {
|
|
37
|
+
"/alblam-privateApiExistingResources/Integ/DefaultTest/DeployAssert/BootstrapVersion": [
|
|
38
|
+
{
|
|
39
|
+
"type": "aws:cdk:logicalId",
|
|
40
|
+
"data": "BootstrapVersion"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"/alblam-privateApiExistingResources/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion": [
|
|
44
|
+
{
|
|
45
|
+
"type": "aws:cdk:logicalId",
|
|
46
|
+
"data": "CheckBootstrapVersion"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"displayName": "alblam-privateApiExistingResources/Integ/DefaultTest/DeployAssert"
|
|
51
|
+
},
|
|
52
|
+
"alblam-privateApiExistingResources.assets": {
|
|
53
|
+
"type": "cdk:asset-manifest",
|
|
54
|
+
"properties": {
|
|
55
|
+
"file": "alblam-privateApiExistingResources.assets.json",
|
|
56
|
+
"requiresBootstrapStackVersion": 6,
|
|
57
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"alblam-privateApiExistingResources": {
|
|
61
|
+
"type": "aws:cloudformation:stack",
|
|
62
|
+
"environment": "aws://unknown-account/us-east-1",
|
|
63
|
+
"properties": {
|
|
64
|
+
"templateFile": "alblam-privateApiExistingResources.template.json",
|
|
65
|
+
"terminationProtection": false,
|
|
66
|
+
"validateOnSynth": false,
|
|
67
|
+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-us-east-1",
|
|
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/6d25fed1bcf5f575cbf8981292474df33b28f2c42ca40b0cf8e43b7e95ee25f8.json",
|
|
70
|
+
"requiresBootstrapStackVersion": 6,
|
|
71
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
|
+
"additionalDependencies": [
|
|
73
|
+
"alblam-privateApiExistingResources.assets"
|
|
74
|
+
],
|
|
75
|
+
"lookupRole": {
|
|
76
|
+
"arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-us-east-1",
|
|
77
|
+
"requiresBootstrapStackVersion": 8,
|
|
78
|
+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"dependencies": [
|
|
82
|
+
"alblam-privateApiExistingResources.assets"
|
|
83
|
+
],
|
|
84
|
+
"metadata": {
|
|
85
|
+
"/alblam-privateApiExistingResources/Vpc/Resource": [
|
|
86
|
+
{
|
|
87
|
+
"type": "aws:cdk:logicalId",
|
|
88
|
+
"data": "Vpc8378EB38"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet1/Subnet": [
|
|
92
|
+
{
|
|
93
|
+
"type": "aws:cdk:logicalId",
|
|
94
|
+
"data": "VpcPublicSubnet1Subnet5C2D37C4"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet1/RouteTable": [
|
|
98
|
+
{
|
|
99
|
+
"type": "aws:cdk:logicalId",
|
|
100
|
+
"data": "VpcPublicSubnet1RouteTable6C95E38E"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet1/RouteTableAssociation": [
|
|
104
|
+
{
|
|
105
|
+
"type": "aws:cdk:logicalId",
|
|
106
|
+
"data": "VpcPublicSubnet1RouteTableAssociation97140677"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet1/DefaultRoute": [
|
|
110
|
+
{
|
|
111
|
+
"type": "aws:cdk:logicalId",
|
|
112
|
+
"data": "VpcPublicSubnet1DefaultRoute3DA9E72A"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet1/EIP": [
|
|
116
|
+
{
|
|
117
|
+
"type": "aws:cdk:logicalId",
|
|
118
|
+
"data": "VpcPublicSubnet1EIPD7E02669"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet1/NATGateway": [
|
|
122
|
+
{
|
|
123
|
+
"type": "aws:cdk:logicalId",
|
|
124
|
+
"data": "VpcPublicSubnet1NATGateway4D7517AA"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet2/Subnet": [
|
|
128
|
+
{
|
|
129
|
+
"type": "aws:cdk:logicalId",
|
|
130
|
+
"data": "VpcPublicSubnet2Subnet691E08A3"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet2/RouteTable": [
|
|
134
|
+
{
|
|
135
|
+
"type": "aws:cdk:logicalId",
|
|
136
|
+
"data": "VpcPublicSubnet2RouteTable94F7E489"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet2/RouteTableAssociation": [
|
|
140
|
+
{
|
|
141
|
+
"type": "aws:cdk:logicalId",
|
|
142
|
+
"data": "VpcPublicSubnet2RouteTableAssociationDD5762D8"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet2/DefaultRoute": [
|
|
146
|
+
{
|
|
147
|
+
"type": "aws:cdk:logicalId",
|
|
148
|
+
"data": "VpcPublicSubnet2DefaultRoute97F91067"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet2/EIP": [
|
|
152
|
+
{
|
|
153
|
+
"type": "aws:cdk:logicalId",
|
|
154
|
+
"data": "VpcPublicSubnet2EIP3C605A87"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"/alblam-privateApiExistingResources/Vpc/PublicSubnet2/NATGateway": [
|
|
158
|
+
{
|
|
159
|
+
"type": "aws:cdk:logicalId",
|
|
160
|
+
"data": "VpcPublicSubnet2NATGateway9182C01D"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"/alblam-privateApiExistingResources/Vpc/PrivateSubnet1/Subnet": [
|
|
164
|
+
{
|
|
165
|
+
"type": "aws:cdk:logicalId",
|
|
166
|
+
"data": "VpcPrivateSubnet1Subnet536B997A"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"/alblam-privateApiExistingResources/Vpc/PrivateSubnet1/RouteTable": [
|
|
170
|
+
{
|
|
171
|
+
"type": "aws:cdk:logicalId",
|
|
172
|
+
"data": "VpcPrivateSubnet1RouteTableB2C5B500"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"/alblam-privateApiExistingResources/Vpc/PrivateSubnet1/RouteTableAssociation": [
|
|
176
|
+
{
|
|
177
|
+
"type": "aws:cdk:logicalId",
|
|
178
|
+
"data": "VpcPrivateSubnet1RouteTableAssociation70C59FA6"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"/alblam-privateApiExistingResources/Vpc/PrivateSubnet1/DefaultRoute": [
|
|
182
|
+
{
|
|
183
|
+
"type": "aws:cdk:logicalId",
|
|
184
|
+
"data": "VpcPrivateSubnet1DefaultRouteBE02A9ED"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"/alblam-privateApiExistingResources/Vpc/PrivateSubnet2/Subnet": [
|
|
188
|
+
{
|
|
189
|
+
"type": "aws:cdk:logicalId",
|
|
190
|
+
"data": "VpcPrivateSubnet2Subnet3788AAA1"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"/alblam-privateApiExistingResources/Vpc/PrivateSubnet2/RouteTable": [
|
|
194
|
+
{
|
|
195
|
+
"type": "aws:cdk:logicalId",
|
|
196
|
+
"data": "VpcPrivateSubnet2RouteTableA678073B"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"/alblam-privateApiExistingResources/Vpc/PrivateSubnet2/RouteTableAssociation": [
|
|
200
|
+
{
|
|
201
|
+
"type": "aws:cdk:logicalId",
|
|
202
|
+
"data": "VpcPrivateSubnet2RouteTableAssociationA89CAD56"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"/alblam-privateApiExistingResources/Vpc/PrivateSubnet2/DefaultRoute": [
|
|
206
|
+
{
|
|
207
|
+
"type": "aws:cdk:logicalId",
|
|
208
|
+
"data": "VpcPrivateSubnet2DefaultRoute060D2087"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"/alblam-privateApiExistingResources/Vpc/IGW": [
|
|
212
|
+
{
|
|
213
|
+
"type": "aws:cdk:logicalId",
|
|
214
|
+
"data": "VpcIGWD7BA715C"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"/alblam-privateApiExistingResources/Vpc/VPCGW": [
|
|
218
|
+
{
|
|
219
|
+
"type": "aws:cdk:logicalId",
|
|
220
|
+
"data": "VpcVPCGWBF912B6E"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"/alblam-privateApiExistingResources/Vpc/RestrictDefaultSecurityGroupCustomResource/Default": [
|
|
224
|
+
{
|
|
225
|
+
"type": "aws:cdk:logicalId",
|
|
226
|
+
"data": "VpcRestrictDefaultSecurityGroupCustomResourceC73DA2BE"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"/alblam-privateApiExistingResources/Vpc/FlowLog/IAMRole/Resource": [
|
|
230
|
+
{
|
|
231
|
+
"type": "aws:cdk:logicalId",
|
|
232
|
+
"data": "VpcFlowLogIAMRole6A475D41"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"/alblam-privateApiExistingResources/Vpc/FlowLog/IAMRole/DefaultPolicy/Resource": [
|
|
236
|
+
{
|
|
237
|
+
"type": "aws:cdk:logicalId",
|
|
238
|
+
"data": "VpcFlowLogIAMRoleDefaultPolicy406FB995"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"/alblam-privateApiExistingResources/Vpc/FlowLog/LogGroup/Resource": [
|
|
242
|
+
{
|
|
243
|
+
"type": "aws:cdk:logicalId",
|
|
244
|
+
"data": "VpcFlowLogLogGroup7B5C56B9"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"/alblam-privateApiExistingResources/Vpc/FlowLog/FlowLog": [
|
|
248
|
+
{
|
|
249
|
+
"type": "aws:cdk:logicalId",
|
|
250
|
+
"data": "VpcFlowLog8FF33A73"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"/alblam-privateApiExistingResources/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [
|
|
254
|
+
{
|
|
255
|
+
"type": "aws:cdk:logicalId",
|
|
256
|
+
"data": "CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"/alblam-privateApiExistingResources/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler": [
|
|
260
|
+
{
|
|
261
|
+
"type": "aws:cdk:logicalId",
|
|
262
|
+
"data": "CustomVpcRestrictDefaultSGCustomResourceProviderHandlerDC833E5E"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"/alblam-privateApiExistingResources/lambda-sg/Resource": [
|
|
266
|
+
{
|
|
267
|
+
"type": "aws:cdk:logicalId",
|
|
268
|
+
"data": "lambdasg93781054"
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"/alblam-privateApiExistingResources/LambdaFunctionServiceRole/Resource": [
|
|
272
|
+
{
|
|
273
|
+
"type": "aws:cdk:logicalId",
|
|
274
|
+
"data": "LambdaFunctionServiceRole0C4CDE0B"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"/alblam-privateApiExistingResources/LambdaFunctionServiceRole/DefaultPolicy/Resource": [
|
|
278
|
+
{
|
|
279
|
+
"type": "aws:cdk:logicalId",
|
|
280
|
+
"data": "LambdaFunctionServiceRoleDefaultPolicy126C8897"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"/alblam-privateApiExistingResources/LambdaFunction/Resource": [
|
|
284
|
+
{
|
|
285
|
+
"type": "aws:cdk:logicalId",
|
|
286
|
+
"data": "LambdaFunctionBF21E41F"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"/alblam-privateApiExistingResources/LambdaFunction/Invoke2UTWxhlfyqbT5FTn--5jvgbLgj+FfJwzswGk55DU1H--Y=": [
|
|
290
|
+
{
|
|
291
|
+
"type": "aws:cdk:logicalId",
|
|
292
|
+
"data": "LambdaFunctionInvoke2UTWxhlfyqbT5FTn5jvgbLgjFfJwzswGk55DU1HYAD69E89D"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"/alblam-privateApiExistingResources/existing-alb-alb/Resource": [
|
|
296
|
+
{
|
|
297
|
+
"type": "aws:cdk:logicalId",
|
|
298
|
+
"data": "existingalbalb3A941601"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"/alblam-privateApiExistingResources/existing-alb-alb/SecurityGroup/Resource": [
|
|
302
|
+
{
|
|
303
|
+
"type": "aws:cdk:logicalId",
|
|
304
|
+
"data": "existingalbalbSecurityGroupC8DD2920"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"/alblam-privateApiExistingResources/existing-alb/Resource": [
|
|
308
|
+
{
|
|
309
|
+
"type": "aws:cdk:logicalId",
|
|
310
|
+
"data": "existingalb0F60CC48"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"/alblam-privateApiExistingResources/existing-alb/Policy/Resource": [
|
|
314
|
+
{
|
|
315
|
+
"type": "aws:cdk:logicalId",
|
|
316
|
+
"data": "existingalbPolicy6C7AF240"
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"/alblam-privateApiExistingResources/existing-alb/AutoDeleteObjectsCustomResource/Default": [
|
|
320
|
+
{
|
|
321
|
+
"type": "aws:cdk:logicalId",
|
|
322
|
+
"data": "existingalbAutoDeleteObjectsCustomResource67152080"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"/alblam-privateApiExistingResources/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role": [
|
|
326
|
+
{
|
|
327
|
+
"type": "aws:cdk:logicalId",
|
|
328
|
+
"data": "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"/alblam-privateApiExistingResources/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler": [
|
|
332
|
+
{
|
|
333
|
+
"type": "aws:cdk:logicalId",
|
|
334
|
+
"data": "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"/alblam-privateApiExistingResources/test-one/test-one-listener/Resource": [
|
|
338
|
+
{
|
|
339
|
+
"type": "aws:cdk:logicalId",
|
|
340
|
+
"data": "testonetestonelistener51CF582F"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"/alblam-privateApiExistingResources/test-one/tg2-tg/Resource": [
|
|
344
|
+
{
|
|
345
|
+
"type": "aws:cdk:logicalId",
|
|
346
|
+
"data": "testonetg2tg6459EC7C"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"/alblam-privateApiExistingResources/BootstrapVersion": [
|
|
350
|
+
{
|
|
351
|
+
"type": "aws:cdk:logicalId",
|
|
352
|
+
"data": "BootstrapVersion"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"/alblam-privateApiExistingResources/CheckBootstrapVersion": [
|
|
356
|
+
{
|
|
357
|
+
"type": "aws:cdk:logicalId",
|
|
358
|
+
"data": "CheckBootstrapVersion"
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
"displayName": "alblam-privateApiExistingResources"
|
|
363
|
+
},
|
|
364
|
+
"Tree": {
|
|
365
|
+
"type": "cdk:tree",
|
|
366
|
+
"properties": {
|
|
367
|
+
"file": "tree.json"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|