Skip to content

Commit

Permalink
Merge pull request #25 from rererecursive/master
Browse files Browse the repository at this point in the history
Add support for SchedulingStrategy.
  • Loading branch information
Guslington authored May 9, 2019
2 parents feea509 + 0a5d1bb commit 29e3959
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ecs-service.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
# add docker volumes
if task.key?('mounts')
task['mounts'].each do |mount|
if mount.is_a? String
if mount.is_a? String
parts = mount.split(':',2)
mount_points << { ContainerPath: FnSub(parts[0]), SourceVolume: FnSub(parts[1]), ReadOnly: (parts[2] == 'ro' ? true : false) }
else
Expand Down Expand Up @@ -132,7 +132,7 @@
# add docker volumes
if defined?(volumes)
volumes.each do |volume|
if volume.is_a? String
if volume.is_a? String
parts = volume.split(':')
object = { Name: FnSub(parts[0])}
object.merge!({ Host: { SourcePath: FnSub(parts[1]) }}) if parts[1]
Expand Down Expand Up @@ -328,6 +328,7 @@
MaximumPercent: Ref('MaximumPercent')
})
TaskDefinition Ref('Task')
SchedulingStrategy scheduling_strategy if defined? scheduling_strategy

if service_loadbalancer.any?
Role Ref('Role')
Expand Down
1 change: 1 addition & 0 deletions ecs-service.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ log_retention: 7
# network_mode: awsvpc
#
# health_check_grace_period: 60
# scheduling_strategy: DAEMON
#
# cpu: 256
# memory: 256
Expand Down

0 comments on commit 29e3959

Please sign in to comment.