Created
          April 18, 2017 01:56 
        
      - 
      
 - 
        
Save kuleszaj/fab822bb6f5dca3fa211876fc989a3bc to your computer and use it in GitHub Desktop.  
    AWS ECS Register Task Definition JSON
  
        
  
    
      This file contains hidden or 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": "my-ecs-task", | |
| "placementConstraints": [], | |
| "volumes": [ | |
| { | |
| "host": { | |
| "sourcePath": "/mnt/efs/dir1" | |
| }, | |
| "name": "uploads" | |
| }, | |
| { | |
| "host": { | |
| "sourcePath": "/mnt/efs/dir2" | |
| }, | |
| "name": "processed" | |
| } | |
| ], | |
| "containerDefinitions": [ | |
| { | |
| "environment": [ | |
| { | |
| "name": "RACK_ENV", | |
| "value": "production" | |
| } | |
| ], | |
| "name": "webapplication", | |
| "workingDirectory": "/var/www/current/", | |
| "mountPoints": [ | |
| { | |
| "sourceVolume": "uploads", | |
| "containerPath": "/var/www/current/uploads" | |
| }, | |
| { | |
| "sourceVolume": "processed", | |
| "containerPath": "/var/www/current/processed" | |
| } | |
| ], | |
| "image": "accountnum.dkr.ecr.us-west-2.amazonaws.com/ecr-repo:latest", | |
| "cpu": 10, | |
| "portMappings": [ | |
| { | |
| "protocol": "tcp", | |
| "containerPort": 80, | |
| "hostPort": 0 | |
| } | |
| ], | |
| "entryPoint": [ | |
| "bundle", | |
| "exec", | |
| "rackup" | |
| ], | |
| "memory": 10, | |
| "essential": true, | |
| "volumesFrom": [] | |
| } | |
| ] | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment