Dagger
Search

Pulumi

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/techdecline/dagger-pulumi@e1edba03c5a54fabacd0856ea684863a7e11cd6e

Entrypoint

Return Type
Pulumi !
Example
dagger -m github.com/techdecline/dagger-pulumi@e1edba03c5a54fabacd0856ea684863a7e11cd6e 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 🔗

createOrSelectStack() 🔗

Create or select a stack in the Pulumi state file

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
storageAccountNameString !-No description provided
containerNameString !-No description provided
azureCliPathDirectory !-A directory.
configPassphraseSecret !-A reference to a secret value, which can be handled more safely than the value itself.
infrastructurePathDirectory !-A directory.
stackNameString !-No description provided
Example
dagger -m github.com/techdecline/dagger-pulumi@e1edba03c5a54fabacd0856ea684863a7e11cd6e call \
 create-or-select-stack --storage-account-name string --container-name string --azure-cli-path DIR_PATH --config-passphrase env:MYSECRET --infrastructure-path DIR_PATH --stack-name string
func (m *myModule) example(storageAccountName string, containerName string, azureCliPath *Directory, configPassphrase *Secret, infrastructurePath *Directory, stackName string) *Container  {
	return dag.
			Pulumi().
			CreateOrSelectStack(storageAccountName, containerName, azureCliPath, configPassphrase, infrastructurePath, stackName)
}
@function
def example(storage_account_name: str, container_name: str, azure_cli_path: dagger.Directory, config_passphrase: dagger.Secret, infrastructure_path: dagger.Directory, stack_name: str) -> dagger.Container:
	return (
		dag.pulumi()
		.create_or_select_stack(storage_account_name, container_name, azure_cli_path, config_passphrase, infrastructure_path, stack_name)
	)
@func()
example(storageAccountName: string, containerName: string, azureCliPath: Directory, configPassphrase: Secret, infrastructurePath: Directory, stackName: string): Container {
	return dag
		.pulumi()
		.createOrSelectStack(storageAccountName, containerName, azureCliPath, configPassphrase, infrastructurePath, stackName)
}

preview() 🔗

Preview the changes to the infrastructure

Return Type
String !
Arguments
NameTypeDefault ValueDescription
storageAccountNameString !-No description provided
containerNameString !-No description provided
azureCliPathDirectory !-A directory.
configPassphraseSecret !-A reference to a secret value, which can be handled more safely than the value itself.
infrastructurePathDirectory !-A directory.
stackNameString !-No description provided
Example
dagger -m github.com/techdecline/dagger-pulumi@e1edba03c5a54fabacd0856ea684863a7e11cd6e call \
 preview --storage-account-name string --container-name string --azure-cli-path DIR_PATH --config-passphrase env:MYSECRET --infrastructure-path DIR_PATH --stack-name string
func (m *myModule) example(ctx context.Context, storageAccountName string, containerName string, azureCliPath *Directory, configPassphrase *Secret, infrastructurePath *Directory, stackName string) string  {
	return dag.
			Pulumi().
			Preview(ctx, storageAccountName, containerName, azureCliPath, configPassphrase, infrastructurePath, stackName)
}
@function
async def example(storage_account_name: str, container_name: str, azure_cli_path: dagger.Directory, config_passphrase: dagger.Secret, infrastructure_path: dagger.Directory, stack_name: str) -> str:
	return await (
		dag.pulumi()
		.preview(storage_account_name, container_name, azure_cli_path, config_passphrase, infrastructure_path, stack_name)
	)
@func()
async example(storageAccountName: string, containerName: string, azureCliPath: Directory, configPassphrase: Secret, infrastructurePath: Directory, stackName: string): Promise<string> {
	return dag
		.pulumi()
		.preview(storageAccountName, containerName, azureCliPath, configPassphrase, infrastructurePath, stackName)
}

up() 🔗

Apply the changes to the infrastructure

Return Type
String !
Arguments
NameTypeDefault ValueDescription
storageAccountNameString !-No description provided
containerNameString !-No description provided
azureCliPathDirectory !-A directory.
configPassphraseSecret !-A reference to a secret value, which can be handled more safely than the value itself.
infrastructurePathDirectory !-A directory.
stackNameString !-No description provided
Example
dagger -m github.com/techdecline/dagger-pulumi@e1edba03c5a54fabacd0856ea684863a7e11cd6e call \
 up --storage-account-name string --container-name string --azure-cli-path DIR_PATH --config-passphrase env:MYSECRET --infrastructure-path DIR_PATH --stack-name string
func (m *myModule) example(ctx context.Context, storageAccountName string, containerName string, azureCliPath *Directory, configPassphrase *Secret, infrastructurePath *Directory, stackName string) string  {
	return dag.
			Pulumi().
			Up(ctx, storageAccountName, containerName, azureCliPath, configPassphrase, infrastructurePath, stackName)
}
@function
async def example(storage_account_name: str, container_name: str, azure_cli_path: dagger.Directory, config_passphrase: dagger.Secret, infrastructure_path: dagger.Directory, stack_name: str) -> str:
	return await (
		dag.pulumi()
		.up(storage_account_name, container_name, azure_cli_path, config_passphrase, infrastructure_path, stack_name)
	)
@func()
async example(storageAccountName: string, containerName: string, azureCliPath: Directory, configPassphrase: Secret, infrastructurePath: Directory, stackName: string): Promise<string> {
	return dag
		.pulumi()
		.up(storageAccountName, containerName, azureCliPath, configPassphrase, infrastructurePath, stackName)
}