Skip to content

Commit

Permalink
Add SSE-S3 default encryption (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottokruse authored Oct 12, 2021
1 parent 7a1899e commit ab109aa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example-serverless-app-reuse/reuse-auth-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Parameters:
SemanticVersion:
Type: String
Description: Semantic version of the back end
Default: 2.0.12
Default: 2.0.13

HttpHeaders:
Type: String
Expand Down
2 changes: 1 addition & 1 deletion example-serverless-app-reuse/reuse-complete-cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const authAtEdge = new sam.CfnApplication(stack, "AuthorizationAtEdge", {
location: {
applicationId:
"arn:aws:serverlessrepo:us-east-1:520945424137:applications/cloudfront-authorization-at-edge",
semanticVersion: "2.0.12",
semanticVersion: "2.0.13",
},
parameters: {
EmailAddress: "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion example-serverless-app-reuse/reuse-complete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:520945424137:applications/cloudfront-authorization-at-edge
SemanticVersion: 2.0.12
SemanticVersion: 2.0.13
AlanTuring:
Type: AWS::Cognito::UserPoolUser
Properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:520945424137:applications/cloudfront-authorization-at-edge
SemanticVersion: 2.0.12
SemanticVersion: 2.0.13
Parameters:
UserPoolArn: !GetAtt UserPool.Arn
UserPoolClientId: !Ref UserPoolClient
Expand Down
8 changes: 6 additions & 2 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Metadata:
"amplify",
]
HomePageUrl: https://github.com/aws-samples/cloudfront-authorization-at-edge
SemanticVersion: 2.0.12
SemanticVersion: 2.0.13
SourceCodeUrl: https://github.com/aws-samples/cloudfront-authorization-at-edge

Parameters:
Expand Down Expand Up @@ -125,7 +125,7 @@ Parameters:
Version:
Type: String
Description: "Changing this parameter after initial deployment forces redeployment of Lambda@Edge functions"
Default: "2.0.12"
Default: "2.0.13"
LogLevel:
Type: String
Description: "Use for development: setting to a value other than none turns on logging at that level. Warning! This will log sensitive data, use for development only"
Expand Down Expand Up @@ -194,6 +194,10 @@ Resources:
Condition: CreateCloudFrontDistribution
Properties:
AccessControl: Private
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256

CheckAuthHandler:
Type: AWS::Serverless::Function
Expand Down

0 comments on commit ab109aa

Please sign in to comment.