@aereal/cdk-mackerel-container-agent

cdk-mackerel-container-agent provides helper function that adds [mackerel-container-agent][] to your ECS/EKS task definition.

Usage no npm install needed!

<script type="module">
  import aerealCdkMackerelContainerAgent from 'https://cdn.skypack.dev/@aereal/cdk-mackerel-container-agent';
</script>

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