kevin on Nostr: I hit an issue using a "free" image hosting site with an API. I decided on using ...
I hit an issue using a "free" image hosting site with an API. I decided on using Amazon S3 instead.
This small repo allows you to use bash to create a bucket, provision a limited IAM user for it and make its contents public - plus clean up when done:
https://github.com/kevinbolger/s3-bucket-managerThis should come with the obvious disclaimer that making S3 buckets public can make you have a bad day - so use with caution.
I can now use aws.s3 in #rstats to upload images to a fresh bucket and remove as soon as its fulfilled its purpose.
Published at
2023-08-02 06:45:31Event JSON
{
"id": "412a3f38759024b749874ed1e9e6ce98f848d6ab1839989a1bdae78057d0ea46",
"pubkey": "9266029a00e9c4ce9667cba1628bcdcfe4893406a5b672ecd55164a9f664f689",
"created_at": 1690958731,
"kind": 1,
"tags": [
[
"t",
"rstats"
]
],
"content": "I hit an issue using a \"free\" image hosting site with an API. I decided on using Amazon S3 instead.\n\nThis small repo allows you to use bash to create a bucket, provision a limited IAM user for it and make its contents public - plus clean up when done:\n\nhttps://github.com/kevinbolger/s3-bucket-manager\n\nThis should come with the obvious disclaimer that making S3 buckets public can make you have a bad day - so use with caution.\n\nI can now use aws.s3 in #rstats to upload images to a fresh bucket and remove as soon as its fulfilled its purpose.",
"sig": "eb2c1df055d13ebdb29283620156d65028f91d5d19236078165fc617b6dcbb0e361f879d3a80963ada5b435e5d6b3dda38f6adf5cb7dee6f4078b22e1ac54e8b"
}