Skip to content

Commit 074b820

Browse files
authored
Merge pull request #216 from sandeepveldi/serverless-web-app-fix
Disabled Lambda-at-edge and enabled email verify
2 parents f902cc7 + 1135fc4 commit 074b820

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: source/use_cases/aws-serverless-web-app/lib/s3-static-site-stack.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export class S3StaticWebsiteStack extends Stack {
2525
const sourceBucket: string = 'wildrydes-us-east-1';
2626
const sourcePrefix: string = 'WebApplication/1_StaticWebHosting/website/';
2727

28-
const construct = new CloudFrontToS3(this, 'CloudFrontToS3', {});
28+
const construct = new CloudFrontToS3(this, 'CloudFrontToS3', {
29+
insertHttpSecurityHeaders: false
30+
});
2931
const targetBucket: string = construct.s3Bucket?.bucketName || '';
3032

3133
const lambdaFunc = new lambda.Function(this, 'staticContentHandler', {

Diff for: source/use_cases/aws-serverless-web-app/lib/serverless-backend-stack.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ export class ServerlessBackendStack extends Stack {
3535
},
3636
cognitoUserPoolProps: {
3737
userPoolName: 'WileRydes',
38-
userVerification: {}
38+
userVerification: {},
39+
autoVerify: {
40+
email: true
41+
},
42+
selfSignUpEnabled: true
3943
},
4044
apiGatewayProps: {
4145
defaultCorsPreflightOptions: {

0 commit comments

Comments
 (0)