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
字段名为 。
To perform a create operation, invoke the AWS S3 binding with a POST
method and the following JSON body:
{
"operation": "create",
"data": "YOUR_CONTENT"
示例
Save text to a random generated UUID file
在Windows上,使用cmd提示符(PowerShell有不同的转义机制)。
curl -d '{ "operation": "create", "data": "Hello World" }' \
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" } }' \