We’ve had this problem before where there’s a conflict for event triggers of S3 and SQS and CloudFormation (CF) throws an error and rolls back:
The following resource(s) failed to update: [ DeliverInvoiceEventSourceMappingSQSLambdaqadeliverinvoice, CreateeInvoiceEventSourceMappingSQSLambdaqacreateeinvoice, ProcessBgFileLambdaPermissionQvaliafilestoreqabgfilesserviceS3, DeliverTenderEventSourceMappingSQSLambdaqadelivertender, ReceiveInvoiceEventSourceMappingSQSLambdaqareceiveinvoice, RouteInvoiceEventSourceMappingSQSLambdaqarouteinvoice, CheckoutAuthLambdaPermissionApiGateway ].
The odd one out here is
CheckoutAuthLambdaPermissionApiGateway which is a Authorization Lambda in API GW…
We have three different AWS acconts (Test, QA and Production) and this has happened from time to time in all environments.
AWS CF then rolls back to a previously know working state. If we remove all the events from AWS manually and re-deploy it works fine again.
Why does this keep happening?