Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I nearly made myself a very nice footgun not long since.

So MediaConvert (video transcoding), direct s3 upload to s3 bucket, bucket fires event to my application, my application builds the job and submits it to media convert with the output bucket as the destination.

Straight forward enough, unless you happen to be copying a config tired and put your input/output buckets as the same bucket...

Fortunately previous-me was paranoid enough to have put in an if check and die if they where the same but otherwise that could have cost a lot of money.



why would MediaConvert not build that if check in? perhaps a good feature request for them.


Because you can write back to the same bucket at different prefixes if you want to.

It's simply simpler to split the buckets in my case.

I added further checks to not only check the bucket made sense but also that the inbound and outbound had the correct prefixes.

So if another person does the same it'll catch both ways.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: