Skip to content
experimental: AWS-CDK library for mackerel-container-agent
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
jest.config.js
package.json
renovate.json
tsconfig.json
tslint.json
yarn.lock

README.md

Build Status

cdk-mackerel-container-agent

⚠️ This library is still experimental because underlying AWS CDK is in developer preview release.

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
You can’t perform that action at this time.