Feature request: aws_s3_bucket_objects data source #2634
Labels
new-data-source
Introduces a new data source.
service/s3
Issues and PRs that pertain to the s3 service.
Milestone
This issue was originally opened by @red8888 as hashicorp/terraform#16893. It was migrated here as a result of the provider split. The original body of the issue is below.
It would be nice to have an aws_s3_bucket_objects (plural) datasource that gets all s3 objects in a bucket as a list. Obviously this could be a big operation on a large bucket but I know I'm not the only one with an obvious use case for this. I need something like this to use with the "aws_elastic_beanstalk_application_version" in order to track multiple versions.
I asked an SO question about this:
https://stackoverflow.com/questions/47745443/how-do-i-get-a-list-of-s3-objects-with-the-aws-s3-bucket-object-data-source
Using an external script here as a workaround is dangerous I think. This is really the missing link for making terraform beanstalk support 100%- I'm sure there are other things this would benefit from too.
The text was updated successfully, but these errors were encountered: