Skip to content

Instantly share code, notes, and snippets.

@nathanpeck
Created July 24, 2018 20:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanpeck/2c7725493f94c4786dc14beaa3ec4030 to your computer and use it in GitHub Desktop.
Save nathanpeck/2c7725493f94c4786dc14beaa3ec4030 to your computer and use it in GitHub Desktop.
TaskDefinition:
Type: AWS::ECS::TaskDefinition
Properties:
Family: my-app
Cpu: 512
Memory: 1024
NetworkMode: awsvpc
RequiresCompatibilities:
- FARGATE
ExecutionRoleArn: <execution role>
TaskRoleArn: <task role>
ContainerDefinitions:
- Name: datadog-agent
Image: datadog/agent:latest
Environment:
- Name: DD_API_KEY
Value: <your Datadog Key here>
- Name: DD_APM_ENABLED
Value: true
- Name: ECS_FARGATE
Value: true
- Name: DD_RECEIVER_PORT
Value: 8126
- Name: my-app
Image: <your app image>
Environment:
- Name: DD_TRACE_AGENT_PORT
Value: 8126
- Name: DD_TRACE_AGENT_HOSTNAME
Value: localhost
- Name: DD_SERVICE_NAME
Value: my-app
- Name: DD_ENV
Value: production
PortMappings:
- ContainerPort: <your app port>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment