Dagger
Search

aws-ecr

No long description provided.

Installation

dagger install github.com/mjb141/daggerverse/aws-ecr@5b9948571394a9210a5b82989841ac5479472e1d

Entrypoint

Return Type
AwsEcr !
Arguments
NameTypeDescription
accessKeySecret AWS_ACCESS_KEY_ID
secretKeySecret AWS_SECRET_ACCESS_KEY
sessionTokenSecret AWS_SESSION_TOKEN
regionString !AWS_REGION
Example
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
NameTypeDefault ValueDescription
accessKeySecret nullNo description provided
secretKeySecret nullNo description provided
sessionTokenSecret nullNo description provided
regionString !"eu-west-1"No description provided
Example
dagger -m github.com/mjb141/daggerverse/aws-ecr@5b9948571394a9210a5b82989841ac5479472e1d call \
 --region string with-credentials --region string \
 push --ctr IMAGE:TAG --account-id string --repository 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
NameTypeDefault ValueDescription
ctrContainer !-An OCI-compatible container, also known as a Docker container.
accountIdString !-No description provided
repositoryString !-No description provided
tags[String ! ] nullNo 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)
}