#asknostr can someone help me with noStrudel S3 deploy? I'm trying to switch the next version over to being hosted on AWS S3 but I cant get the github action to actually deploy

https://github.com/hzrd149/nostrudel/actions/runs/10554429276/workflow

I have all the secrets setup and the IAM permissions but the action keeps failing...

https://github.com/hzrd149/nostrudel/actions/runs/10554429276/job/29236257623

Reply to this note

Please Login to reply.

Discussion

Curious why AWS S3 and not Cloudflare Pages when the site already uses CF?

I've been using https://fleek.co/ to host next.nostrudel.ninja although it does not let me set custom HTTP headers so I cant fix an issue where its blocking connections to localhost

I haven't looked into Cloudflare pages, but I'm hesitant to put the site behind cloudflare since its just a bunch of html, css, and js files and its not like it needs DOS protection

CF Pages would let you dynamically set the custom headers while also hosting the static files at the edge... So regardless of WAF/DDoS protection you'll at least have the site load very quickly using their globally distributed network

And unlike Fleek, Cloudflare doesn't gate you on the number of pushes you can make. (I also use Fleek for some projects and the free version is heavily restricted as you probably know too)

log suggests “TypeError: region.split is not a function” triggered it, haven’t got IDE handy but if not your code could be .. local vs ci version mismatch? Bad plugin version / dep? GN 😴

nostr:npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr what’s in your secrets.S3_BUCKET_REGION?

Static string passes fine, so possibly a bad/missing value? Otherwise s3 plugin bug?

- bucket-region: "${{ secrets.S3_BUCKET_REGION }}"

+ bucket-region: us-east-1

https://github.com/niallyoung/nostrudel/actions/runs/10571395032/job/29287388861

https://github.com/Reggionick/s3-deploy/issues/92

(3rd reply attempt, Nostur having trouble replying 😬)

I can have a look with you. It's been little since I last worked with AWS but worked with it quite intensively at the time. What time zone are you in RN?

Far out my replies all seem to disappear into the aether 🫠 attempt #4 🤬

Check your secrets.S3_BUCKET_REGION, may be a bad or missing value, or an s3 plugin bug?

Static string works for me:

- bucket-region: "${{ secrets.S3_BUCKET_REGION }}"

+ bucket-region: us-east-1

https://github.com/niallyoung/nostrudel/actions/runs/10571395032/job/29287388861

https://github.com/Reggionick/s3-deploy/issues/92

It worked... I could have sworn I tried that before and it didn't work...

Either way thanks for the help 👍

Awesome, most welcome!

When I get some time I’ll look through in more detail, could write up some CDK for you - a lot of AWS sdk warnings in logs, can probably just bump to latest but I’m building out my PWA and API with CDK atm and highly recommend it

yeah i just noticed that, it looks like its failing to upload... 🥲

don't worry about it too much, at some point I want to stop using Cloudflare or AWS in favor of hosting the app on blossom servers

oh wow, just caught up 👍👍

could also itself be exposed via NWS 🤔 🤪

https://github.com/asmogo/nws

nws is cool, but too inefficient for just hosting static files

oh it actually uses notes for transport? 😅 holy shit I thought it was capable of responsive interactive ssh 🤦‍♂️

My mind went straight to store and forward routing of actual tcp OOB to NOSTR, just co-ordinated using relays but a 2nd network transport in addition to wss - more like onion routing I guess