ECR
Bases: DuploResourceV3
Manage AWS ECR Repository resources.
Provides commands to create, find, list, update, and delete Elastic Container Registry (ECR) repositories within a tenant.
Read more at: https://docs.duplocloud.com/docs/overview/aws-services/ecr
Commands
apply
Apply a ECR
Create or Update a ECR resource with Duplocloud cli.
CLI Usage
Contents of theecr.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 an ECR repository.
CLI Usage
Contents of theecr.yaml file
Returns:
| Name | Type | Description |
|---|---|---|
resource |
dict
|
The created ECR repository object. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the repository could not be created. |
Parameters:
--file, -f, --cli-input
A file to read the input from
delete
find
list
List all ECR repositories for the tenant.
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
A list of ECR repository objects. |
update
Update a V3 resource by name.
Returns:
| Name | Type | Description |
|---|---|---|
message |
Success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the resource could not be created. |
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
Methods
name_from_body
Extract the repository name from a response body.