_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.
A new aws_s3_bucket_objects (plural) data source has been merged and will release with version 2.23.0 of the Terraform AWS Provider, next Thursday. 👍 Thanks to @YakDriver for the implementation.
This has been released in version 2.23.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
A new
aws_s3_bucket_objects(plural) data source has been merged and will release with version 2.23.0 of the Terraform AWS Provider, next Thursday. 👍 Thanks to @YakDriver for the implementation.