Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hossein761/61ca1016d9a8f41cb0e59da23a6fd071 to your computer and use it in GitHub Desktop.
Save hossein761/61ca1016d9a8f41cb0e59da23a6fd071 to your computer and use it in GitHub Desktop.
Sample AWS EC2 Task Definition
{
"family": "",
"taskRoleArn": "",
"networkMode": "",
"containerDefinitions": [
{
"memory": 1024,
"cpu": 100,
"links": ["mysql"],
"portMappings": [
{
"hostPort": 8080,
"containerPort": 8080,
"protocol": "tcp"
}
],
"essential": true,
"name": "fake-container",
"environment": [
{
"name": "JAVA_OPTS",
"value": "-Xms64m -Xmx256m"
},
],
"image": "PATH_TO_THE_DOCKER_IMAGE",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "fake",
"awslogs-region": "fake-region",
"awslogs-stream-prefix": "fake-project"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment