Skip to content

Commit

Permalink
[Bug Fix] static-website/lambdaedge-index-document - Support uppercas…
Browse files Browse the repository at this point in the history
…e file endings (widdix#314)
  • Loading branch information
oaksenov authored and michaelwittig committed May 21, 2019
1 parent 85c3638 commit 3a8e974
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static-website/lambdaedge-index-document.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ Resources:
Type: 'AWS::Lambda::Function'
Properties:
Code:
# If you change the ZipFile, rename the logical id LambdaVersionV4 to trigger a new version creation!
# If you change the ZipFile, rename the logical id LambdaVersionV5 to trigger a new version creation!
ZipFile: !Sub |
'use strict';
const regex = /\.[a-z0-9]+$/;
const regex = /\.[A-Za-z0-9]+$/;
const indexDocument = '${IndexDocument}';
const domainName = '${DomainName}'.toLowerCase();
const redirectDomainName = '${RedirectDomainName}'.toLowerCase();
Expand Down Expand Up @@ -129,7 +129,7 @@ Resources:
Properties:
LogGroupName: !Sub '/aws/lambda/${LambdaFunction}'
RetentionInDays: !Ref LogsRetentionInDays
LambdaVersionV4:
LambdaVersionV5:
Type: 'AWS::Lambda::Version'
Properties:
FunctionName: !Ref LambdaFunction
Expand All @@ -145,4 +145,4 @@ Outputs:
Value: !Sub '${AWS::StackName}'
LambdaVersionArn:
Description: 'Version ARN of Lambda@Edge function.'
Value: !Ref LambdaVersionV4
Value: !Ref LambdaVersionV5

0 comments on commit 3a8e974

Please sign in to comment.