Skip to content

Commit

Permalink
docs(batch): add encryption at rest for SQS (#2290)
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorlessa committed May 18, 2023
1 parent 04e25c2 commit 27d197c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion examples/batch_processing/sam/kinesis_batch_processing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AWSTemplateFormatVersion: '2010-09-09'
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: partial batch response sample

Expand Down Expand Up @@ -51,3 +51,6 @@ Resources:
Type: AWS::Kinesis::Stream
Properties:
ShardCount: 1
StreamEncryption:
EncryptionType: KMS
KeyId: alias/aws/kinesis
3 changes: 2 additions & 1 deletion examples/batch_processing/sam/sqs_batch_processing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AWSTemplateFormatVersion: '2010-09-09'
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: partial batch response sample

Expand Down Expand Up @@ -37,6 +37,7 @@ Resources:
Type: AWS::SQS::Queue
Properties:
VisibilityTimeout: 30 # Fn timeout * 6
SqsManagedSseEnabled: true
RedrivePolicy:
maxReceiveCount: 2
deadLetterTargetArn: !GetAtt SampleDLQ.Arn

0 comments on commit 27d197c

Please sign in to comment.