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?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠