ToolJet can connect to **Amazon S3** buckets and perform various operations on them.
<divstyle={{paddingTop:'24px'}}>
## Connection
To establish a connection with the **Amazon S3** data source, you can either click on the **+ Add new Data source** button located on the query panel or navigate to the **[Data Sources](/docs/data-sources/overview/)** page from the ToolJet dashboard.
To connect to AWS S3 using **AWS Instance Credentials**, select the **Use AWS Instance Credentials**. This will use the IAM role attached to the EC2 instance where ToolJet is running.
To access the metadata service of an ECS container and the EC2 instance, we use the WebIdentityToken parameter which is obtained from a successful login with an identity provider.
<imgstyle={{marginBottom:'15px'}}className="screenshot-full"src="/img/datasource-reference/aws-s3/createbucket.png"alt="Create a new bucket - S3 operation"/>
<imgstyle={{marginBottom:'15px'}}className="screenshot-full"src="/img/datasource-reference/aws-s3/removeobject.png"alt="Create a new bucket - S3 operation"/>
### List Buckets
This operation will list all the buckets in your S3. This does not require any parameter.
This operation will fetch the list of all the files in your bucket. It requires the following parameters:
#### Required Parameters
- **Bucket**
#### Optional Parameters
- **Prefix**
- **Max keys**
- **Offset**
- **Next Continuation Token**
:::info
**Next Continuation Token** <br/>
For listing a bucket for objects that begin with a specific character or a prefix, then use the **Offset** parameter. For example, if you want to list all the objects that begin with **a**, then set the **Offset** parameter to **a**. Similarly, if you want to list all the objects that begin with **ab**, then set the **Offset** parameter to **ab**. <br/>
The **Next Continuation Token** is used to list the next set of objects in a bucket. It is returned by the API when the response is truncated. The results will contain **Next Continuation Token** if there are more keys in the bucket that satisfy the list query. To get the next set of objects, set the **Next Continuation Token** parameter and run the query again. <br/>
The results will continue from where the last listing finished.
:::
<imgstyle={{marginBottom:'15px'}}className="screenshot-full"src="/img/datasource-reference/aws-s3/listobjectsv2-v3.png"alt="aws s3 list object"/>
The object owner can optionally share objects with others by creating a presigned URL, using their own security credentials, to grant time-limited permission to download the objects.
The presigned URLs are useful if you want your user/customer to be able to upload a specific object to your bucket, but you don't require them to have AWS security credentials or permissions.
We built an app to view and upload files to AWS S3 buckets. Check out the complete tutorial **[here](https://blog.tooljet.com/build-an-aws-s3-broswer-with-tooljet/)**.