aws-ecr
No long description provided.
Installation
dagger install github.com/mjb141/daggerverse/aws-ecr@5b9948571394a9210a5b82989841ac5479472e1d
Entrypoint
Return Type
AwsEcr !
Arguments
Name | Type | Description |
---|---|---|
accessKey | Secret | AWS_ACCESS_KEY_ID |
secretKey | Secret | AWS_SECRET_ACCESS_KEY |
sessionToken | Secret | AWS_SESSION_TOKEN |
region | String ! | AWS_REGION |
Example
dagger -m github.com/mjb141/daggerverse/aws-ecr@5b9948571394a9210a5b82989841ac5479472e1d call \
--region string
func (m *myModule) example(region string) *AwsEcr {
return dag.
AwsEcr(region)
}
@function
def example(region: str) -> dag.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 string
func (m *myModule) example(region string, region1 string) *AwsEcr {
return dag.
AwsEcr(region).
WithCredentials(region1)
}
@function
def example(region: str, region1: str) -> dag.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 string
func (m *myModule) example(ctx context.Context, region string, ctr *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)
}