Skip to content

Commit

Permalink
set AvailabilityZoneRebalancing on create and update service
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Dec 9, 2024
1 parent ae1efc9 commit 37913bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions create.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (d *App) createService(ctx context.Context, opt DeployOption) error {
}

createServiceInput := &ecs.CreateServiceInput{
AvailabilityZoneRebalancing: svd.AvailabilityZoneRebalancing,
Cluster: aws.String(d.config.Cluster),
CapacityProviderStrategy: svd.CapacityProviderStrategy,
DeploymentConfiguration: svd.DeploymentConfiguration,
Expand Down
1 change: 1 addition & 0 deletions deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func (d *App) UpdateServiceTasks(ctx context.Context, taskDefinitionArn string,

func svToUpdateServiceInput(sv *Service) *ecs.UpdateServiceInput {
in := &ecs.UpdateServiceInput{
AvailabilityZoneRebalancing: sv.AvailabilityZoneRebalancing,
CapacityProviderStrategy: sv.CapacityProviderStrategy,
DeploymentConfiguration: sv.DeploymentConfiguration,
DesiredCount: sv.DesiredCount,
Expand Down

0 comments on commit 37913bc

Please sign in to comment.