AWS S3 binding spec
To setup AWS S3 binding create a component of type . See this guide on how to create and apply a binding configuration.
See for information about authentication-related attributes
Warning
This component supports output binding with the following operations:
To perform a create operation, invoke the AWS S3 binding with a POST
method and the following JSON body:
{
"operation": "create",
"data": "YOUR_CONTENT"
}
Examples
Save text to a random generated UUID file
On Windows, utilize cmd prompt (PowerShell has different escaping mechanism)
http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
Save text to a specific file
http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
Upload a file
To upload a file, pass the file contents as the data payload; you may want to encode this in e.g. Base64 for binary content.
curl -d '{ "operation": "create", "data": "$(cat my-test-file.jpg)", "metadata": { "key": "my-test-file.jpg" } }' \
http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
Last modified August 2, 2021 : Fix Java SDK link (#1695) (2c67fd1)