itamae/tasks/ubuntu.rake

10 lines
324 B
Ruby
Raw Normal View History

2023-02-05 10:18:20 +00:00
#!/usr/bin/env rake
2024-03-31 11:09:40 +00:00
desc 'Invoke itamae command for AWS Environment for the first time'
2023-02-05 10:18:20 +00:00
task :ubuntu do
node = `ls -1 nodes/*.json | xargs -I % basename % .json | fzf`
node.chomp!
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh -u ubuntu -i ~/.ssh/amazon.pem --host #{node} -j nodes/#{node}.json entrypoint.rb"
end