Dagger
Search

pulumi

No long description provided.

Installation

dagger install github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591

Entrypoint

Return Type
Pulumi
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
func (m *myModule) example() *Pulumi  {
	return dag.
			Pulumi()
}
@function
def example() -> dag.Pulumi:
	return (
		dag.pulumi()
	)
@func()
example(): Pulumi {
	return dag
		.pulumi()
}

Types

Pulumi 🔗

awsAccessKey() 🔗

Return Type
Secret !
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 aws-access-key
func (m *myModule) example() *Secret  {
	return dag.
			Pulumi().
			AwsAccessKey()
}
@function
def example() -> dagger.Secret:
	return (
		dag.pulumi()
		.aws_access_key()
	)
@func()
example(): Secret {
	return dag
		.pulumi()
		.awsAccessKey()
}

awsSecretKey() 🔗

Return Type
Secret !
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 aws-secret-key
func (m *myModule) example() *Secret  {
	return dag.
			Pulumi().
			AwsSecretKey()
}
@function
def example() -> dagger.Secret:
	return (
		dag.pulumi()
		.aws_secret_key()
	)
@func()
example(): Secret {
	return dag
		.pulumi()
		.awsSecretKey()
}

pulumiToken() 🔗

Return Type
Secret !
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 pulumi-token
func (m *myModule) example() *Secret  {
	return dag.
			Pulumi().
			PulumiToken()
}
@function
def example() -> dagger.Secret:
	return (
		dag.pulumi()
		.pulumi_token()
	)
@func()
example(): Secret {
	return dag
		.pulumi()
		.pulumiToken()
}

version() 🔗

Return Type
String !
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 version
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Pulumi().
			Version(ctx)
}
@function
async def example() -> str:
	return await (
		dag.pulumi()
		.version()
	)
@func()
async example(): Promise<string> {
	return dag
		.pulumi()
		.version()
}

fromVersion() 🔗

FromVersion is an optional function that users can use to specify the version of pulumi’s docker image to use as base.

Return Type
Pulumi !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 from-version --version string
func (m *myModule) example(version string) *Pulumi  {
	return dag.
			Pulumi().
			FromVersion(version)
}
@function
def example(version: str) -> dag.Pulumi:
	return (
		dag.pulumi()
		.from_version(version)
	)
@func()
example(version: string): Pulumi {
	return dag
		.pulumi()
		.fromVersion(version)
}

withAwsCredentials() 🔗

WithAwsCredentials sets the AWS credentials to be used by Pulumi. Call this function if you want pulumi to point your changes to AWS.

Return Type
Pulumi !
Arguments
NameTypeDefault ValueDescription
awsAccessKeySecret !-No description provided
awsSecretKeySecret !-No description provided
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 with-aws-credentials --aws-access-key env:MYSECRET --aws-secret-key env:MYSECRET
func (m *myModule) example(awsAccessKey *Secret, awsSecretKey *Secret) *Pulumi  {
	return dag.
			Pulumi().
			WithAwsCredentials(awsAccessKey, awsSecretKey)
}
@function
def example(aws_access_key: dagger.Secret, aws_secret_key: dagger.Secret) -> dag.Pulumi:
	return (
		dag.pulumi()
		.with_aws_credentials(aws_access_key, aws_secret_key)
	)
@func()
example(awsAccessKey: Secret, awsSecretKey: Secret): Pulumi {
	return dag
		.pulumi()
		.withAwsCredentials(awsAccessKey, awsSecretKey)
}

withPulumiToken() 🔗

WithPulumiToken sets the Pulumi token to be used by Pulumi.

Return Type
Pulumi !
Arguments
NameTypeDefault ValueDescription
pulumiTokenSecret !-No description provided
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 with-pulumi-token --pulumi-token env:MYSECRET
func (m *myModule) example(pulumiToken *Secret) *Pulumi  {
	return dag.
			Pulumi().
			WithPulumiToken(pulumiToken)
}
@function
def example(pulumi_token: dagger.Secret) -> dag.Pulumi:
	return (
		dag.pulumi()
		.with_pulumi_token(pulumi_token)
	)
@func()
example(pulumiToken: Secret): Pulumi {
	return dag
		.pulumi()
		.withPulumiToken(pulumiToken)
}

up() 🔗

Up runs the pulumi up command for the given stack and directory. NOTE: This command will perform changes in your cloud.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
stackString !-No description provided
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 up --src DIR_PATH --stack string
func (m *myModule) example(ctx context.Context, src *Directory, stack string) string  {
	return dag.
			Pulumi().
			Up(ctx, src, stack)
}
@function
async def example(src: dagger.Directory, stack: str) -> str:
	return await (
		dag.pulumi()
		.up(src, stack)
	)
@func()
async example(src: Directory, stack: string): Promise<string> {
	return dag
		.pulumi()
		.up(src, stack)
}

preview() 🔗

Preview runs the pulumi preview command for the given stack and directory returning the output of the diff that was generated.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
stackString !-No description provided
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 preview --src DIR_PATH --stack string
func (m *myModule) example(ctx context.Context, src *Directory, stack string) string  {
	return dag.
			Pulumi().
			Preview(ctx, src, stack)
}
@function
async def example(src: dagger.Directory, stack: str) -> str:
	return await (
		dag.pulumi()
		.preview(src, stack)
	)
@func()
async example(src: Directory, stack: string): Promise<string> {
	return dag
		.pulumi()
		.preview(src, stack)
}

refresh() 🔗

Refresh runs the pulumi refresh command for the given stack and directory returning the output of the diff if there was any.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
stackString !-No description provided
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 refresh --src DIR_PATH --stack string
func (m *myModule) example(ctx context.Context, src *Directory, stack string) string  {
	return dag.
			Pulumi().
			Refresh(ctx, src, stack)
}
@function
async def example(src: dagger.Directory, stack: str) -> str:
	return await (
		dag.pulumi()
		.refresh(src, stack)
	)
@func()
async example(src: Directory, stack: string): Promise<string> {
	return dag
		.pulumi()
		.refresh(src, stack)
}

destroy() 🔗

Destroy runs the pulumi destroy command for the given stack and directory. NOTE: This command will destroy all the resources created by the stack.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
stackString !-No description provided
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 destroy --src DIR_PATH --stack string
func (m *myModule) example(ctx context.Context, src *Directory, stack string) string  {
	return dag.
			Pulumi().
			Destroy(ctx, src, stack)
}
@function
async def example(src: dagger.Directory, stack: str) -> str:
	return await (
		dag.pulumi()
		.destroy(src, stack)
	)
@func()
async example(src: Directory, stack: string): Promise<string> {
	return dag
		.pulumi()
		.destroy(src, stack)
}

run() 🔗

Run runs the specified pulumi command. For example: preview –diff.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
commandString !-No description provided
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
 run --src DIR_PATH --command string
func (m *myModule) example(ctx context.Context, src *Directory, command string) string  {
	return dag.
			Pulumi().
			Run(ctx, src, command)
}
@function
async def example(src: dagger.Directory, command: str) -> str:
	return await (
		dag.pulumi()
		.run(src, command)
	)
@func()
async example(src: Directory, command: string): Promise<string> {
	return dag
		.pulumi()
		.run(src, command)
}