@aereal/cdk-mackerel-container-agent
v1.4.0
Published
cdk-mackerel-container-agent provides helper function that adds [mackerel-container-agent][] to your ECS/EKS task definition.
Downloads
46
Readme
cdk-mackerel-container-agent
cdk-mackerel-container-agent provides helper function that adds mackerel-container-agent to your ECS/EKS task definition.
Synopsis
import { MackerelContainerAgentDefinition } from "@aereal/cdk-mackerel-container-agent";
import { Ec2TaskDefinition } from "@aws-cdk/aws-ecs";
import { Stack } from "@aws-cdk/cdk";
const stack = new Stack();
const taskDefinition = new Ec2TaskDefinition(stack, "TaskDefinition", {});
new MackerelContainerAgentDefinition(stack, 'mackerel-container-agent', {
apiKey: 'keep-my-secret',
taskDefinition,
})
// now `taskDef` configured well to run mackerel-container-agent