Skip to content
Draft
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ new cloudfront.Distribution(stack, 'Dist', {
new integ.IntegTest(app, 'cdk-integ-distribution-lambda-cross-region', {
testCases: [stack],
diffAssets: true,
// Lambda@Edge functions cannot be immediately deleted due to CloudFront replication.
// They must be disassociated from distributions and replicas cleared (takes hours).
// See: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-delete-replicas.html
stackUpdateWorkflow: false,
});

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.

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
@@ -0,0 +1,134 @@
{
"Resources": {
"NodejsEdgeServiceRoleC35E85DD": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"edgelambda.amazonaws.com",
"lambda.amazonaws.com"
]
}
}
],
"Version": "2012-10-17"
},
"ManagedPolicyArns": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
]
]
}
]
}
},
"NodejsEdgeBE7A686C": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1"
},
"S3Key": "c9f353fdef14350a9b0b6dfb80be0e0dea1614eafbd6b3250bb4ce993a3488ff.zip"
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"NodejsEdgeServiceRoleC35E85DD",
"Arn"
]
},
"Runtime": "nodejs18.x"
},
"DependsOn": [
"NodejsEdgeServiceRoleC35E85DD"
]
},
"NodejsEdgeLogGroupDECAE9D4": {
"Type": "AWS::Logs::LogGroup",
"Properties": {
"LogGroupName": {
"Fn::Join": [
"",
[
"/aws/lambda/",
{
"Ref": "NodejsEdgeBE7A686C"
}
]
]
},
"RetentionInDays": 731
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"NodejsEdgeCurrentVersion1CD8234384abcc4c4bea8fefcd2f6f5388252d25": {
"Type": "AWS::Lambda::Version",
"Properties": {
"FunctionName": {
"Ref": "NodejsEdgeBE7A686C"
}
},
"Metadata": {
"aws:cdk:do-not-refactor": true
}
},
"NodejsEdgeParameterF7F11F91": {
"Type": "AWS::SSM::Parameter",
"Properties": {
"Name": "/cdk/EdgeFunctionArn/eu-west-1/integ-nodejs-edge-function/NodejsEdge",
"Type": "String",
"Value": {
"Ref": "NodejsEdgeCurrentVersion1CD8234384abcc4c4bea8fefcd2f6f5388252d25"
}
}
}
},
"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
Loading