diff --git a/modules/deployment/README.md b/modules/deployment/README.md
index e87c967..13f882f 100644
--- a/modules/deployment/README.md
+++ b/modules/deployment/README.md
@@ -360,13 +360,13 @@ module "deployment" {
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0 |
-| [aws](#requirement\_aws) | >= 5.0 |
+| [aws](#requirement\_aws) | >= 5.32.0 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.0 |
+| [aws](#provider\_aws) | >= 5.32.0 |
## Modules
@@ -407,9 +407,9 @@ No modules.
|------|-------------|------|---------|:--------:|
| [alias\_name](#input\_alias\_name) | Name of the Lambda alias used in CodeDeploy. | `string` | n/a | yes |
| [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 |
-| [codebuild\_environment\_compute\_type](#input\_codebuild\_environment\_compute\_type) | Information about the compute resources the build project will use. | `string` | `"BUILD_GENERAL1_SMALL"` | no |
-| [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 |
-| [codebuild\_environment\_type](#input\_codebuild\_environment\_type) | Type of build environment to use for related builds. | `string` | `"LINUX_CONTAINER"` | no |
+| [codebuild\_environment\_compute\_type](#input\_codebuild\_environment\_compute\_type) | Information about the compute resources the build project will use. | `string` | `"BUILD_LAMBDA_1GB"` | no |
+| [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 |
+| [codebuild\_environment\_type](#input\_codebuild\_environment\_type) | Type of build environment to use for related builds. | `string` | `"ARM_LAMBDA_CONTAINER"` | no |
| [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 |
| [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 |
| [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 |
diff --git a/modules/deployment/codebuild.tf b/modules/deployment/codebuild.tf
index 8154de8..161cdde 100644
--- a/modules/deployment/codebuild.tf
+++ b/modules/deployment/codebuild.tf
@@ -78,7 +78,7 @@ phases:
install:
on-failure: ABORT
runtime-versions:
- python: 3.11
+ python: 3.12
build:
commands:
- |
diff --git a/modules/deployment/variables.tf b/modules/deployment/variables.tf
index d344592..174f6a8 100644
--- a/modules/deployment/variables.tf
+++ b/modules/deployment/variables.tf
@@ -50,19 +50,19 @@ variable "codebuild_cloudwatch_logs_retention_in_days" {
variable "codebuild_environment_compute_type" {
description = "Information about the compute resources the build project will use."
- default = "BUILD_GENERAL1_SMALL"
+ default = "BUILD_LAMBDA_1GB"
type = string
}
variable "codebuild_environment_image" {
description = "Docker image to use for this build project."
- default = "aws/codebuild/amazonlinux2-x86_64-standard:5.0"
+ default = "aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12"
type = string
}
variable "codebuild_environment_type" {
description = "Type of build environment to use for related builds."
- default = "LINUX_CONTAINER"
+ default = "ARM_LAMBDA_CONTAINER"
type = string
}
diff --git a/modules/deployment/versions.tf b/modules/deployment/versions.tf
index ddfcb0e..869f362 100644
--- a/modules/deployment/versions.tf
+++ b/modules/deployment/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.0"
+ version = ">= 5.32.0"
}
}
}