README ¶
ECS Service Discovery
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
Documentation ¶
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.