Skip to content

Commit 7137852

Browse files
authored
feat: removed python installation from CodeBuild (#119)
1 parent 300e112 commit 7137852

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

modules/deployment/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ No modules.
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 |
410410
| <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 |
411+
| <a name="input_codebuild_environment_image"></a> [codebuild\_environment\_image](#input\_codebuild\_environment\_image) | Docker image to use for this build project. The image needs to include python. | `string` | `"aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12"` | no |
412412
| <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 |

modules/deployment/codebuild.tf

-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ resource "aws_codebuild_project" "this" {
7575
buildspec = <<EOF
7676
version: 0.2
7777
phases:
78-
install:
79-
on-failure: ABORT
80-
runtime-versions:
81-
python: 3.12
8278
build:
8379
commands:
8480
- |

modules/deployment/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ variable "codebuild_environment_compute_type" {
5555
}
5656

5757
variable "codebuild_environment_image" {
58-
description = "Docker image to use for this build project."
58+
description = "Docker image to use for this build project. The image needs to include python."
5959
default = "aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12"
6060
type = string
6161
}

0 commit comments

Comments
 (0)