Skip to content

Commit

Permalink
Merge pull request #797 from PRX/spire-aarch64
Browse files Browse the repository at this point in the history
Add instance-type placement constraint to ECS tasks
  • Loading branch information
farski authored Jan 6, 2025
2 parents 7202e98 + 84ad736 commit f50533c
Show file tree
Hide file tree
Showing 16 changed files with 66 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spire/templates/apps/augury.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ Resources:
- ContainerName: !Ref kWebContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PlacementStrategies:
- Field: instanceId
Type: spread
Expand All @@ -295,6 +298,9 @@ Resources:
MinimumHealthyPercent: 50
DesiredCount: !If [IsProduction, 2, 1]
EnableECSManagedTags: true
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/castle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ Resources:
- ContainerName: !Ref kContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
6 changes: 6 additions & 0 deletions spire/templates/apps/cms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ Resources:
- ContainerName: !Ref kWebContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand All @@ -363,6 +366,9 @@ Resources:
MinimumHealthyPercent: 50
DesiredCount: 1
EnableECSManagedTags: true
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/dovetail-router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@ Resources:
- ContainerName: !Ref kContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
6 changes: 6 additions & 0 deletions spire/templates/apps/exchange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ Resources:
- ContainerName: !Ref kWebContainerName
ContainerPort: !Ref kWebApplicationPort
TargetGroupArn: !Ref WebTargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down Expand Up @@ -595,6 +598,9 @@ Resources:
MinimumHealthyPercent: 50
DesiredCount: !If [IsProduction, 6, 1]
EnableECSManagedTags: true
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
6 changes: 6 additions & 0 deletions spire/templates/apps/feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,9 @@ Resources:
- ContainerName: !Ref kWebContainerName
ContainerPort: !Ref kWebApplicationPort
TargetGroupArn: !Ref WebTargetGroup2
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down Expand Up @@ -922,6 +925,9 @@ Resources:
MinimumHealthyPercent: 50
DesiredCount: 1
EnableECSManagedTags: true
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ Resources:
- ContainerName: !Ref kContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/iframely.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ Resources:
- ContainerName: !Ref kContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ Resources:
- ContainerName: !Ref kContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
6 changes: 6 additions & 0 deletions spire/templates/apps/networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ Resources:
- ContainerName: !Ref kWebContainerName
ContainerPort: !Ref kWebApplicationPort
TargetGroupArn: !Ref PublicWebTargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down Expand Up @@ -651,6 +654,9 @@ Resources:
- !Ref VpcPrivateSubnet1Id
- !Ref VpcPrivateSubnet2Id
- !Ref VpcPrivateSubnet3Id
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/play.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ Resources:
- ContainerName: !Ref kContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref WebTargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/remix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ Resources:
- ContainerName: !Ref kWebContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/styleguide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ Resources:
- ContainerName: !Ref kContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/the-castle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ Resources:
- ContainerName: !Ref kWebContainerName
ContainerPort: !Ref kWebApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/apps/theworld-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ Resources:
- ContainerName: !Ref kContainerName
ContainerPort: !Ref kApplicationPort
TargetGroupArn: !Ref TargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
6 changes: 6 additions & 0 deletions spire/templates/apps/wfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ Resources:
- ContainerName: !Ref kWebContainerName
ContainerPort: !Ref kWebApplicationPort
TargetGroupArn: !Ref WebTargetGroup
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down Expand Up @@ -572,6 +575,9 @@ Resources:
MinimumHealthyPercent: 50
DesiredCount: 1
EnableECSManagedTags: true
PlacementConstraints:
- Type: memberOf
Expression: attribute:ecs.instance-type == "x86_64"
PropagateTags: TASK_DEFINITION
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down

0 comments on commit f50533c

Please sign in to comment.