Dagger
Search

serverless

Run serverless deploys

Installation

dagger install github.com/sarahethompson/daggerverse/serverless@v0.0.1

Entrypoint

Return Type
Serverless
Example
dagger -m github.com/sarahethompson/daggerverse/serverless@4903a0948f492f9e170e8107ae2208734f9111d4 call \
func (m *myModule) example() *Serverless  {
	return dag.
			Serverless()
}
@function
def example() -> dag.Serverless:
	return (
		dag.serverless()
	)
@func()
example(): Serverless {
	return dag
		.serverless()
}

Types

Serverless 🔗

deploy() 🔗

Runs a serverless deploy

Return Type
String !
Arguments
NameTypeDefault ValueDescription
configDirDirectory !-configFile *File,
awsAccessKeyIdSecret !-No description provided
awsSecretAccessKeySecret !-No description provided
awsSessionTokenSecret !-No description provided
serverlessAccessKeySecret -No description provided
stageString -No description provided
regionString -No description provided
forceString -No description provided
Example
dagger -m github.com/sarahethompson/daggerverse/serverless@4903a0948f492f9e170e8107ae2208734f9111d4 call \
 deploy --config-dir DIR_PATH --aws-access-key-id env:MYSECRET --aws-secret-access-key env:MYSECRET --aws-session-token env:MYSECRET
func (m *myModule) example(ctx context.Context, configDir *Directory, awsAccessKeyId *Secret, awsSecretAccessKey *Secret, awsSessionToken *Secret) string  {
	return dag.
			Serverless().
			Deploy(ctx, configDir, awsAccessKeyId, awsSecretAccessKey, awsSessionToken)
}
@function
async def example(config_dir: dagger.Directory, aws_access_key_id: dagger.Secret, aws_secret_access_key: dagger.Secret, aws_session_token: dagger.Secret) -> str:
	return await (
		dag.serverless()
		.deploy(config_dir, aws_access_key_id, aws_secret_access_key, aws_session_token)
	)
@func()
async example(configDir: Directory, awsAccessKeyId: Secret, awsSecretAccessKey: Secret, awsSessionToken: Secret): Promise<string> {
	return dag
		.serverless()
		.deploy(configDir, awsAccessKeyId, awsSecretAccessKey, awsSessionToken)
}