Skip to content

Commit 92bc3cd

Browse files
committed
bugfix for Compatibility between Bare Metal and EC2.
1 parent c456576 commit 92bc3cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

infra-iac/terraform/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ resource "aws_launch_template" "client" {
625625
# Create a new launch template version with NestedVirtualization enabled via AWS CLI
626626
# Terraform AWS provider does not support the NestedVirtualization parameter in cpu_options
627627
resource "null_resource" "client_nested_virtualization" {
628+
count = endswith(var.client_instance_type, ".metal") ? 0 : 1
629+
628630
triggers = {
629631
launch_template_id = aws_launch_template.client.id
630632
launch_template_version = aws_launch_template.client.latest_version

0 commit comments

Comments
 (0)