From b1ef610e5365e51c88b0da6971cd7de17a17b0ba Mon Sep 17 00:00:00 2001 From: nitrocode <7775707+nitrocode@users.noreply.github.com> Date: Mon, 20 Jun 2022 20:20:52 -0500 Subject: [PATCH] Add encryption_key --- main.tf | 2 ++ variables.tf | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/main.tf b/main.tf index 0bed37a..537b2db 100644 --- a/main.tf +++ b/main.tf @@ -297,6 +297,8 @@ resource "aws_codebuild_project" "default" { badge_enabled = var.badge_enabled build_timeout = var.build_timeout source_version = var.source_version != "" ? var.source_version : null + encryption_key = var.encryption_key + tags = { for name, value in module.this.tags : name => value diff --git a/variables.tf b/variables.tf index 7f692ca..ccef8e3 100644 --- a/variables.tf +++ b/variables.tf @@ -282,4 +282,10 @@ variable "file_system_locations" { type = any default = {} description = "A set of file system locations to to mount inside the build. File system locations are documented below." +} + +variable "encryption_key" { + type = string + default = null + description = "AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build project's build output artifacts." } \ No newline at end of file