inspec-aws icon indicating copy to clipboard operation
inspec-aws copied to clipboard

aws_s3_bucket_object does not work on directories

Open jlosito opened this issue 5 years ago • 0 comments

Describe the problem

I would like to make sure a specific path exists on an S3 bucket I manage. Within this s3 bucket, the path ends at a directory instead of a file. I believe something like aws_s3_bucket_object(bucket_name: 'my_bucket', key: 'path/to/folder/') doesn't work, but aws_s3_bucket_object(bucket_name: 'my_bucket', key: 'path/to/folder/my_file') will. In my check, I really don't care about the files, I care more about the folder.

Possible Solution

Allow to be able to check folders in buckets.

jlosito avatar Oct 21 '20 20:10 jlosito