Skip to content

Commit

Permalink
Merge pull request #1 from jaredbrook/develop
Browse files Browse the repository at this point in the history
Remove unnecessary hash
  • Loading branch information
Guslington authored Jul 15, 2021
2 parents 2660f66 + 38830ca commit 265b47d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ecs-schedule-runtasks.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
ScheduleExpression schedule
State Ref(:State)
Targets [{
Id: "#{name}-#{Base64.encode64(name).gsub(/=\n|=/,'')}",
Id: name,
Arn: Ref(:EcsClusterArn),
RoleArn: FnGetAtt('EventBridgeInvokeRole', 'Arn'),
EcsParameters: {
Expand Down
4 changes: 2 additions & 2 deletions spec/multipletasks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"Subnets"=>{"Fn::Split"=>[",", {"Ref"=>"SubnetIds"}]}}},
"TaskCount"=>1,
"TaskDefinitionArn"=>{"Ref"=>"task1"}},
"Id"=>"task1-dGFzazE",
"Id"=>"task1",
"Input"=>"{\"containerOverrides\":[{\"name\":\"task1\"}]}",
"RoleArn"=>{"Fn::GetAtt"=>["EventBridgeInvokeRole", "Arn"]}}
])
Expand Down Expand Up @@ -73,7 +73,7 @@
"Subnets"=>{"Fn::Split"=>[",", {"Ref"=>"SubnetIds"}]}}},
"TaskCount"=>1,
"TaskDefinitionArn"=>{"Ref"=>"task2"}},
"Id"=>"task2-dGFzazI",
"Id"=>"task2",
"Input"=>"{\"containerOverrides\":[{\"name\":\"task2\",\"command\":[\"echo\",\"foo\",\"bar\"]}]}",
"RoleArn"=>{"Fn::GetAtt"=>["EventBridgeInvokeRole", "Arn"]}}
])
Expand Down
2 changes: 1 addition & 1 deletion spec/singletasks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"Subnets"=>{"Fn::Split"=>[",", {"Ref"=>"SubnetIds"}]}}},
"TaskCount"=>1,
"TaskDefinitionArn"=>{"Ref"=>"mytask"}},
"Id"=>"singletask-c2luZ2xldGFzaw",
"Id"=>"singletask",
"Input"=>"{\"containerOverrides\":[{\"name\":\"singletask\",\"command\":[\"echo\",\"hello world\"],\"environment\":[{\"foo\":\"bar\"}]}]}",
"RoleArn"=>{"Fn::GetAtt"=>["EventBridgeInvokeRole", "Arn"]}}
])
Expand Down

0 comments on commit 265b47d

Please sign in to comment.