Skip to content

Commit

Permalink
fix lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Aug 30, 2023
1 parent 640b750 commit acb97f9
Show file tree
Hide file tree
Showing 12 changed files with 110 additions and 109 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var ProxyAgent = require('proxy-agent');
var { ProxyAgent } = require('proxy-agent');

exports.handler = (_) => {
new ProxyAgent();
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"32.0.0"}
{"version":"34.0.0"}
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"version": "32.0.0",
"version": "34.0.0",
"testCases": {
"lambda-layer-node-proxy-agent-integ-test/DefaultTest": {
"stacks": [
"lambda-layer-node-proxy-agent-integ-stack"
],
"diffAssets": false,
"cdkCommandOptions": {
"deploy": {
"args": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"version": "32.0.0",
"version": "34.0.0",
"files": {
"25f7dc8c7a6d65604d70050f2d9d19d6bfc5060a3d74662fc86589f4385e3a1b": {
"9202bb21d52e07810fc1da0f6acf2dcb75a40a43a9a2efbcfc9ae39535c6260c": {
"source": {
"path": "asset.25f7dc8c7a6d65604d70050f2d9d19d6bfc5060a3d74662fc86589f4385e3a1b.zip",
"path": "asset.9202bb21d52e07810fc1da0f6acf2dcb75a40a43a9a2efbcfc9ae39535c6260c.zip",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "25f7dc8c7a6d65604d70050f2d9d19d6bfc5060a3d74662fc86589f4385e3a1b.zip",
"objectKey": "9202bb21d52e07810fc1da0f6acf2dcb75a40a43a9a2efbcfc9ae39535c6260c.zip",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
},
"06c04d53e96719c6077dd6ff79d66b48853e9fe13d109ba06cbec8c094a69657": {
"345594d759614f5236f4ca12814574d91bda79debb65252f6a19d8d9a316690b": {
"source": {
"path": "asset.06c04d53e96719c6077dd6ff79d66b48853e9fe13d109ba06cbec8c094a69657",
"path": "asset.345594d759614f5236f4ca12814574d91bda79debb65252f6a19d8d9a316690b",
"packaging": "zip"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "06c04d53e96719c6077dd6ff79d66b48853e9fe13d109ba06cbec8c094a69657.zip",
"objectKey": "345594d759614f5236f4ca12814574d91bda79debb65252f6a19d8d9a316690b.zip",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
Expand All @@ -40,15 +40,15 @@
}
}
},
"717cb46bb2d33064915e30e948e39b99dc18fdc9443f842bf050ebb4374345df": {
"60619ad1b8f74ca986f5e145eb363cc3641322bd2df42c61cc5665859f8de686": {
"source": {
"path": "lambda-layer-node-proxy-agent-integ-stack.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "717cb46bb2d33064915e30e948e39b99dc18fdc9443f842bf050ebb4374345df.json",
"objectKey": "60619ad1b8f74ca986f5e145eb363cc3641322bd2df42c61cc5665859f8de686.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "25f7dc8c7a6d65604d70050f2d9d19d6bfc5060a3d74662fc86589f4385e3a1b.zip"
"S3Key": "9202bb21d52e07810fc1da0f6acf2dcb75a40a43a9a2efbcfc9ae39535c6260c.zip"
},
"Description": "/opt/nodejs/node_modules/proxy-agent"
}
},
"LambdaNode14ServiceRole3CFE3F36": {
"LambdaNode16ServiceRole639A5B64": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
Expand Down Expand Up @@ -43,20 +43,14 @@
]
}
},
"LambdaNode146E3D4F58": {
"LambdaNode168CB141CB": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "06c04d53e96719c6077dd6ff79d66b48853e9fe13d109ba06cbec8c094a69657.zip"
},
"Role": {
"Fn::GetAtt": [
"LambdaNode14ServiceRole3CFE3F36",
"Arn"
]
"S3Key": "345594d759614f5236f4ca12814574d91bda79debb65252f6a19d8d9a316690b.zip"
},
"Handler": "index.handler",
"Layers": [
Expand All @@ -65,14 +59,20 @@
}
],
"MemorySize": 512,
"Runtime": "nodejs14.x",
"Role": {
"Fn::GetAtt": [
"LambdaNode16ServiceRole639A5B64",
"Arn"
]
},
"Runtime": "nodejs16.x",
"Timeout": 30
},
"DependsOn": [
"LambdaNode14ServiceRole3CFE3F36"
"LambdaNode16ServiceRole639A5B64"
]
},
"ProviderNode14frameworkonEventServiceRoleFAE87DBE": {
"ProviderNode16frameworkonEventServiceRole2CA3DCA3": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
Expand Down Expand Up @@ -103,7 +103,7 @@
]
}
},
"ProviderNode14frameworkonEventServiceRoleDefaultPolicyE34339F9": {
"ProviderNode16frameworkonEventServiceRoleDefaultPolicyBED16F1E": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyDocument": {
Expand All @@ -114,7 +114,7 @@
"Resource": [
{
"Fn::GetAtt": [
"LambdaNode146E3D4F58",
"LambdaNode168CB141CB",
"Arn"
]
},
Expand All @@ -124,7 +124,7 @@
[
{
"Fn::GetAtt": [
"LambdaNode146E3D4F58",
"LambdaNode168CB141CB",
"Arn"
]
},
Expand All @@ -137,15 +137,15 @@
],
"Version": "2012-10-17"
},
"PolicyName": "ProviderNode14frameworkonEventServiceRoleDefaultPolicyE34339F9",
"PolicyName": "ProviderNode16frameworkonEventServiceRoleDefaultPolicyBED16F1E",
"Roles": [
{
"Ref": "ProviderNode14frameworkonEventServiceRoleFAE87DBE"
"Ref": "ProviderNode16frameworkonEventServiceRole2CA3DCA3"
}
]
}
},
"ProviderNode14frameworkonEventD778512E": {
"ProviderNode16frameworkonEventB6060997": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
Expand All @@ -154,38 +154,38 @@
},
"S3Key": "73b60c2cf141bf58c33cfaa33858f5c84103a0232ba7192d696536488f7731c4.zip"
},
"Role": {
"Fn::GetAtt": [
"ProviderNode14frameworkonEventServiceRoleFAE87DBE",
"Arn"
]
},
"Description": "AWS CDK resource provider framework - onEvent (lambda-layer-node-proxy-agent-integ-stack/ProviderNode14)",
"Description": "AWS CDK resource provider framework - onEvent (lambda-layer-node-proxy-agent-integ-stack/ProviderNode16)",
"Environment": {
"Variables": {
"USER_ON_EVENT_FUNCTION_ARN": {
"Fn::GetAtt": [
"LambdaNode146E3D4F58",
"LambdaNode168CB141CB",
"Arn"
]
}
}
},
"Handler": "framework.onEvent",
"Role": {
"Fn::GetAtt": [
"ProviderNode16frameworkonEventServiceRole2CA3DCA3",
"Arn"
]
},
"Runtime": "nodejs18.x",
"Timeout": 900
},
"DependsOn": [
"ProviderNode14frameworkonEventServiceRoleDefaultPolicyE34339F9",
"ProviderNode14frameworkonEventServiceRoleFAE87DBE"
"ProviderNode16frameworkonEventServiceRoleDefaultPolicyBED16F1E",
"ProviderNode16frameworkonEventServiceRole2CA3DCA3"
]
},
"CustomResourceNode14": {
"CustomResourceNode16": {
"Type": "AWS::CloudFormation::CustomResource",
"Properties": {
"ServiceToken": {
"Fn::GetAtt": [
"ProviderNode14frameworkonEventD778512E",
"ProviderNode16frameworkonEventB6060997",
"Arn"
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "32.0.0",
"version": "34.0.0",
"files": {
"21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
"source": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "32.0.0",
"version": "34.0.0",
"artifacts": {
"lambda-layer-node-proxy-agent-integ-stack.assets": {
"type": "cdk:asset-manifest",
Expand All @@ -17,7 +17,7 @@
"validateOnSynth": false,
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/717cb46bb2d33064915e30e948e39b99dc18fdc9443f842bf050ebb4374345df.json",
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/60619ad1b8f74ca986f5e145eb363cc3641322bd2df42c61cc5665859f8de686.json",
"requiresBootstrapStackVersion": 6,
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
"additionalDependencies": [
Expand All @@ -39,40 +39,40 @@
"data": "NodeProxyAgentLayer924C1971"
}
],
"/lambda-layer-node-proxy-agent-integ-stack/Lambda$Node14/ServiceRole/Resource": [
"/lambda-layer-node-proxy-agent-integ-stack/Lambda$Node16/ServiceRole/Resource": [
{
"type": "aws:cdk:logicalId",
"data": "LambdaNode14ServiceRole3CFE3F36"
"data": "LambdaNode16ServiceRole639A5B64"
}
],
"/lambda-layer-node-proxy-agent-integ-stack/Lambda$Node14/Resource": [
"/lambda-layer-node-proxy-agent-integ-stack/Lambda$Node16/Resource": [
{
"type": "aws:cdk:logicalId",
"data": "LambdaNode146E3D4F58"
"data": "LambdaNode168CB141CB"
}
],
"/lambda-layer-node-proxy-agent-integ-stack/ProviderNode14/framework-onEvent/ServiceRole/Resource": [
"/lambda-layer-node-proxy-agent-integ-stack/ProviderNode16/framework-onEvent/ServiceRole/Resource": [
{
"type": "aws:cdk:logicalId",
"data": "ProviderNode14frameworkonEventServiceRoleFAE87DBE"
"data": "ProviderNode16frameworkonEventServiceRole2CA3DCA3"
}
],
"/lambda-layer-node-proxy-agent-integ-stack/ProviderNode14/framework-onEvent/ServiceRole/DefaultPolicy/Resource": [
"/lambda-layer-node-proxy-agent-integ-stack/ProviderNode16/framework-onEvent/ServiceRole/DefaultPolicy/Resource": [
{
"type": "aws:cdk:logicalId",
"data": "ProviderNode14frameworkonEventServiceRoleDefaultPolicyE34339F9"
"data": "ProviderNode16frameworkonEventServiceRoleDefaultPolicyBED16F1E"
}
],
"/lambda-layer-node-proxy-agent-integ-stack/ProviderNode14/framework-onEvent/Resource": [
"/lambda-layer-node-proxy-agent-integ-stack/ProviderNode16/framework-onEvent/Resource": [
{
"type": "aws:cdk:logicalId",
"data": "ProviderNode14frameworkonEventD778512E"
"data": "ProviderNode16frameworkonEventB6060997"
}
],
"/lambda-layer-node-proxy-agent-integ-stack/CustomResourceNode14/Default": [
"/lambda-layer-node-proxy-agent-integ-stack/CustomResourceNode16/Default": [
{
"type": "aws:cdk:logicalId",
"data": "CustomResourceNode14"
"data": "CustomResourceNode16"
}
],
"/lambda-layer-node-proxy-agent-integ-stack/BootstrapVersion": [
Expand Down
Loading

0 comments on commit acb97f9

Please sign in to comment.