Today I got tricked by ChatGPT. I asked it to help me write a custom AWS policy, and it quite confidently told me that I shall use
{"s3:RequestTag/validationProvider": "TEST"}
and everything will be great. So I did it this way, AWS accepted my code, but nothing was great, and the thing I wanted to work — did not.After some time of googling and checking the
AWS IAM UI I found out that there is no RequestTag for S3, but there is RequestObjectTag. I made that change, and it started to work as I wanted it to 🚀Still, I can say ChatGPT saved me some time, but we shall not forget that we cannot trust it blindly. Honestly speaking, it wasn't a complete hallucination because there is such a thing as
RequestTag at AWS; it just has a different context, not the S3 one.Happy ChatGPT to everyone!