fix: private address is not plural (#97)

Signed-off-by: matttrach <matt.trachier@suse.com>
This commit is contained in:
Matt Trachier 2024-07-25 00:38:04 -05:00 committed by GitHub
parent 9802b3d1ba
commit cd85d69606
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ resource "aws_instance" "created" {
key_name = (local.aws_keypair_use_strategy != "skip" ? (local.aws_keypair_use_strategy == "create" ? aws_key_pair.created[0].key_name : data.aws_key_pair.ssh_key_selected[0].key_name) : "")
subnet_id = data.aws_subnet.general_info_create[0].id
private_ips = (local.ipv4 != "" ? [local.ipv4] : [""])
private_ip = (local.ipv4 != "" ? local.ipv4 : "")
ipv6_addresses = (local.ipv6 != "" ? [local.ipv6] : [""])
instance_initiated_shutdown_behavior = "stop" # termination can be handled by destroy or separately