Skip to content

Commit 40dfffe

Browse files
Switch to smaller instance type
We ran into long QUEUED times with the larger instances, and in testing it seems like the smaller instance type isn't actually significantly slower, and is 2x less expensive, so we should switch to it anyway. This also bumps the build timeout to give us a bit more buffer (our builds are currently just under 2 hours).
1 parent a6db197 commit 40dfffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform/releases/impl/promote-release.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resource "aws_cloudwatch_log_group" "promote_release" {
3030
resource "aws_codebuild_project" "promote_release" {
3131
name = "promote-release--${var.name}"
3232
description = "Execute the release process in the ${var.name} environment."
33-
build_timeout = 120
33+
build_timeout = 240
3434
service_role = aws_iam_role.promote_release.arn
3535

3636
source {
@@ -49,7 +49,7 @@ resource "aws_codebuild_project" "promote_release" {
4949
}
5050

5151
environment {
52-
compute_type = "BUILD_GENERAL1_2XLARGE"
52+
compute_type = "BUILD_GENERAL1_XLARGE"
5353
type = "LINUX_CONTAINER"
5454
image_pull_credentials_type = "SERVICE_ROLE"
5555
image = var.promote_release_ecr_repo.url

0 commit comments

Comments
 (0)