Seth Geoghegan
03/05/2022, 1:21 AMStack sgeoghegan-auth-service-v2-api
Status: failed
Error: Received response status [FAILED] from custom resource. Message returned: Rate exceeded (RequestId: 504a0e96-6604-4185-a300-b9d89f71d315)
Failed to deploy the app
Seth Geoghegan
03/05/2022, 1:22 AMSeth Geoghegan
03/05/2022, 1:22 AM// Set default runtime for all functions
app.setDefaultFunctionProps({
srcPath: 'src',
runtime: 'nodejs14.x',
logRetention: config.logRetentionDays. // <--- this is causing the issue
});
Seth Geoghegan
03/05/2022, 1:22 AMFrank
Frank
Seth Geoghegan
03/05/2022, 1:25 AMlogRetentionRetryOptions
or somethingSeth Geoghegan
03/05/2022, 1:25 AMFrank
Seth Geoghegan
03/05/2022, 3:20 PMexport default function main(app) {
// Set default runtime for all functions
app.setDefaultFunctionProps({
srcPath: 'src',
runtime: 'nodejs14.x',
logRetention: config.logRetentionDays,
// <https://github.com/aws/aws-cdk/issues/8257>
logRetentionRetryOptions: {
base: Duration.millis(500),
maxRetries: 15,
},
});