Dagger
Search

pulumi

No long description provided.

Installation

dagger install github.com/matipan/daggerverse/pulumi@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126

Entrypoint

Return Type
Pulumi
Example
dagger -m github.com/matipan/daggerverse/pulumi@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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 🔗

escEnv() 🔗

The Pulumi ESC environment used for AWS OIDC

Return Type
String !
Example
dagger -m github.com/matipan/daggerverse/pulumi@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 call \
 esc-env
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Pulumi().
			EscEnv(ctx)
}
@function
async def example() -> str:
	return await (
		dag.pulumi()
		.esc_env()
	)
@func()
async example(): Promise<string> {
	return dag
		.pulumi()
		.escEnv()
}

version() 🔗

The version of the Pulumi base image

Return Type
String !
Example
dagger -m github.com/matipan/daggerverse/pulumi@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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()
}

docker() 🔗

Whether a Docker Engine will be bound to the Pulumi container

Return Type
Boolean !
Example
dagger -m github.com/matipan/daggerverse/pulumi@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 call \
 docker
func (m *myModule) example(ctx context.Context) bool  {
	return dag.
			Pulumi().
			Docker(ctx)
}
@function
async def example() -> bool:
	return await (
		dag.pulumi()
		.docker()
	)
@func()
async example(): Promise<boolean> {
	return dag
		.pulumi()
		.docker()
}

fromVersion() 🔗

Optional function 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@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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() 🔗

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@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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)
}

withEsc() 🔗

Use Pulumi ESC as the provider of AWS OIDC credentials

Return Type
Pulumi !
Arguments
NameTypeDefault ValueDescription
envString !-No description provided
Example
dagger -m github.com/matipan/daggerverse/pulumi@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 call \
 with-esc --env string
func (m *myModule) example(env string) *Pulumi  {
	return dag.
			Pulumi().
			WithEsc(env)
}
@function
def example(env: str) -> dag.Pulumi:
	return (
		dag.pulumi()
		.with_esc(env)
	)
@func()
example(env: string): Pulumi {
	return dag
		.pulumi()
		.withEsc(env)
}

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@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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)
}

withDocker() 🔗

Sets up the Pulumi container with a Docker Engine Service container

Return Type
Pulumi !
Example
dagger -m github.com/matipan/daggerverse/pulumi@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 call \
 with-docker
func (m *myModule) example() *Pulumi  {
	return dag.
			Pulumi().
			WithDocker()
}
@function
def example() -> dag.Pulumi:
	return (
		dag.pulumi()
		.with_docker()
	)
@func()
example(): Pulumi {
	return dag
		.pulumi()
		.withDocker()
}

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@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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() 🔗

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@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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() 🔗

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@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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() 🔗

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@0022951a290b16f0cd005fe6e3a6fa4bfd8b9126 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)
}

output() 🔗

Gets the output value from the stack.

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