# Include root configuration include "root" { path = find_in_parent_folders("root.hcl") } # Terragrunt configuration terraform { source = "." } # Generate the main Terraform configuration generate "main" { path = "main.tf" if_exists = "overwrite" contents = < 0 ? scaleway_instance_server.forgejo.private_ips[0].address : null } output "security_group_id" { description = "Security group ID" value = scaleway_instance_security_group.forgejo.id } output "volume_id" { description = "Data volume ID" value = scaleway_block_volume.forgejo_data.id } output "ssh_command" { description = "SSH command to connect to server" value = "ssh root@$${scaleway_instance_ip.forgejo.address}" } output "dns_record" { description = "DNS A record to create" value = var.domain_name != "" ? "$${var.domain_name} IN A $${scaleway_instance_ip.forgejo.address}" : "No domain configured" } EOF } # Dependencies dependency "storage" { config_path = "../storage" skip_outputs = true mock_outputs = { bucket_name = "forgejo-storage" } }