S3
Commands
apply
Apply a S3
Create or Update a S3 resource with Duplocloud cli.
CLI Usage
Contents of thes3.yaml file
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
Success message. |
Parameters:
--file, -f, --cli-input
A file to read the input from
--patches, --add, --remove, --copy, --replace, --test, --move
The json patch to apply
create
Create a S3 resource.
CLI Usage
Contents of thes3.yaml file
One liner example
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
Success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the resource could not be created. |
Parameters:
--file, -f, --cli-input
A file to read the input from
delete
find
Find an S3 bucket by name.
Accepts either the short name (e.g. mybucket) or the full AWS bucket name (e.g. duploservices-tenant-mybucket-123456).
Resolution order
- Try the name as-is via the single-bucket GET endpoint.
- On 404, build the full name using the tenant prefix and AWS account ID, and retry the single-bucket GET.
- If still 404, raise DuploNotFound.
Returns:
| Name | Type | Description |
|---|---|---|
bucket |
dict
|
The S3 bucket object. |
Raises:
| Type | Description |
|---|---|
DuploNotFound
|
If the bucket could not be found. |
Parameters:
name
positional
The resource name
list
update
Update an S3 bucket.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
The updated bucket details. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the bucket could not be updated. |
Parameters:
name
positional
The resource name
--file, -f, --cli-input
A file to read the input from
--patches, --add, --remove, --copy, --replace, --test, --move
The json patch to apply