inspec-aws
inspec-aws copied to clipboard
aws_s3_bucket_object does not work on directories
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.