@@ -16,11 +16,11 @@ Parameters:
16
16
17
17
ConfigRecorderDailyResourceTypes :
18
18
Description : List of all resource types to be set to a daily cadence
19
- Default : " AWS::HealthLake::FHIRDatastore ,AWS::Pinpoint::Segment,AWS::Pinpoint::ApplicationSettings "
19
+ Default : " AWS::AutoScaling::AutoScalingGroup ,AWS::AutoScaling::LaunchConfiguration "
20
20
Type : String
21
21
22
- ConfigRecorderRecordingFrequency :
23
- Description : Frequency of recording configuration changes.
22
+ ConfigRecorderDefaultRecordingFrequency :
23
+ Description : Default Frequency of recording configuration changes.
24
24
Default : CONTINUOUS
25
25
Type : String
26
26
AllowedValues :
@@ -29,7 +29,8 @@ Parameters:
29
29
30
30
CloudFormationVersion :
31
31
Type : String
32
- Default : 2
32
+ Default : 1
33
+
33
34
34
35
Resources :
35
36
LambdaZipsBucket :
@@ -39,6 +40,7 @@ Resources:
39
40
ServerSideEncryptionConfiguration :
40
41
- ServerSideEncryptionByDefault :
41
42
SSEAlgorithm : AES256
43
+
42
44
LambdaZipsBucketPolicy :
43
45
Type : AWS::S3::BucketPolicy
44
46
Properties :
@@ -56,19 +58,17 @@ Resources:
56
58
Bool :
57
59
aws:SecureTransport : false
58
60
59
-
60
61
ProducerLambda :
61
62
Type : AWS::Lambda::Function
62
63
DeletionPolicy : Retain
63
64
DependsOn : CopyZips
64
65
Properties :
65
- # FunctionName: ct_configrecorder_override_producer_cf
66
66
Code :
67
67
S3Bucket : !Ref LambdaZipsBucket
68
68
S3Key : ct-blogs-content/ct_configrecorder_override_producer.zip
69
69
Handler : ct_configrecorder_override_producer.lambda_handler
70
70
Role : !GetAtt ProducerLambdaExecutionRole.Arn
71
- Runtime : python3.11
71
+ Runtime : python3.12
72
72
MemorySize : 128
73
73
Timeout : 300
74
74
Architectures :
@@ -94,13 +94,12 @@ Resources:
94
94
DeletionPolicy : Retain
95
95
DependsOn : CopyZips
96
96
Properties :
97
- # FunctionName: ct_configrecorder_override_consumer_cf
98
97
Code :
99
98
S3Bucket : !Ref LambdaZipsBucket
100
- S3Key : ct-blogs-content/ct_configrecorder_override_consumer_v2 .zip
99
+ S3Key : ct-blogs-content/ct_configrecorder_override_consumer .zip
101
100
Handler : ct_configrecorder_override_consumer.lambda_handler
102
101
Role : !GetAtt ConsumerLambdaExecutionRole.Arn
103
- Runtime : python3.11
102
+ Runtime : python3.12
104
103
MemorySize : 128
105
104
Timeout : 180
106
105
Architectures :
@@ -109,9 +108,9 @@ Resources:
109
108
Environment :
110
109
Variables :
111
110
LOG_LEVEL : INFO
112
- CONFIG_RECORDER_DAILY_RESOURCE_LIST : !Ref ConfigRecorderDailyResourceTypes
113
- CONFIG_RECORDER_EXCLUDED_RESOURCE_LIST : !Ref ConfigRecorderExcludedResourceTypes
114
- CONFIG_RECORDER_RECORDING_FREQUENCY : !Ref ConfigRecorderRecordingFrequency
111
+ CONFIG_RECORDER_OVERRIDE_DAILY_RESOURCE_LIST : !Ref ConfigRecorderDailyResourceTypes
112
+ CONFIG_RECORDER_OVERRIDE_EXCLUDED_RESOURCE_LIST : !Ref ConfigRecorderExcludedResourceTypes
113
+ CONFIG_RECORDER_DEFAULT_RECORDING_FREQUENCY : !Ref ConfigRecorderDefaultRecordingFrequency
115
114
116
115
ConsumerLambdaEventSourceMapping :
117
116
Type : AWS::Lambda::EventSourceMapping
@@ -192,7 +191,6 @@ Resources:
192
191
Type : AWS::SQS::Queue
193
192
DeletionPolicy : Retain
194
193
Properties :
195
- # QueueName: ct_configrecorder_override_cf
196
194
VisibilityTimeout : 180
197
195
DelaySeconds : 5
198
196
KmsMasterKeyId : alias/aws/sqs
@@ -209,7 +207,7 @@ Resources:
209
207
"eventName": ["UpdateLandingZone", "CreateManagedAccount", "UpdateManagedAccount"]
210
208
}
211
209
}'
212
- Name : !GetAtt SQSConfigRecorder.QueueName # ct_configrecorder_override_cf
210
+ Name : !GetAtt SQSConfigRecorder.QueueName
213
211
State : ENABLED
214
212
Targets :
215
213
-
@@ -231,14 +229,11 @@ Resources:
231
229
Properties :
232
230
ServiceToken : !GetAtt 'CopyZipsFunction.Arn'
233
231
DestBucket : !Ref 'LambdaZipsBucket'
234
- # update this to match AWS public bucket
235
- # s3://marketplace-sa-resources/ct-blogs-content/ct_configrecorder_override_consumer_v2.zip
236
- # s3://marketplace-sa-resources/ct-blogs-content/ct_configrecorder_override_producer.zip
237
232
SourceBucket : marketplace-sa-resources
238
233
Prefix : ct-blogs-content/
239
234
Objects :
240
235
- ' ct_configrecorder_override_producer.zip'
241
- - ' ct_configrecorder_override_consumer_v2 .zip'
236
+ - ' ct_configrecorder_override_consumer .zip'
242
237
243
238
CopyZipsRole :
244
239
Type : AWS::IAM::Role
@@ -262,8 +257,7 @@ Resources:
262
257
Action :
263
258
- s3:GetObject
264
259
- s3:GetObjectTagging
265
- Resource :
266
- - !Sub ' arn:${AWS::Partition}:s3:::marketplace-sa-resources/ct-blogs-content/*'
260
+ Resource : !Sub 'arn:${AWS::Partition}:s3:::marketplace-sa-resources/ct-blogs-content/*'
267
261
- Effect : Allow
268
262
Action :
269
263
- s3:PutObject
@@ -277,7 +271,7 @@ Resources:
277
271
Properties :
278
272
Description : Copies objects from the S3 bucket to a new location.
279
273
Handler : index.handler
280
- Runtime : python3.10
274
+ Runtime : python3.12
281
275
Role : !GetAtt 'CopyZipsRole.Arn'
282
276
ReservedConcurrentExecutions : 1
283
277
Timeout : 300
0 commit comments