Method: Stax::Ecs#taskdef_to_hash

Defined in:
lib/stax/mixin/ecs/deploy.rb

#taskdef_to_hash(taskdef) ⇒ Object

convert to hash for registering new taskdef



5
6
7
8
# File 'lib/stax/mixin/ecs/deploy.rb', line 5

def taskdef_to_hash(taskdef)
  args = i[family cpu memory requires_compatibilities task_role_arn execution_role_arn network_mode container_definitions volumes placement_constraints]
  taskdef.to_hash.slice(*args)
end