Having a standard log retention period of 1 year is one of the priorities for our IPO preparation. Currently, we have two options to manage log, using bei-common-libraries and Terraform. It creates confusion about where to put the configuration.
In addition, we want to standardize our log management procedure using Terraform as a part of the IaC (Infrastructure as Code) policy.
(If you decide to upgrade your bei-common-libraries to the latest version (you should))
Example: https://github.com/traveloka/terraform-aws-cul-stack-modules/blob/master/culdata-app/cw-log.tf
Example:
terraform import module.culdata_app.aws_cloudwatch_log_group.api_access_log /tvlk/app-java/culdata/api_access.log
Removable code example: https://github.com/traveloka/lpc-quotation/blob/d9b5214ef2053f2df510f50276685ec86d3c79d8/pricing-service/src/main/java/com/traveloka/lpc/pricing/component/PricingServiceComponent.java#L22-L24 (remove logRetentionPeriodInDays part)
(If you decide to use the latest version of bei-common-libraries (you should))
Example: https://github.com/traveloka/terraform-aws-cul-stack-modules/blob/master/culdata-app/cw-log.tf
That's all for the announcement. Thank you for your attention.
This is a copy of https://29022131.atlassian.net/l/c/sF2c2fg1