Dagger
Search

aws

No long description provided.

Installation

dagger install github.com/lukemarsden/dagger-aws@v0.1.3

Entrypoint

Return Type
Aws
Example
dagger -m github.com/lukemarsden/dagger-aws@2751d4b9fc9946d5f19371fa97dad9e5e537c08e call \
func (m *myModule) example() *Aws  {
	return dag.
			Aws()
}
@function
def example() -> dag.Aws:
	return (
		dag.aws()
	)
@func()
example(): Aws {
	return dag
		.aws()
}

Types

Aws 🔗

getSecret() 🔗

example usage: “dagger call get-secret –aws-credentials ~/.aws/credentials”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
awsCredentialsFile !-No description provided
Example
dagger -m github.com/lukemarsden/dagger-aws@2751d4b9fc9946d5f19371fa97dad9e5e537c08e call \
 get-secret --aws-credentials file:path
func (m *myModule) example(ctx context.Context, awsCredentials *File) string  {
	return dag.
			Aws().
			GetSecret(ctx, awsCredentials)
}
@function
async def example(aws_credentials: dagger.File) -> str:
	return await (
		dag.aws()
		.get_secret(aws_credentials)
	)
@func()
async example(awsCredentials: File): Promise<string> {
	return dag
		.aws()
		.getSecret(awsCredentials)
}

withAwsSecret() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
ctrContainer !-No description provided
awsCredentialsFile !-No description provided
Example
dagger -m github.com/lukemarsden/dagger-aws@2751d4b9fc9946d5f19371fa97dad9e5e537c08e call \
 with-aws-secret --ctr IMAGE:TAG --aws-credentials file:path
func (m *myModule) example(ctr *Container, awsCredentials *File) *Container  {
	return dag.
			Aws().
			WithAwsSecret(ctr, awsCredentials)
}
@function
def example(ctr: dagger.Container, aws_credentials: dagger.File) -> dagger.Container:
	return (
		dag.aws()
		.with_aws_secret(ctr, aws_credentials)
	)
@func()
example(ctr: Container, awsCredentials: File): Container {
	return dag
		.aws()
		.withAwsSecret(ctr, awsCredentials)
}

awsCli() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
awsCredentialsFile !-No description provided
Example
dagger -m github.com/lukemarsden/dagger-aws@2751d4b9fc9946d5f19371fa97dad9e5e537c08e call \
 aws-cli --aws-credentials file:path
func (m *myModule) example(awsCredentials *File) *Container  {
	return dag.
			Aws().
			AwsCli(awsCredentials)
}
@function
def example(aws_credentials: dagger.File) -> dagger.Container:
	return (
		dag.aws()
		.aws_cli(aws_credentials)
	)
@func()
example(awsCredentials: File): Container {
	return dag
		.aws()
		.awsCli(awsCredentials)
}

list() 🔗

Not called S3List because for some reason dagger fails to translate that to s3-list example usage: “dagger call list –aws-credentials ~/.aws/credentials”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
awsCredentialsFile !-No description provided
Example
dagger -m github.com/lukemarsden/dagger-aws@2751d4b9fc9946d5f19371fa97dad9e5e537c08e call \
 list --aws-credentials file:path
func (m *myModule) example(ctx context.Context, awsCredentials *File) string  {
	return dag.
			Aws().
			List(ctx, awsCredentials)
}
@function
async def example(aws_credentials: dagger.File) -> str:
	return await (
		dag.aws()
		.list(aws_credentials)
	)
@func()
async example(awsCredentials: File): Promise<string> {
	return dag
		.aws()
		.list(awsCredentials)
}

ecrGetLoginPassword() 🔗

example usage: “dagger call ecr-get-login-password –region us-east-1 –aws-credentials ~/.aws/credentials”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
awsCredentialsFile !-No description provided
regionString !-No description provided
Example
dagger -m github.com/lukemarsden/dagger-aws@2751d4b9fc9946d5f19371fa97dad9e5e537c08e call \
 ecr-get-login-password --aws-credentials file:path --region string
func (m *myModule) example(ctx context.Context, awsCredentials *File, region string) string  {
	return dag.
			Aws().
			EcrGetLoginPassword(ctx, awsCredentials, region)
}
@function
async def example(aws_credentials: dagger.File, region: str) -> str:
	return await (
		dag.aws()
		.ecr_get_login_password(aws_credentials, region)
	)
@func()
async example(awsCredentials: File, region: string): Promise<string> {
	return dag
		.aws()
		.ecrGetLoginPassword(awsCredentials, region)
}

ecrPushExample() 🔗

Push ubuntu:latest to ECR under given repo ‘test’ (repo must be created first) example usage: “dagger call ecr-push-example –region us-east-1 –aws-credentials ~/.aws/credentials –aws-account-id 12345 –repo test”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
awsCredentialsFile !-No description provided
regionString !-No description provided
awsAccountIdString !-No description provided
repoString !-No description provided
Example
dagger -m github.com/lukemarsden/dagger-aws@2751d4b9fc9946d5f19371fa97dad9e5e537c08e call \
 ecr-push-example --aws-credentials file:path --region string --aws-account-id string --repo string
func (m *myModule) example(ctx context.Context, awsCredentials *File, region string, awsAccountId string, repo string) string  {
	return dag.
			Aws().
			EcrPushExample(ctx, awsCredentials, region, awsAccountId, repo)
}
@function
async def example(aws_credentials: dagger.File, region: str, aws_account_id: str, repo: str) -> str:
	return await (
		dag.aws()
		.ecr_push_example(aws_credentials, region, aws_account_id, repo)
	)
@func()
async example(awsCredentials: File, region: string, awsAccountId: string, repo: string): Promise<string> {
	return dag
		.aws()
		.ecrPushExample(awsCredentials, region, awsAccountId, repo)
}

ecrPush() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
awsCredentialsFile !-No description provided
regionString !-No description provided
awsAccountIdString !-No description provided
repoString !-No description provided
ctrContainer !-No description provided
Example
dagger -m github.com/lukemarsden/dagger-aws@2751d4b9fc9946d5f19371fa97dad9e5e537c08e call \
 ecr-push --aws-credentials file:path --region string --aws-account-id string --repo string --ctr IMAGE:TAG
func (m *myModule) example(ctx context.Context, awsCredentials *File, region string, awsAccountId string, repo string, ctr *Container) string  {
	return dag.
			Aws().
			EcrPush(ctx, awsCredentials, region, awsAccountId, repo, ctr)
}
@function
async def example(aws_credentials: dagger.File, region: str, aws_account_id: str, repo: str, ctr: dagger.Container) -> str:
	return await (
		dag.aws()
		.ecr_push(aws_credentials, region, aws_account_id, repo, ctr)
	)
@func()
async example(awsCredentials: File, region: string, awsAccountId: string, repo: string, ctr: Container): Promise<string> {
	return dag
		.aws()
		.ecrPush(awsCredentials, region, awsAccountId, repo, ctr)
}