mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
feat: mostly terraform shenanigans, but TF can now create ssh keys and servers
This commit is contained in:
28
terraform/modules/servers/outputs.tf
Normal file
28
terraform/modules/servers/outputs.tf
Normal file
@@ -0,0 +1,28 @@
|
||||
output "ids" {
|
||||
description = "Map of server IDs by key."
|
||||
value = { for k, r in autoglue_server.this : k => r.id }
|
||||
}
|
||||
|
||||
output "statuses" {
|
||||
description = "Map of server statuses by key."
|
||||
value = { for k, r in autoglue_server.this : k => r.status }
|
||||
}
|
||||
|
||||
output "details" {
|
||||
description = "Selected attributes for convenience."
|
||||
value = {
|
||||
for k, r in autoglue_server.this : k => {
|
||||
id = r.id
|
||||
organization_id = r.organization_id
|
||||
hostname = r.hostname
|
||||
private_ip_address = r.private_ip_address
|
||||
public_ip_address = r.public_ip_address
|
||||
role = r.role
|
||||
ssh_user = r.ssh_user
|
||||
ssh_key_id = r.ssh_key_id
|
||||
status = r.status
|
||||
created_at = r.created_at
|
||||
updated_at = r.updated_at
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user