Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into huijbers/fix-tests-cl…
Browse files Browse the repository at this point in the history
…oudassembly
  • Loading branch information
rix0rrr committed Nov 19, 2024
2 parents 110d231 + b8f47c8 commit f0cdedf
Show file tree
Hide file tree
Showing 57 changed files with 102,879 additions and 117 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.

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,254 @@
{
"Resources": {
"MyFunctionServiceRole3C357FF2": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
}
}
],
"Version": "2012-10-17"
},
"ManagedPolicyArns": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
]
]
}
]
}
},
"MyFunction3BAA72D1": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"ZipFile": "\n exports.handler = async () => ({\n statusCode: 200,\n body: 'Hello!!'\n });\n "
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"MyFunctionServiceRole3C357FF2",
"Arn"
]
},
"Runtime": "nodejs20.x"
},
"DependsOn": [
"MyFunctionServiceRole3C357FF2"
]
},
"MyFunctionCurrentVersion197490AFf33de88117a39ef9096915f994a6caf9": {
"Type": "AWS::Lambda::Version",
"Properties": {
"FunctionName": {
"Ref": "MyFunction3BAA72D1"
}
}
},
"MyFunctionAliasLive372006BC": {
"Type": "AWS::Lambda::Alias",
"Properties": {
"FunctionName": {
"Ref": "MyFunction3BAA72D1"
},
"FunctionVersion": {
"Fn::GetAtt": [
"MyFunctionCurrentVersion197490AFf33de88117a39ef9096915f994a6caf9",
"Version"
]
},
"Name": "Live",
"ProvisionedConcurrencyConfig": {
"ProvisionedConcurrentExecutions": 5
}
}
},
"MyFunctionAliasLiveFunctionUrl4C98949A": {
"Type": "AWS::Lambda::Url",
"Properties": {
"AuthType": "AWS_IAM",
"Qualifier": "Live",
"TargetFunctionArn": {
"Fn::GetAtt": [
"MyFunction3BAA72D1",
"Arn"
]
}
},
"DependsOn": [
"MyFunctionAliasLive372006BC"
]
},
"AliasDistributionOrigin1FunctionUrlOriginAccessControl37A840CE": {
"Type": "AWS::CloudFront::OriginAccessControl",
"Properties": {
"OriginAccessControlConfig": {
"Name": "integcloudfrontfunctionurlornctionUrlOriginAccessControlFCD34EE1",
"OriginAccessControlOriginType": "lambda",
"SigningBehavior": "always",
"SigningProtocol": "sigv4"
}
}
},
"AliasDistributionOrigin1InvokeFromApiForintegcloudfrontfunctionurloriginoacAliasDistributionOrigin11CF22ED58F6A0AB2": {
"Type": "AWS::Lambda::Permission",
"Properties": {
"Action": "lambda:InvokeFunctionUrl",
"FunctionName": {
"Fn::GetAtt": [
"MyFunctionAliasLiveFunctionUrl4C98949A",
"FunctionArn"
]
},
"Principal": "cloudfront.amazonaws.com",
"SourceArn": {
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":cloudfront::",
{
"Ref": "AWS::AccountId"
},
":distribution/",
{
"Ref": "AliasDistribution1027E46E"
}
]
]
}
}
},
"AliasDistribution1027E46E": {
"Type": "AWS::CloudFront::Distribution",
"Properties": {
"DistributionConfig": {
"DefaultCacheBehavior": {
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
"Compress": true,
"TargetOriginId": "integcloudfrontfunctionurloriginoacAliasDistributionOrigin11CF22ED5",
"ViewerProtocolPolicy": "allow-all"
},
"Enabled": true,
"HttpVersion": "http2",
"IPV6Enabled": true,
"Origins": [
{
"CustomOriginConfig": {
"OriginProtocolPolicy": "https-only",
"OriginSSLProtocols": [
"TLSv1.2"
]
},
"DomainName": {
"Fn::Select": [
2,
{
"Fn::Split": [
"/",
{
"Fn::GetAtt": [
"MyFunctionAliasLiveFunctionUrl4C98949A",
"FunctionUrl"
]
}
]
}
]
},
"Id": "integcloudfrontfunctionurloriginoacAliasDistributionOrigin11CF22ED5",
"OriginAccessControlId": {
"Fn::GetAtt": [
"AliasDistributionOrigin1FunctionUrlOriginAccessControl37A840CE",
"Id"
]
}
}
]
}
}
}
},
"Outputs": {
"ExportsOutputFnGetAttMyFunctionAliasLiveFunctionUrl4C98949AFunctionUrl8F680E6D": {
"Value": {
"Fn::GetAtt": [
"MyFunctionAliasLiveFunctionUrl4C98949A",
"FunctionUrl"
]
},
"Export": {
"Name": "integ-cloudfront-function-url-origin-oac:ExportsOutputFnGetAttMyFunctionAliasLiveFunctionUrl4C98949AFunctionUrl8F680E6D"
}
},
"ExportsOutputRefAliasDistribution1027E46ED597E5E3": {
"Value": {
"Ref": "AliasDistribution1027E46E"
},
"Export": {
"Name": "integ-cloudfront-function-url-origin-oac:ExportsOutputRefAliasDistribution1027E46ED597E5E3"
}
},
"ExportsOutputFnGetAttAliasDistribution1027E46EDomainName9B50152C": {
"Value": {
"Fn::GetAtt": [
"AliasDistribution1027E46E",
"DomainName"
]
},
"Export": {
"Name": "integ-cloudfront-function-url-origin-oac:ExportsOutputFnGetAttAliasDistribution1027E46EDomainName9B50152C"
}
}
},
"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.

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

Loading

0 comments on commit f0cdedf

Please sign in to comment.