Created
August 23, 2019 09:58
-
-
Save hossein761/61ca1016d9a8f41cb0e59da23a6fd071 to your computer and use it in GitHub Desktop.
Sample AWS EC2 Task Definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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