diff --git a/infra/modules/server/outputs.tf b/infra/modules/server/outputs.tf index 88b33bfa..603fd5ca 100644 --- a/infra/modules/server/outputs.tf +++ b/infra/modules/server/outputs.tf @@ -1,4 +1,9 @@ -output "servers_login_key" { - value = ncloud_login_key.servers_login_key.private_key - sensitive = true +output "server_publics" { + value = ncloud_server.public_servers[*] + description = "public server infos" +} + +output "server_privates" { + value = ncloud_server.private_servers[*] + description = "private server infos" } \ No newline at end of file diff --git a/infra/modules/vpc_subnet/outputs.tf b/infra/modules/vpc_subnet/outputs.tf index 35ea1168..01e6c8e3 100644 --- a/infra/modules/vpc_subnet/outputs.tf +++ b/infra/modules/vpc_subnet/outputs.tf @@ -4,11 +4,11 @@ output "vpc_id" { } output "public_subnets" { - description = "public subnets id" + description = "public subnets infos" value = ncloud_subnet.public_subnets[*] } output "private_subnets" { - description = "public subnets id" + description = "public subnets infos" value = ncloud_subnet.private_subnets[*] } \ No newline at end of file