aws-ecr
No long description provided.
Installation
dagger install github.com/mjb141/daggerverse/aws-ecr@5b9948571394a9210a5b82989841ac5479472e1dEntrypoint
Return Type
AwsEcr !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| accessKey | Secret | null | AWS_ACCESS_KEY_ID |
| secretKey | Secret | null | AWS_SECRET_ACCESS_KEY |
| sessionToken | Secret | null | AWS_SESSION_TOKEN |
| region | String ! | "eu-west-1" | AWS_REGION |
Example
dagger -m github.com/mjb141/daggerverse/aws-ecr@5b9948571394a9210a5b82989841ac5479472e1d call \
--region stringfunc (m *MyModule) Example(region string) *dagger.AwsEcr {
return dag.
AwsEcr(region)
}@function
def example(region: str) -> dagger.AwsEcr:
return (
dag.aws_ecr(region)
)@func()
example(region: string): AwsEcr {
return dag
.awsEcr(region)
}Types
AwsEcr 🔗
withCredentials() 🔗
(Required for: push) Set AWS credentials
Return Type
AwsEcr !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| accessKey | Secret | null | No description provided |
| secretKey | Secret | null | No description provided |
| sessionToken | Secret | null | No description provided |
| region | String ! | "eu-west-1" | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/aws-ecr@5b9948571394a9210a5b82989841ac5479472e1d call \
--region string with-credentials --region stringfunc (m *MyModule) Example(region string, region1 string) *dagger.AwsEcr {
return dag.
AwsEcr(region).
WithCredentials(region1)
}@function
def example(region: str, region1: str) -> dagger.AwsEcr:
return (
dag.aws_ecr(region)
.with_credentials(region1)
)@func()
example(region: string, region1: string): AwsEcr {
return dag
.awsEcr(region)
.withCredentials(region1)
}push() 🔗
Push an Image to AWS ECR
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | An OCI-compatible container, also known as a Docker container. |
| accountId | String ! | - | No description provided |
| repository | String ! | - | No description provided |
| tags | [String ! ] | null | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/aws-ecr@5b9948571394a9210a5b82989841ac5479472e1d call \
--region string push --ctr IMAGE:TAG --account-id string --repository stringfunc (m *MyModule) Example(ctx context.Context, region string, ctr *dagger.Container, accountId string, repository string) []string {
return dag.
AwsEcr(region).
Push(ctx, ctr, accountId, repository)
}@function
async def example(region: str, ctr: dagger.Container, account_id: str, repository: str) -> List[str]:
return await (
dag.aws_ecr(region)
.push(ctr, account_id, repository)
)@func()
async example(region: string, ctr: Container, accountId: string, repository: string): Promise<string[]> {
return dag
.awsEcr(region)
.push(ctr, accountId, repository)
}