c6e3d35899
Signed-off-by: Sam Alba <sam.alba@gmail.com>
35 lines
1.5 KiB
Markdown
35 lines
1.5 KiB
Markdown
---
|
|
sidebar_label: s3
|
|
---
|
|
|
|
# dagger.io/aws/s3
|
|
|
|
AWS Simple Storage Service
|
|
|
|
```cue
|
|
import "dagger.io/aws/s3"
|
|
```
|
|
|
|
## s3.#Object
|
|
|
|
S3 Bucket object(s) sync
|
|
|
|
### s3.#Object Inputs
|
|
|
|
| Name | Type | Description |
|
|
| ------------- |:-------------: |:-------------: |
|
|
|*config.region* | `string` |AWS region |
|
|
|*config.accessKey* | `dagger.#Secret` |AWS access key |
|
|
|*config.secretKey* | `dagger.#Secret` |AWS secret key |
|
|
|*source* | `dagger.#Artifact` |Source Artifact to upload to S3 |
|
|
|*target* | `string` |Target S3 URL (eg. s3://\<bucket-name\>/\<path\>/\<sub-path\>) |
|
|
|*delete* | `*false \| true` |Delete files that already exist on remote destination |
|
|
|*contentType* | `*"" \| string` |Object content type |
|
|
|*always* | `*true \| false` |Always write the object to S3 |
|
|
|
|
### s3.#Object Outputs
|
|
|
|
| Name | Type | Description |
|
|
| ------------- |:-------------: |:-------------: |
|
|
|*url* | `string` |URL of the uploaded S3 object |
|