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/pulumi@c553c24b2856ccbe24ecaa219a39f42776b7ad14

Entrypoint

Return Type
Pulumi !
Arguments
NameTypeDescription
storageAccountNameString !The name of the Azure Storage Account for state storage
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@c553c24b2856ccbe24ecaa219a39f42776b7ad14 call \
 --storage-account-name string
func (m *myModule) example(storageAccountName string) *Pulumi  {
	return dag.
			Pulumi(storageAccountName)
}
@function
def example(storage_account_name: str) -> dag.Pulumi:
	return (
		dag.pulumi(storage_account_name)
	)
@func()
example(storageAccountName: string): Pulumi {
	return dag
		.pulumi(storageAccountName)
}

Types

Pulumi 🔗

Pulumi Functions for Azure Configurations

storageAccountName() 🔗

The name of the Azure Storage Account for state storage

Return Type
String !
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@c553c24b2856ccbe24ecaa219a39f42776b7ad14 call \
 --storage-account-name string storage-account-name
func (m *myModule) example(ctx context.Context, storageAccountName string) string  {
	return dag.
			Pulumi(storageAccountName).
			StorageAccountName(ctx)
}
@function
async def example(storage_account_name: str) -> str:
	return await (
		dag.pulumi(storage_account_name)
		.storage_account_name()
	)
@func()
async example(storageAccountName: string): Promise<string> {
	return dag
		.pulumi(storageAccountName)
		.storageAccountName()
}

createOrSelectStack() 🔗

Create or select a stack in the Pulumi state file

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

debugEnv() 🔗

Preview the changes to the infrastructure

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

preview() 🔗

Preview the changes to the infrastructure

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

previewFile() 🔗

Preview the changes to the infrastructure

Return Type
File !
Arguments
NameTypeDefault ValueDescription
storageAccountNameString !-No description provided
containerNameString !-No description provided
configPassphraseSecret !-A reference to a secret value, which can be handled more safely than the value itself.
infrastructurePathDirectory !-A directory.
stackNameString !-No description provided
azureCliPathDirectory -No description provided
azureOidcTokenString -No description provided
azureClientIdString -No description provided
azureTenantIdString -No description provided
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@c553c24b2856ccbe24ecaa219a39f42776b7ad14 call \
 --storage-account-name string preview-file --storage-account-name string --container-name string --config-passphrase env:MYSECRET --infrastructure-path DIR_PATH --stack-name string
func (m *myModule) example(storageAccountName string, storageAccountName1 string, containerName string, configPassphrase *Secret, infrastructurePath *Directory, stackName string) *File  {
	return dag.
			Pulumi(storageAccountName).
			PreviewFile(storageAccountName1, containerName, configPassphrase, infrastructurePath, stackName)
}
@function
def example(storage_account_name: str, storage_account_name1: str, container_name: str, config_passphrase: dagger.Secret, infrastructure_path: dagger.Directory, stack_name: str) -> dagger.File:
	return (
		dag.pulumi(storage_account_name)
		.preview_file(storage_account_name1, container_name, config_passphrase, infrastructure_path, stack_name)
	)
@func()
example(storageAccountName: string, storageAccountName1: string, containerName: string, configPassphrase: Secret, infrastructurePath: Directory, stackName: string): File {
	return dag
		.pulumi(storageAccountName)
		.previewFile(storageAccountName1, containerName, configPassphrase, infrastructurePath, stackName)
}

up() 🔗

Preview the changes to the infrastructure

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