Skip to content

Commit

Permalink
chore(cloudfront): migrate edge function handler (#27805)
Browse files Browse the repository at this point in the history
This PR moves the cloudfront edge function handler from aws-cdk-lib to our new centralized location for custom resource handlers in the @aws-cdk package.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
colifran authored Nov 13, 2023
1 parent e5959a0 commit 0178cd3
Show file tree
Hide file tree
Showing 32 changed files with 35,046 additions and 452 deletions.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@
"Code": {
"ZipFile": "foo"
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"LambdaServiceRoleA8ED4D3B",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "nodejs14.x"
"Runtime": "nodejs18.x"
},
"DependsOn": [
"LambdaServiceRoleA8ED4D3B"
]
},
"LambdaCurrentVersionDF706F6A9a632a294ae3a9cd4d550f1c4e26619d": {
"LambdaCurrentVersionDF706F6Aceabca74f785ac2be6cd5e57eeaf3b05": {
"Type": "AWS::Lambda::Version",
"Properties": {
"FunctionName": {
Expand All @@ -64,11 +64,11 @@
"LambdaParameterCDCFFB68": {
"Type": "AWS::SSM::Parameter",
"Properties": {
"Name": "/cdk/EdgeFunctionArn/eu-west-1/integ-distribution-lambda-cross-region/Lambda",
"Type": "String",
"Value": {
"Ref": "LambdaCurrentVersionDF706F6A9a632a294ae3a9cd4d550f1c4e26619d"
},
"Name": "/cdk/EdgeFunctionArn/eu-west-1/integ-distribution-lambda-cross-region/Lambda"
"Ref": "LambdaCurrentVersionDF706F6Aceabca74f785ac2be6cd5e57eeaf3b05"
}
}
},
"LambdaAliaslive79C8A712": {
Expand All @@ -79,12 +79,46 @@
},
"FunctionVersion": {
"Fn::GetAtt": [
"LambdaCurrentVersionDF706F6A9a632a294ae3a9cd4d550f1c4e26619d",
"LambdaCurrentVersionDF706F6Aceabca74f785ac2be6cd5e57eeaf3b05",
"Version"
]
},
"Name": "live"
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@
"Code": {
"ZipFile": "foo"
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"Lambda2ServiceRole31A072E1",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "nodejs14.x"
"Runtime": "nodejs18.x"
},
"DependsOn": [
"Lambda2ServiceRole31A072E1"
]
},
"Lambda2CurrentVersion72012B74da2ca4572056a1112d9804f75b5b7491": {
"Lambda2CurrentVersion72012B7448e7ccb012bdf87615c944d94691ab6d": {
"Type": "AWS::Lambda::Version",
"Properties": {
"FunctionName": {
Expand All @@ -64,11 +64,11 @@
"Lambda2Parameter3444E17A": {
"Type": "AWS::SSM::Parameter",
"Properties": {
"Name": "/cdk/EdgeFunctionArn/eu-west-1/integ-distribution-lambda-cross-region/Lambda2",
"Type": "String",
"Value": {
"Ref": "Lambda2CurrentVersion72012B74da2ca4572056a1112d9804f75b5b7491"
},
"Name": "/cdk/EdgeFunctionArn/eu-west-1/integ-distribution-lambda-cross-region/Lambda2"
"Ref": "Lambda2CurrentVersion72012B7448e7ccb012bdf87615c944d94691ab6d"
}
}
},
"Lambda2Aliaslive77F6085F": {
Expand All @@ -79,12 +79,46 @@
},
"FunctionVersion": {
"Fn::GetAtt": [
"Lambda2CurrentVersion72012B74da2ca4572056a1112d9804f75b5b7491",
"Lambda2CurrentVersion72012B7448e7ccb012bdf87615c944d94691ab6d",
"Version"
]
},
"Name": "live"
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0178cd3

Please sign in to comment.