Fork me on GitHub
#babashka
<
2023-09-26
>
mmer09:09:37

Ansible is a key tool used in device automation - one of its key features is the ability to run a command on a remote host through ssh, Is there something equivalent in BB land?

borkdude10:09:48

there's this: https://github.com/babashka/babashka/wiki/Bash-and-Babashka-equivalents#run-local-script-on-remote-server-bb-installed for more advanced use case, check #CUHG31VR6 which can run as a babashka pod

Frank Henard14:09:00

@U4C3ZU6KX I had success with https://github.com/epiccastle/bbssh which apparently is part of spire

Frank Henard14:09:00

I just wanted the ssh piece instead of the entire ansible replacement

borkdude14:09:09

ah yeah, forgot about that one

👍 1
Jacob Emcken12:09:12

I want to create a HTTP request which is AWS signed using v4 in Babashka. What would be a good approach? I guess awyeah-api is doing it "under the hood" but I have not been able find way to leverage it for my need.

borkdude13:09:00

The term "v4" doesn't ring a bell, perhaps @U7ERLH6JX knows

grzm13:09:36

Yeah, I'm about a year behind in patches from aws-api. I was looking at changesets around that (https://github.com/cognitect-labs/aws-api/commit/5ebdfc8c47914f894a240a8290a3715682a1e9bf) last night and wanted to make sure I understood it before I applied it.

Jacob Emcken22:10:00

I wrote a small library to generate pre-signed (GET) URL's for S3 objects. I am planning to extend it to also sign a Ring request for an AWS API Gateway... but let's see where it ends up: https://github.com/jacobemcken/aws-simple-sign I've had success using it from a Babashka script

grzm01:11:15

@USW6URK47 I see you've already participated in https://github.com/cognitect-labs/aws-api/issues/5 When something like this lands in aws-api, I'll be in a position to update awyeah-api to accommodate it within awyeah-api itself.