File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -80,3 +80,11 @@ resource "aws_lambda_permission" "allow_execution" {
8080  principal      =  . execution_services [count . index ]. service 
8181  source_arn     =  . execution_services [count . index ]. arn 
8282}
83+ 
84+ resource  "aws_lambda_function_event_invoke_config"  "function_event_invoke_config"  {
85+   count                         =  . retries  !=  null  ?  1  :  0 
86+   depends_on                    =  aws_lambda_function . function ]
87+   function_name                 =  . function . function_name 
88+   maximum_event_age_in_seconds  =  . retries . max_event_age_in_seconds 
89+   maximum_retry_attempts        =  . retries . attempts 
90+ }
Original file line number Diff line number Diff line change @@ -153,3 +153,12 @@ variable "logs_non_lambda_subscriptions" {
153153  }))
154154  default  =  
155155}
156+ 
157+ variable  "retries"  {
158+   description  =  " A configuration for lambda asynchronous invocation retries." 
159+   type  =  object ({
160+     attempts                 =  number 
161+     max_event_age_in_seconds =  number 
162+   })
163+   default  =  null 
164+ }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments