lib/mikoshi/plan/task_definition.rb in mikoshi-0.6.0 vs lib/mikoshi/plan/task_definition.rb in mikoshi-0.6.1
- old
+ new
@@ -24,10 +24,11 @@
end
def runtask(cluster: nil)
raise ArgumentError, 'cluster name is required.' if cluster.nil?
- resp = @client.run_task(task_definition: @data[:task_definition][:family], cluster: cluster)
+ resp = @client.register_task_definition(@data[:task_definition])
+ @client.run_task(task_definition: resp[:task_definition][:task_definition_arn], cluster: cluster)
end
private
%w[before after].each do |step|