Add a file under a specific folder in AWS S3 bucket

Hello everyone!

I’m a newbie with Terraform and don’t have enough practice, but I haven’t found how I could create a folder in an AWS S3 bucket and then add a file inside the bucket.

If someone could enlighten me I would be very grateful, moreover, thank you in advance for reading me.

Best regards

You probably want to post in ‘terraform’ rather than ‘consul’ then. There are admins who can move the question if they find it.

In S3, there is no such thing as folders - this may be why you’re having trouble finding how to create them - because you can’t.

Any folders that are displayed to you in any S3 management UI are just implied, based on objects (files) containing a prefix containing “/” characters in their keys (names).