Skip to content

Commit e7ae499

Browse files
TASK: Prevent cache hydrator from running twice on every deployment
Deployments currently update both the lambda configuration and the lambda code on every build; if the deployment rule listens for both events it has the unintended side-effect of running the hydrator twice on every deployment.
1 parent 7b90fba commit e7ae499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrastructure/modules/deploy_lambda/event_bridge.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resource "aws_cloudwatch_event_rule" "cache_hydrator_lambda_deployment_event_rul
77
"detail-type" : ["AWS API Call via CloudTrail"],
88
"detail" : {
99
"eventSource" : ["lambda.amazonaws.com"],
10-
"eventName" : ["CreateFunction20150331", "UpdateFunctionCode20150331v2", "UpdateFunctionConfiguration20150331v2"],
10+
"eventName" : ["CreateFunction20150331", "UpdateFunctionCode20150331v2"],
1111
"requestParameters" : {
1212
"functionName" : [module.content_cache_hydrator_lambda_function.lambda_function_name]
1313
}

0 commit comments

Comments
 (0)