How to download objects from S3 bucket

Hi All,

I am provisioning a Rabbitmq server using Terraform, and part of that I wanted to download the objects from S3 bucket but when I refer the terraform document I am able to get documents related to uploading the content to S3 Bucket, but I am unable to find documents for downloading the same.

Someone help me to download a particular object in my rmq server.

Thanks in advance.

Hello @Dhaamodharan,

Have you checked out the aws_s3_bucket_object data source? It will retrieve objects from an S3 bucket just as the resource can upload objects.