ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <Blacksmoke16> Main changes were: ⏎ ⏎ 1) No real need to have this in a module/method, can just do everything on the top level given its a simple scrip ⏎ 2) Use `JSON::Serializable`, more of a preference of mine, for this use case `JSON.parse` is totally fine ⏎ 3) Parse the JSON as its ouput by the process, no need to store it in memory ... [https://gitter.im/crystal-lang/crystal?at=6360632c880fe76caa1ed6e9]
<FromGitter> <Blacksmoke16> the one catch with building/deploy using that command is you need to ensure the target system has the runtime libs available. i.e. pcre, etc. Static builds can also be done if needed. each has their pro and cons
<FromGitter> <sergiotapia> Thanks a bunch will digest so far Crystal seems lovely
Sankalp has quit [Ping timeout: 248 seconds]
Sankalp has joined #crystal-lang
HumanG33k has quit [Ping timeout: 246 seconds]
HumanG33k has joined #crystal-lang
FromGitter has quit [Ping timeout: 246 seconds]
FromGitter has joined #crystal-lang
ur5us has quit [Ping timeout: 246 seconds]
Elouin has quit [Remote host closed the connection]
Elouin has joined #crystal-lang
ur5us has joined #crystal-lang
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 255 seconds]
Elouin has quit [Ping timeout: 252 seconds]
Elouin has joined #crystal-lang
fifr has joined #crystal-lang
fifr has quit [Ping timeout: 248 seconds]
fifr has joined #crystal-lang
walez has joined #crystal-lang
Elouin has quit [Ping timeout: 252 seconds]
Elouin has joined #crystal-lang
walez has quit [Quit: Leaving]
wmoxam has quit [Ping timeout: 276 seconds]
wmoxam has joined #crystal-lang
jmdaemon has quit [Ping timeout: 246 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #crystal-lang
JinReal has joined #crystal-lang
JinReal has quit [Read error: Connection reset by peer]
ur5us has joined #crystal-lang
_ht has joined #crystal-lang
_ht has quit [Quit: _ht]
ur5us has quit [Ping timeout: 255 seconds]
ur5us has joined #crystal-lang
<FromGitter> <wwalker> Anyone here know about AWS? I'm trying to make an AWS request without passing any credentials (it will run on a machine with IAM roles that give it magical powers.) I'm using maiha/sqs.cr, which uses taylorfinnell/awscr-signer. Maybe someone here understands AWS (or the python boto code?) enough to tell me where to start to modify taylorfinnell/awscr-signer to allow no credentials.
<FromGitter> <Blacksmoke16> how do other langs handle it? i.e. is what you're doing even possible?
<FromGitter> <wwalker> Yes, I'm porting some horrendous python with boto to crystal. The python code runs fine without credentials. Just the "signer" lib in crystal doesn't expect you to pass no creds.
<FromGitter> <Blacksmoke16> ah 👍
<riza> @wwalker it's unfortunately not a trivial operation. you have to fetch credentials from an aws internal service ip address and then sign your request with those credentials
<FromGitter> <wwalker> riza: you mean an STS call?
<riza> you might be able to accomplish it with that
<riza> I'm not sure
<Ober> thanks riz
<riza> I've done it by hand a time or two but it's been _years_
<riza> i feel like it was a request to 169.254.169.254 something
<wwalker> curl 169.254.169.254/latest/meta-data/identity-credentials/ec2/security-credentials/ec2-instance
<wwalker> Thank you riza!
<riza> there it is
<riza> put that in a shard wouldja i'll probably need that someday :D
<Ober> we'll do a pr for the crystal
jmdaemon has joined #crystal-lang
<Ober> the shard rather
ur5us has quit [Ping timeout: 255 seconds]
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #crystal-lang
<wwalker> riza: weird thing, if I take the data from that curl and put in (reformatted correctly) into .aws/credentials, or plug it into the crystal code (signer or sqs) it doesn't work :-( Back to the drawing board tomorrow...
<wwalker> riza: I had the wrong URL. That one has the right fields, but doesn't work. This one (changing the last path element based on your machine's iam profile) does work! curl 169.254.169.254/latest/meta-data/iam/security-credentials/gitlab_infrastructure_runner (if you curl without the last element, it will show your the last element's name)