Skip to content

Commit 7d878fa

Browse files
authored
feat: use Lambda aarch64 architecture as default for CodeBuild (#118)
1 parent 1aa550e commit 7d878fa

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

modules/deployment/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,13 @@ module "deployment" {
360360
| Name | Version |
361361
|------|---------|
362362
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
363-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0 |
363+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.32.0 |
364364

365365
## Providers
366366

367367
| Name | Version |
368368
|------|---------|
369-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.0 |
369+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.32.0 |
370370

371371
## Modules
372372

@@ -407,9 +407,9 @@ No modules.
407407
|------|-------------|------|---------|:--------:|
408408
| <a name="input_alias_name"></a> [alias\_name](#input\_alias\_name) | Name of the Lambda alias used in CodeDeploy. | `string` | n/a | yes |
409409
| <a name="input_codebuild_cloudwatch_logs_retention_in_days"></a> [codebuild\_cloudwatch\_logs\_retention\_in\_days](#input\_codebuild\_cloudwatch\_logs\_retention\_in\_days) | Specifies the number of days you want to retain log events in the CodeBuild log group. | `number` | `14` | no |
410-
| <a name="input_codebuild_environment_compute_type"></a> [codebuild\_environment\_compute\_type](#input\_codebuild\_environment\_compute\_type) | Information about the compute resources the build project will use. | `string` | `"BUILD_GENERAL1_SMALL"` | no |
411-
| <a name="input_codebuild_environment_image"></a> [codebuild\_environment\_image](#input\_codebuild\_environment\_image) | Docker image to use for this build project. | `string` | `"aws/codebuild/amazonlinux2-x86_64-standard:5.0"` | no |
412-
| <a name="input_codebuild_environment_type"></a> [codebuild\_environment\_type](#input\_codebuild\_environment\_type) | Type of build environment to use for related builds. | `string` | `"LINUX_CONTAINER"` | no |
410+
| <a name="input_codebuild_environment_compute_type"></a> [codebuild\_environment\_compute\_type](#input\_codebuild\_environment\_compute\_type) | Information about the compute resources the build project will use. | `string` | `"BUILD_LAMBDA_1GB"` | no |
411+
| <a name="input_codebuild_environment_image"></a> [codebuild\_environment\_image](#input\_codebuild\_environment\_image) | Docker image to use for this build project. | `string` | `"aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12"` | no |
412+
| <a name="input_codebuild_environment_type"></a> [codebuild\_environment\_type](#input\_codebuild\_environment\_type) | Type of build environment to use for related builds. | `string` | `"ARM_LAMBDA_CONTAINER"` | no |
413413
| <a name="input_codebuild_role_arn"></a> [codebuild\_role\_arn](#input\_codebuild\_role\_arn) | ARN of an existing IAM role for CodeBuild execution. If empty, a dedicated role for your Lambda function with minimal required permissions will be created. | `string` | `""` | no |
414414
| <a name="input_codedeploy_appspec_hooks_after_allow_traffic_arn"></a> [codedeploy\_appspec\_hooks\_after\_allow\_traffic\_arn](#input\_codedeploy\_appspec\_hooks\_after\_allow\_traffic\_arn) | Lambda function ARN to run after traffic is shifted to the deployed Lambda function version. | `string` | `""` | no |
415415
| <a name="input_codedeploy_appspec_hooks_before_allow_traffic_arn"></a> [codedeploy\_appspec\_hooks\_before\_allow\_traffic\_arn](#input\_codedeploy\_appspec\_hooks\_before\_allow\_traffic\_arn) | Lambda function ARN to run before traffic is shifted to the deployed Lambda function version. | `string` | `""` | no |

modules/deployment/codebuild.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ phases:
7878
install:
7979
on-failure: ABORT
8080
runtime-versions:
81-
python: 3.11
81+
python: 3.12
8282
build:
8383
commands:
8484
- |

modules/deployment/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ variable "codebuild_cloudwatch_logs_retention_in_days" {
5050

5151
variable "codebuild_environment_compute_type" {
5252
description = "Information about the compute resources the build project will use."
53-
default = "BUILD_GENERAL1_SMALL"
53+
default = "BUILD_LAMBDA_1GB"
5454
type = string
5555
}
5656

5757
variable "codebuild_environment_image" {
5858
description = "Docker image to use for this build project."
59-
default = "aws/codebuild/amazonlinux2-x86_64-standard:5.0"
59+
default = "aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12"
6060
type = string
6161
}
6262

6363
variable "codebuild_environment_type" {
6464
description = "Type of build environment to use for related builds."
65-
default = "LINUX_CONTAINER"
65+
default = "ARM_LAMBDA_CONTAINER"
6666
type = string
6767
}
6868

modules/deployment/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.0"
7+
version = ">= 5.32.0"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)