From 0dd2199e0dcea31f03aca30d42e21dea069d359a Mon Sep 17 00:00:00 2001 From: Jerad C Date: Tue, 27 Jun 2023 11:03:30 -0500 Subject: [PATCH] enable SQS server-side encryption --- README.md | 3 ++- docs/cfn-template.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd5c5a04..e54a0fbe 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,8 @@ $ echo "$QUEUE_POLICY" | jq . $ cat << EOF > /tmp/queue-attributes.json { "MessageRetentionPeriod": "300", - "Policy": "$(echo $QUEUE_POLICY | sed 's/\"/\\"/g' | tr -d -s '\n' " ")" + "Policy": "$(echo $QUEUE_POLICY | sed 's/\"/\\"/g' | tr -d -s '\n' " ")", + "SqsManagedSseEnabled": true } EOF diff --git a/docs/cfn-template.yaml b/docs/cfn-template.yaml index 69c605e8..565b0a07 100644 --- a/docs/cfn-template.yaml +++ b/docs/cfn-template.yaml @@ -4,6 +4,7 @@ Resources: Type: 'AWS::SQS::Queue' Properties: MessageRetentionPeriod: 300 + SqsManagedSseEnabled: true QueuePolicy: Type: 'AWS::SQS::QueuePolicy' Properties: