Skip to content

wschiffels/ecs-loki

Repository files navigation

Requirements

No requirements.

Providers

Name Version
aws n/a
template n/a
terraform n/a

Modules

Name Source Version
loki_bucket ../common/s3 n/a

Resources

Name Type
aws_acm_certificate.loki resource
aws_acm_certificate_validation.loki resource
aws_cloudwatch_log_subscription_filter.lambdafunction_logfilter_aws_log_groups resource
aws_cloudwatch_log_subscription_filter.lambdafunction_logfilter_ecs_log_groups resource
aws_ecs_cluster.loki resource
aws_ecs_service.loki resource
aws_ecs_task_definition.loki resource
aws_ecs_task_definition.loki_update resource
aws_iam_policy.loki resource
aws_iam_policy.promtail resource
aws_iam_role.ecs_task_execution_role resource
aws_iam_role.iam_for_lambda resource
aws_iam_role.loki_update_task_role resource
aws_iam_role.task_role resource
aws_iam_role_policy.logs resource
aws_iam_role_policy_attachment.attach_AmazonECSTaskExecutionRolePolicy resource
aws_iam_role_policy_attachment.attach_AmazonSSMReadOnlyAccess resource
aws_iam_role_policy_attachment.attach_CloudWatchLogsFullAccess resource
aws_iam_role_policy_attachment.attach_SecretsManagerReadWrite resource
aws_iam_role_policy_attachment.attach_promtail_policy resource
aws_iam_role_policy_attachment.attach_s3Access resource
aws_lambda_function.lambda_promtail resource
aws_lambda_function_event_invoke_config.lambda_promtail_invoke_config resource
aws_lambda_permission.lambda_promtail_allow_cloudwatch resource
aws_lb.loki resource
aws_lb_listener.loki resource
aws_lb_target_group.loki resource
aws_route53_record.loki resource
aws_route53_record.loki_a resource
aws_secretsmanager_secret.alertmanager_user resource
aws_secretsmanager_secret_version.alertmanager_user resource
aws_security_group.loki resource
aws_service_discovery_private_dns_namespace.loki resource
aws_service_discovery_service.loki resource
aws_caller_identity.current data source
aws_cloudwatch_log_groups.ecs_log_groups data source
aws_cloudwatch_log_groups.lambda_log_groups data source
aws_efs_file_system.efs data source
aws_iam_policy_document.assume-role data source
aws_iam_policy_document.ecs_task_execution_role data source
aws_iam_policy_document.loki data source
aws_iam_policy_document.loki_update_assume_role_policy data source
aws_iam_policy_document.promtail data source
aws_iam_policy_document.task_role data source
aws_region.current data source
aws_route53_zone.selected data source
aws_secretsmanager_secret_version.ssh data source
aws_security_groups.prometheus data source
aws_subnet.private-1a data source
aws_subnet.private-1b data source
aws_vpc.this data source
template_file.loki_container_definition data source
template_file.loki_update_container_definition data source
terraform_remote_state.vpc data source

Inputs

Name Description Type Default Required
aws_environment n/a any n/a yes
container_insights Controls if containerInsights is enabled or disabled bool false no
default_capacity_provider_strategy The capacity provider strategy to use by default for the cluster. Can be one or more. list(map(any))
[
{
"capacity_provider": "FARGATE",
"weight": 1
},
{
"capacity_provider": "FARGATE_SPOT",
"weight": 1
}
]
no
domain_name n/a any n/a yes
ecs_log_group_filter_exceptions A list of cloudwatch loggroups (ECS) to NOT create substcription filters for list(any) [] no
lambda_log_group_filter_exceptions A list of cloudwatch loggroups (Lambda) to NOT create substcription filters for. This list must always include '/aws/lambda/lambda_promtail' list(any)
[
"/aws/lambda/promtail-lambda-function"
]
no
lambda_promtail_image The ECR image URI to pull and use for lambda-promtail. string "docker-promtail:latest" no
loki_bucket_lifecycle enables lifecycle management for loki bucket string "Disabled" no
loki_bucket_lifecycle_expiration_days loki bucket lifecycle expiration days number 90 no
loki_cpu_limit the cpu limit for loki number n/a yes
loki_desired_count the amount of loki containers number 1 no
loki_image the image to use for loki string n/a yes
loki_image_tag the image tag to use for loki string n/a yes
loki_keep_stream Determines whether to keep the CloudWatch Log Stream value as a Loki label when writing logs from lambda-promtail. string "true" no
loki_memory_limit the memory limit for loki number n/a yes
loki_write_address This is the Loki Write API compatible endpoint that you want to write logs to, either promtail or Loki. http://loki..app/loki/api/v1/push string n/a yes
run_on_spot (optional) run grafana on FARGATE_SPOT bool false no

Outputs

No outputs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages