Skip to content

Commit

Permalink
chore: use low-cost, long-living, graviton t4g.nano runners for the s…
Browse files Browse the repository at this point in the history
…etup step
  • Loading branch information
gregmagolan committed Dec 19, 2023
1 parent a9b0815 commit 0862305
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .aspect/workflows/terraform/workflows.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ module "aspect_workflows" {
image_id = data.aws_ami.runner_arm64_ami.id
root_volume_size_gb = 32
}
"nano" = {
instance_types = ["t4g.nano"]
image_id = data.aws_ami.runner_arm64_ami.id
root_volume_size_gb = 16
}
}

# CircleCI runner group definitions
Expand Down Expand Up @@ -128,6 +133,14 @@ module "aspect_workflows" {
scaling_polling_frequency = 3 # check for queued jobs every 20s
warming = false # don't warm for faster bootstrap; these runners won't be running large builds
}
nano = {
agent_idle_timeout_min = 60 * 12
max_runners = 10
min_runners = 0
resource_type = "nano-arm64"
scaling_polling_frequency = 3 # check for queued jobs every 20s
warming = false # don't warm for faster bootstrap; these runners won't be running large builds
}
# The warming runner group is used for the periodic warming job that creates
# warming archives for use by other runner groups.
warming = {
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ workflows:
jobs:
- legacy
- aspect-workflows/setup:
resource_class: aspect-build/aspect-small-arm64
resource_class: aspect-build/aspect-nano
context:
- slack

0 comments on commit 0862305

Please sign in to comment.