Skip to content

Commit

Permalink
Merge pull request #33 from timhassett/feature/fargate
Browse files Browse the repository at this point in the history
Fix fargate condition error
  • Loading branch information
Guslington authored Jul 29, 2019
2 parents c591c48 + 9815568 commit bb19566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ecs-service.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
awsvpc_enabled = false
if defined?(network_mode) && network_mode == 'awsvpc'
awsvpc_enabled = true
Condition('IsFargate', FnEquals(Ref('EnableFargate'), 'true'))
end

Condition('IsScalingEnabled', FnEquals(Ref('EnableScaling'), 'true'))
Condition('IsFargate', FnEquals(Ref('EnableFargate'), 'true'))


log_retention = 7 unless defined?(log_retention)
Resource('LogGroup') {
Expand Down

0 comments on commit bb19566

Please sign in to comment.