From 4a6cdf05f98ef6003e37a692e19fd760f8a973db Mon Sep 17 00:00:00 2001 From: Oliver Palou Date: Tue, 15 Oct 2024 19:34:32 +0200 Subject: [PATCH] Added kms_key_id in InstanceConfigurationInstanceSourceViaImageDetails Signed-off-by: Oliver Palou --- .../service/core/core_instance_configuration_resource.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/service/core/core_instance_configuration_resource.go b/internal/service/core/core_instance_configuration_resource.go index 468c363ba3..91e7a22c6e 100644 --- a/internal/service/core/core_instance_configuration_resource.go +++ b/internal/service/core/core_instance_configuration_resource.go @@ -3516,6 +3516,11 @@ func (s *CoreInstanceConfigurationResourceCrud) mapToInstanceConfigurationInstan tmp := imageId.(string) details.ImageId = &tmp } + if kmsKeyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "kms_key_id")); ok { + tmp := kmsKeyId.(string) + details.KmsKeyId = &tmp + } + if instanceSourceImageFilterDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "instance_source_image_filter_details")); ok { if tmpList := instanceSourceImageFilterDetails.([]interface{}); len(tmpList) > 0 { fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "instance_source_image_filter_details"), 0)