Skip to content

Commit

Permalink
fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
qburst-praven committed Oct 24, 2023
1 parent 48acf23 commit 289b7cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions terraform/aws/modules/ec2/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ resource "aws_instance" "default" {
delete_on_termination = lookup(root_block_device.value, "delete_on_termination", null)
encrypted = true
iops = lookup(root_block_device.value, "iops", null)
kms_key_id = var.kms_key.id == "" ? join("", aws_ssh_key.default[*].arn) : lookup(root_block_device.value, "kms_key.id", null)
kms_key_id = var.kms_key.id == "" ? join("", aws_kms_key.default[*].arn) : lookup(root_block_device.value, "kms_key.id", null)
volume_size = lookup(root_block_device.value, "volume_size", null)
volume_type = lookup(root_block_device.value, "volume_type", null)
tags = {
Expand Down Expand Up @@ -103,4 +103,4 @@ resource "aws_iam_instance_profile" "default" {
count = length(var.iam_instance_profile) > 0 ? 1 : 0
name = var.iam_instance_profile
role = var.iam_instance_profile
}
}
2 changes: 1 addition & 1 deletion terraform/aws/modules/ec2/spot.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "aws_spot_instance_request" "default" {
delete_on_termination = lookup(root_block_device.value, "delete_on_termination", null)
encrypted = true
iops = lookup(root_block_device.value, "iops", null)
kms_key_id = var.ssh_key_id == "" ? join("", aws_ssh_key.default[*].arn) : lookup(root_block_device.value, "ssh_key_id", null)
kms_key_id = var.kms_key_id == "" ? join("", aws_kms_key.default[*].arn) : lookup(root_block_device.value, "kms_key_id", null)
volume_size = lookup(root_block_device.value, "volume_size", null)
volume_type = lookup(root_block_device.value, "volume_type", null)
tags = {
Expand Down

0 comments on commit 289b7cb

Please sign in to comment.