Skip to content

Commit

Permalink
fix: fnsub not working for repo
Browse files Browse the repository at this point in the history
  • Loading branch information
raykrishardi committed May 14, 2024
1 parent e8e8ca3 commit 6b3887a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecs-task.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@

name = task.has_key?('name') ? task['name'] : task_name

image_repo = task.has_key?('repo') ? FnSub("#{task['repo']}/") : ''
image_repo = task.has_key?('repo') ? "#{task['repo']}" : ''
image_name = task.has_key?('image') ? task['image'] : task_name
image_tag = task.has_key?('tag') ? "#{task['tag']}" : 'latest'
image_tag = task.has_key?('tag_param') ? Ref("#{task['tag_param']}") : image_tag

# create main definition
task_def = {
Name: name,
Image: FnJoin('',[ image_repo, image_name, ":", image_tag ]),
Image: FnSub("#{image_repo}/#{image_name}:#{image_tag}"),
LogConfiguration: {
LogDriver: 'awslogs',
Options: {
Expand Down

0 comments on commit 6b3887a

Please sign in to comment.