# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 # REFERENCE # https://docs.aws.amazon.com/dcv/latest/adminguide/setting-up-installing-wininstall.html resource "aws_imagebuilder_component" "nice_dcv_component" { name = "${var.project}-${var.environment}-nice-dcv-${local.os}-${local.os_version}" platform = "Windows" version = "1.0.0" description = "[${local.os}-${local.os_version}] Install NICE DCV Server" kms_key_id = var.kms_key_arn data = yamlencode({ schemaVersion = 1.0 phases = [{ name = "build" steps = [ { name = "DownloadInstallDCVServer" action = "ExecutePowerShell" onFailure = "Abort" maxAttempts = 3 timeoutSeconds = -1 inputs = { commands = [<