From dd82c7ecd30b2153fde2209bc2df26049d320bc0 Mon Sep 17 00:00:00 2001 From: slamet kristanto Date: Mon, 21 Nov 2022 14:32:11 +0900 Subject: [PATCH] Add build_type --- main.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/main.tf b/main.tf index c936226..15b43f7 100644 --- a/main.tf +++ b/main.tf @@ -214,6 +214,7 @@ module "codebuild" { enabled = module.this.enabled source = "cloudposse/codebuild/aws" version = "1.0.0" + build_type = var.build_type build_image = var.build_image build_compute_type = var.build_compute_type build_timeout = var.build_timeout diff --git a/variables.tf b/variables.tf index ae6777c..b17b429 100644 --- a/variables.tf +++ b/variables.tf @@ -65,6 +65,12 @@ variable "build_timeout" { description = "How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed" } +variable "build_type" { + type = string + default = "LINUX_CONTAINER" + description = "The type of build environment, e.g. 'LINUX_CONTAINER' or 'WINDOWS_CONTAINER' or 'ARM_CONTAINER'" +} + variable "buildspec" { type = string default = ""