sumologic

How to share file or directory with other container on ECS?

淺唱寂寞╮ 提交于 2019-12-12 19:00:42
问题 I have a Sumologic log collector which is a generic log collector. I want the log collector to see logs and a config file from a different container. How do I accomplish this? 回答1: ECS containers can mount volumes so you would define { "containerDefinitions": [ { "mountPoints": [ { "sourceVolume": "logs", "containerPath": "/tmp/clogs/" }, } ], "volumes": [ { "name": "logs", } ] } ECS also has a nice UI you can click around to set up the volumes at the task definition level, and then the

Terraform: configuring cloudwatch log subscription delivery to lambda?

旧城冷巷雨未停 提交于 2019-11-30 13:41:23
问题 I need to ship my cloudwatch logs to a log analysis service. I've followed along with these articles here and here and got it working by hand, no worries. Now I'm trying to automate all this with Terraform (roles/policies, security groups, cloudwatch log group, lambda, and triggering the lambda from the log group). But I can't figure out how to use TF to configure AWS to trigger the lambda from the cloudwatch logs. I can link the two TF resources together by hand by doing the following (in

Terraform: configuring cloudwatch log subscription delivery to lambda?

守給你的承諾、 提交于 2019-11-30 08:05:26
I need to ship my cloudwatch logs to a log analysis service. I've followed along with these articles here and here and got it working by hand, no worries. Now I'm trying to automate all this with Terraform (roles/policies, security groups, cloudwatch log group, lambda, and triggering the lambda from the log group). But I can't figure out how to use TF to configure AWS to trigger the lambda from the cloudwatch logs. I can link the two TF resources together by hand by doing the following (in the Lambda web console UI): go into the lambda function's "Triggers" section click "Add Trigger" select