Skip to content

Commit

Permalink
Add task placement strategy note for fargate compute
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandredinis committed Feb 5, 2024
1 parent 41cef61 commit bbf202c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/integrations/awsoidc/deployservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ var (
requiredCapacityProviders = []string{launchTypeFargateString}

// twoAgents is used to define the desired agent count when creating a service.
// Deploying two agents in a FARGATE LaunchType Service, will most likely deploy
// each one in a different AZ, as long as the Subnets include mustiple AZs.
// From AWS Docs:
// > Task placement strategies and constraints aren't supported for tasks using the Fargate launch type.
// > Fargate will try its best to spread tasks across accessible Availability Zones.
// > https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html#fargate-launch-type
twoAgents = int32(2)
)

Expand Down

0 comments on commit bbf202c

Please sign in to comment.