mirror of https://github.com/dapr/docs.git
				
				
				
			add ForcePathStyle support for s3 binding (#2054)
Signed-off-by: rainfd <rainfd@live.cn> Co-authored-by: greenie-msft <56556602+greenie-msft@users.noreply.github.com> Co-authored-by: Mark Fussell <mfussell@microsoft.com> Signed-off-by: Antonio Robson de Paula <robson.p@sidi.org.br>
This commit is contained in:
		
							parent
							
								
									eea015b833
								
							
						
					
					
						commit
						33cc1dbdad
					
				|  | @ -37,6 +37,8 @@ spec: | |||
|     value: <bool> | ||||
|   - name: encodeBase64 | ||||
|     value: <bool> | ||||
|   - name: forcePathStyle | ||||
|     value: <bool> | ||||
| ``` | ||||
| 
 | ||||
| {{% alert title="Warning" color="warning" %}} | ||||
|  | @ -52,6 +54,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr | |||
| | accessKey          | Y        | Output | The AWS Access Key to access this resource                              | `"key"`             | | ||||
| | secretKey          | Y        | Output | The AWS Secret Access Key to access this resource                       | `"secretAccessKey"` | | ||||
| | sessionToken       | N        | Output | The AWS session token to use                                            | `"sessionToken"`    | | ||||
| | forcePathStyle     | N        | Output | Currently Amazon S3 SDK supports virtual hosted-style and path-style access. `true` is path-style format like `https://<endpoint>/<your bucket>/<key>`. `false` is hosted-style format like `https://<your bucket>.<endpoint>/<key>`. Defaults to `false` | `true`, `false` | | ||||
| | decodeBase64 | N | Output | Configuration to decode base64 file content before saving to bucket storage. (In case of saving a file with binary content). `true` is the only allowed positive value. Other positive variations like `"True", "1"` are not acceptable. Defaults to `false` | `true`, `false` | | ||||
| | encodeBase64 | N | Output | Configuration to encode base64 file content before return the content. (In case of opening a file with binary content). `true` is the only allowed positive value. Other positive variations like `"True", "1"` are not acceptable. Defaults to `false` | `true`, `false` | | ||||
| 
 | ||||
|  | @ -144,6 +147,8 @@ spec: | |||
|     value: mysession | ||||
|   - name: decodeBase64 | ||||
|     value: <bool> | ||||
|   - name: forcePathStyle | ||||
|     value: <bool> | ||||
| ``` | ||||
| 
 | ||||
| Then you can upload it as you would normally: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue