ecs-service-discovery

command module
v0.0.0-...-3fd59df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2018 License: MIT Imports: 13 Imported by: 0

README

ECS Service Discovery

Taylor Swift Volkswagen Build Status MIT license

A service discovery for AWS ECS based on Route53 and AWS LAMBDA

Getting Started

This Lambda function is doing the service discovery for an ECS Cluster.

Environment Variables

PROJECT_ID

The project id which prefixes the parameter in the parameter store.

Parameters

We use our go-aws and the System Manager Parameter Store to inject environment variables in Lambda functions.

/projectId/route53-zone

This is Route 53 hosted zone to be used for constructing the discovery entries (e.g. tortuga.local).

/projectId/route53-zone-id

The Route 53 id of the hosted zone.

/projectId/ecs-cluster

The name of the ECS cluster that should be discoverd.

Policy

We use various policies for the execution.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "logs:CreateLogGroup",
                "logs:CreateLogStream",
                "logs:PutLogEvents"
            ],
            "Resource": [
                "arn:aws:logs:*:*:*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "ecs:*"
            ],
            "Resource": [
                "*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "ec2:*"
            ],
            "Resource": [
                "*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "route53:*",
                "servicediscovery:*"
            ],
            "Resource": "*"
        }
    ]
}

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL