4 ms·
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 applicati
by noir_lord 5y ago
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.
- swyx 5y agowhy would MediaConvert not build that if check in? perhaps a good feature request for them.
- noir_lord 5y agoBecause 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.