fargate-logs

AckeeCZ/fargate-logs/aws

Terraform Module HCL AWS

Terraform module for setting up EKS Fargate logging to AWS Cloudwatch

Install
module "fargate-logs" {
source = "AckeeCZ/fargate-logs/aws"
version = "1.0.0"
}
plain text: /constructs/tfmod-ackeecz-fargate-logs-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform AWS Fargate logging to CloudWatch In case you'd like to log from your Fargate pods directly to CloudWatch, use this module. It's an implementation of this article https://docs.aws.amazon.com/eks/latest/userguide/fargate-logging.html This setup is used for JSON logs, in case your application does not logging in JSON, adjust the parsers.conf file. Before you do anything in this module Install pre-commit hooks by running following commands: ``shell script brew install pre-commit terraform-docs pre-commit install ` Terragrunt snippet In case you would like to use the module in Terragrunt setup, don't forget to initialize with correct providers: ``hcl setup local variables, this part is omitted ... ... dependency "eks" { config_path = "../eks/" # eks module from git::git@github.com:te

Inputs (3)
NameTypeDescriptionDefault
projectstringProject name, e.g. customer-portal, used for cloudwatch entities names required
fargate_role_namestringRole name assigned to fargate pod runtime, used here to enable access to CloudWa required
regionstringAWS region where EKS is running required
Resources (4)
aws_iam_policyaws_iam_role_policy_attachmentkubernetes_config_mapkubernetes_namespace
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars4
Forks5
Total downloads6.0k
Inputs3
Resources4
NamespaceAckeeCZ
Updated