Skip to content

Commit cb68b92

Browse files
authored
chore: encrypt SNS and Kinesis resources in integration test templates (#3578)
1 parent fcd7c65 commit cb68b92

7 files changed

+19
-0
lines changed

integration/resources/templates/combination/connector_sfn_to_sns_write.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Resources:
1919

2020
MyTopic:
2121
Type: AWS::SNS::Topic
22+
Properties:
23+
KmsMasterKeyId: alias/aws/sns
2224

2325
MyConnector:
2426
Type: AWS::Serverless::Connector

integration/resources/templates/combination/function_with_alias_and_event_sources.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ Resources:
9191
Type: AWS::Kinesis::Stream
9292
Properties:
9393
ShardCount: 1
94+
StreamEncryption:
95+
EncryptionType: KMS
96+
KeyId: alias/aws/kinesis
9497

9598
# What an irony the I can't use AWS::Serverless::SimpleTable here because it doesn't support streams specification
9699
MyTable:

integration/resources/templates/combination/function_with_all_event_types.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ Resources:
132132
Condition: MyCondition
133133
Properties:
134134
ShardCount: 1
135+
StreamEncryption:
136+
EncryptionType: KMS
137+
KeyId: alias/aws/kinesis
135138

136139
MyDynamoDB:
137140
UpdateReplacePolicy: Delete

integration/resources/templates/combination/function_with_all_event_types_condition_false.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ Resources:
113113
Condition: MyCondition
114114
Properties:
115115
ShardCount: 1
116+
StreamEncryption:
117+
EncryptionType: KMS
118+
KeyId: alias/aws/kinesis
116119

117120
MyDynamoDB:
118121
Type: AWS::DynamoDB::Table

integration/resources/templates/combination/function_with_kinesis.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,8 @@ Resources:
4848
Type: AWS::Kinesis::Stream
4949
Properties:
5050
ShardCount: 1
51+
StreamEncryption:
52+
EncryptionType: KMS
53+
KeyId: alias/aws/kinesis
5154
Metadata:
5255
SamTransformTest: true

integration/resources/templates/combination/function_with_kinesis_intrinsics.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,8 @@ Resources:
8080
Type: AWS::Kinesis::Stream
8181
Properties:
8282
ShardCount: 1
83+
StreamEncryption:
84+
EncryptionType: KMS
85+
KeyId: alias/aws/kinesis
8386
Metadata:
8487
SamTransformTest: true

integration/resources/templates/single/basic_function_with_sns_dlq.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ Resources:
1212

1313
MyTopic:
1414
Type: AWS::SNS::Topic
15+
Properties:
16+
KmsMasterKeyId: alias/aws/sns
1517
Metadata:
1618
SamTransformTest: true

0 commit comments

Comments
 (0)