mirror of
https://github.com/docker/compose.git
synced 2025-07-08 06:14:25 +02:00
Don't define service resource name
if we do, CloudFormation can't update resource and changeset fail with "CloudFormation cannot update a stack when a custom-named resource requires replacing" Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
5e1f40b752
commit
cb74f7924e
@ -193,7 +193,6 @@ func (b Backend) Convert(project *types.Project) (*cloudformation.Template, erro
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
SchedulingStrategy: ecsapi.SchedulingStrategyReplica,
|
SchedulingStrategy: ecsapi.SchedulingStrategyReplica,
|
||||||
ServiceName: service.Name,
|
|
||||||
ServiceRegistries: []ecs.Service_ServiceRegistry{serviceRegistry},
|
ServiceRegistries: []ecs.Service_ServiceRegistry{serviceRegistry},
|
||||||
Tags: []tags.Tag{
|
Tags: []tags.Tag{
|
||||||
{
|
{
|
||||||
|
@ -182,6 +182,7 @@ func (s sdk) CreateStack(ctx context.Context, name string, template *cf.Template
|
|||||||
})
|
})
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s sdk) WaitStackComplete(ctx context.Context, name string, operation int) error {
|
func (s sdk) WaitStackComplete(ctx context.Context, name string, operation int) error {
|
||||||
input := &cloudformation.DescribeStacksInput{
|
input := &cloudformation.DescribeStacksInput{
|
||||||
StackName: aws.String(name),
|
StackName: aws.String(name),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user