From abfbd772c46ef374ff142e662fa5e70b48047320 Mon Sep 17 00:00:00 2001 From: Naman Sharma <84118525+numcys@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:47:40 +0530 Subject: [PATCH] Fix/run policy add - support different service names (#3748) * updated task definition generate function * updating task and stack fetch * Adding service name in formatting for stack name * corrected stack resource name --- provider/aws/processes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/aws/processes.go b/provider/aws/processes.go index 243e81813..5ab8eee90 100644 --- a/provider/aws/processes.go +++ b/provider/aws/processes.go @@ -1192,7 +1192,7 @@ func (p *Provider) generateTaskDefinition2(app, service string, opts structs.Pro } } - td, err := p.stackResource(fmt.Sprintf("%s-%s", p.Rack, app), "ServiceWeb") + td, err := p.stackResource(fmt.Sprintf("%s-%s", p.Rack, app), fmt.Sprintf("Service%s", upperName(service))) if err != nil { return nil, err }