Amplify, set retention policy for automatically created log groups

0

I'm just starting with Amplify, I noticed that upon deployment amplify push there are a set of log-groups being created. All these log-groups are configured so their content never expires.

I'd like to configure all these log groups to retain logs for one week only, in order to reduce costs.

I know I could access the console and configure the log groups manually; but besides the manual solution, what I'd like to do is to configure the project in such a way that I wouldn't need to remember to update log retention policy.

In serverless I used to leverage this on a plugin about log retention, that updates the CloudFormation template so all log-groups contain a retention policy.

Is there any way to define such values? If there's no option to configure the values, what could be some alternatives to automate this setup?

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ