aboutsummaryrefslogtreecommitdiff
path: root/app/models/backends/terraform_aws.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/backends/terraform_aws.rb')
-rw-r--r--app/models/backends/terraform_aws.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/backends/terraform_aws.rb b/app/models/backends/terraform_aws.rb
index d0655ee..2bf68a3 100644
--- a/app/models/backends/terraform_aws.rb
+++ b/app/models/backends/terraform_aws.rb
@@ -64,6 +64,14 @@ class Backends::TerraformAws < ApplicationRecord
}
end
+ def build_remote_host
+ RemoteHost.new(
+ 'ubuntu',
+ backend_latest_terraform_state.output_value('guix_daemon_public_dns'),
+ ssh_private_key
+ )
+ end
+
def terraform_state_id
"backend/terraform_aws/#{id}"
end