Skip to content

Commit

Permalink
chore: encrypt SNS and Kinesis resources in integration test templates (
Browse files Browse the repository at this point in the history
  • Loading branch information
gracelu0 committed Apr 9, 2024
1 parent fcd7c65 commit cb68b92
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Resources:

MyTopic:
Type: AWS::SNS::Topic
Properties:
KmsMasterKeyId: alias/aws/sns

MyConnector:
Type: AWS::Serverless::Connector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ Resources:
Type: AWS::Kinesis::Stream
Properties:
ShardCount: 1
StreamEncryption:
EncryptionType: KMS
KeyId: alias/aws/kinesis

# What an irony the I can't use AWS::Serverless::SimpleTable here because it doesn't support streams specification
MyTable:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ Resources:
Condition: MyCondition
Properties:
ShardCount: 1
StreamEncryption:
EncryptionType: KMS
KeyId: alias/aws/kinesis

MyDynamoDB:
UpdateReplacePolicy: Delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ Resources:
Condition: MyCondition
Properties:
ShardCount: 1
StreamEncryption:
EncryptionType: KMS
KeyId: alias/aws/kinesis

MyDynamoDB:
Type: AWS::DynamoDB::Table
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ Resources:
Type: AWS::Kinesis::Stream
Properties:
ShardCount: 1
StreamEncryption:
EncryptionType: KMS
KeyId: alias/aws/kinesis
Metadata:
SamTransformTest: true
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,8 @@ Resources:
Type: AWS::Kinesis::Stream
Properties:
ShardCount: 1
StreamEncryption:
EncryptionType: KMS
KeyId: alias/aws/kinesis
Metadata:
SamTransformTest: true
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ Resources:

MyTopic:
Type: AWS::SNS::Topic
Properties:
KmsMasterKeyId: alias/aws/sns
Metadata:
SamTransformTest: true

0 comments on commit cb68b92

Please sign in to comment.