From 89f93d732b8c816361bb914896a9aa9b95e16a68 Mon Sep 17 00:00:00 2001 From: Moritz Zimmer Date: Mon, 15 Jan 2024 09:03:51 +0100 Subject: [PATCH] removed custom python installation --- README.md | 2 +- modules/deployment/code_build.tf | 3 --- modules/deployment/variables.tf | 2 +- variables.tf | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 540c2a6..19f6046 100644 --- a/README.md +++ b/README.md @@ -223,7 +223,7 @@ for example. | [cloudwatch\_logs](#input\_cloudwatch\_logs) | CloudWatch logs configuration for the containers of this service. CloudWatch logs will be used as the default log configuration if Firelens is disabled and for the fluentbit and otel containers. |
object({
enabled = optional(bool, true)
name = optional(string, "")
retention_in_days = optional(number, 7)
})
| `{}` | no | | [cluster\_id](#input\_cluster\_id) | The ECS cluster id that should run this service | `string` | n/a | yes | | [code\_build\_environment\_compute\_type](#input\_code\_build\_environment\_compute\_type) | Information about the compute resources the CodeBuild stage of the deployment pipeline will use. | `string` | `"BUILD_LAMBDA_1GB"` | no | -| [code\_build\_environment\_image](#input\_code\_build\_environment\_image) | Docker image to use for the CodeBuild stage of the deployment pipeline. | `string` | `"aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12"` | no | +| [code\_build\_environment\_image](#input\_code\_build\_environment\_image) | Docker image to use for the CodeBuild stage of the deployment pipeline. The image needs to include python. | `string` | `"aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12"` | no | | [code\_build\_environment\_type](#input\_code\_build\_environment\_type) | Type of build environment for the CodeBuild stage of the deployment pipeline. | `string` | `"ARM_LAMBDA_CONTAINER"` | no | | [code\_build\_log\_retention\_in\_days](#input\_code\_build\_log\_retention\_in\_days) | Log retention in days of the CodeBuild CloudWatch log group. | `number` | `7` | no | | [code\_build\_role\_name](#input\_code\_build\_role\_name) | Use an existing role for codebuild permissions that can be reused for multiple services. Otherwise a separate role for this service will be created. | `string` | `""` | no | diff --git a/modules/deployment/code_build.tf b/modules/deployment/code_build.tf index 3411cfb..c838da4 100644 --- a/modules/deployment/code_build.tf +++ b/modules/deployment/code_build.tf @@ -49,9 +49,6 @@ resource "aws_codebuild_project" "this" { version: 0.2 phases: - install: - runtime-versions: - python: 3.12 build: commands: - | diff --git a/modules/deployment/variables.tf b/modules/deployment/variables.tf index 5aeaa25..f43edcd 100644 --- a/modules/deployment/variables.tf +++ b/modules/deployment/variables.tf @@ -53,7 +53,7 @@ variable "code_build_environment_compute_type" { } variable "code_build_environment_image" { - description = "Docker image to use for the CodeBuild stage of the deployment pipeline." + description = "Docker image to use for the CodeBuild stage of the deployment pipeline. The image needs to include python." default = "aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12" type = string } diff --git a/variables.tf b/variables.tf index ced0d30..945233e 100644 --- a/variables.tf +++ b/variables.tf @@ -156,7 +156,7 @@ variable "code_build_environment_compute_type" { } variable "code_build_environment_image" { - description = "Docker image to use for the CodeBuild stage of the deployment pipeline." + description = "Docker image to use for the CodeBuild stage of the deployment pipeline. The image needs to include python." default = "aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12" type = string }