2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Thank you Didier. This is what I was looking for! A succinct and direction answer. Appreciated!
répondu il y a 22 jours
0
Hi Petrus,
This is the way to change the number of automatic retry for the async invocation of a Lambda with the CLI
aws lambda update-function-event-invoke-config --function-name error \
--destination-config '{"OnFailure":{"Destination": "arn:aws:sqs:us-east-2:123456789012:destination"}}'
It's all detailed on this page: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html
In Python, you can do same with Lambda.Client.update_function_configuration(**kwargs)
: all details at https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda/client/update_function_event_invoke_config.html
response = client.update_function_event_invoke_config(
FunctionName='string',
Qualifier='string',
MaximumRetryAttempts=123,
MaximumEventAgeInSeconds=123,
DestinationConfig={
'OnSuccess': {
'Destination': 'string'
},
'OnFailure': {
'Destination': 'string'
}
}
)
MaximumRetryAttempts
is the parameter that you want to configure
Best,
Didier
Contenus pertinents
- demandé il y a un an
- demandé il y a 7 mois
- demandé il y a un an
- demandé il y a 7 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
You should accept Didier's answer, not your own.