Pulumi
This module has been generated via dagger init and serves as a reference tobasic 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@v0.2.0
Entrypoint
Return Type
Pulumi !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
storageAccountName | String ! | "" | The name of the Azure Storage Account for state storage |
containerName | String ! | "" | The name of the Azure Storage Container for state storage |
stackName | String ! | "" | The name of the Pulumi stack |
cacheDir | String ! | "/root/.cache/uv" | The directory for caching Python Dependencies within the container |
pulumiImage | String ! | "pulumi/pulumi:latest" | The Pulumi Docker image to use |
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image string
func (m *myModule) example(storageAccountName string, containerName string, stackName string, cacheDir string, pulumiImage string) *Pulumi {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
}
@function
def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str) -> dag.Pulumi:
return (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
)
@func()
example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string): Pulumi {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
}
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@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image string storage-account-name
func (m *myModule) example(ctx context.Context, storageAccountName string, containerName string, stackName string, cacheDir string, pulumiImage string) string {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
StorageAccountName(ctx)
}
@function
async def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str) -> str:
return await (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.storage_account_name()
)
@func()
async example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string): Promise<string> {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.storageAccountName()
}
containerName() 🔗
The name of the Azure Storage Container for state storage
Return Type
String !
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image string container-name
func (m *myModule) example(ctx context.Context, storageAccountName string, containerName string, stackName string, cacheDir string, pulumiImage string) string {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
ContainerName(ctx)
}
@function
async def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str) -> str:
return await (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.container_name()
)
@func()
async example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string): Promise<string> {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.containerName()
}
stackName() 🔗
The name of the Pulumi stack
Return Type
String !
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image string stack-name
func (m *myModule) example(ctx context.Context, storageAccountName string, containerName string, stackName string, cacheDir string, pulumiImage string) string {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
StackName(ctx)
}
@function
async def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str) -> str:
return await (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.stack_name()
)
@func()
async example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string): Promise<string> {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.stackName()
}
cacheDir() 🔗
The directory for caching Python Dependencies within the container
Return Type
String !
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image string cache-dir
func (m *myModule) example(ctx context.Context, storageAccountName string, containerName string, stackName string, cacheDir string, pulumiImage string) string {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
CacheDir(ctx)
}
@function
async def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str) -> str:
return await (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.cache_dir()
)
@func()
async example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string): Promise<string> {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.cacheDir()
}
pulumiImage() 🔗
The Pulumi Docker image to use
Return Type
String !
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image string pulumi-image
func (m *myModule) example(ctx context.Context, storageAccountName string, containerName string, stackName string, cacheDir string, pulumiImage string) string {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
PulumiImage(ctx)
}
@function
async def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str) -> str:
return await (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.pulumi_image()
)
@func()
async example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string): Promise<string> {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.pulumiImage()
}
buildContainer() 🔗
Build the Pulumi container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
infrastructurePath | Directory ! | - | A directory. |
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image string build-container --infrastructure-path DIR_PATH
func (m *myModule) example(storageAccountName string, containerName string, stackName string, cacheDir string, pulumiImage string, infrastructurePath *Directory) *Container {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
BuildContainer(infrastructurePath)
}
@function
def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str, infrastructure_path: dagger.Directory) -> dagger.Container:
return (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.build_container(infrastructure_path)
)
@func()
example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string, infrastructurePath: Directory): Container {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.buildContainer(infrastructurePath)
}
createOrSelectStack() 🔗
Create or select a stack in the Pulumi state file
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
configPassphrase | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
infrastructurePath | Directory ! | - | A directory. |
azureCliPath | Directory | - | No description provided |
azureOidcToken | String | - | No description provided |
azureClientId | String | - | No description provided |
azureTenantId | String | - | No description provided |
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image string create-or-select-stack --config-passphrase env:MYSECRET --infrastructure-path DIR_PATH
func (m *myModule) example(storageAccountName string, containerName string, stackName string, cacheDir string, pulumiImage string, configPassphrase *Secret, infrastructurePath *Directory) *Container {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
CreateOrSelectStack(configPassphrase, infrastructurePath)
}
@function
def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str, config_passphrase: dagger.Secret, infrastructure_path: dagger.Directory) -> dagger.Container:
return (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.create_or_select_stack(config_passphrase, infrastructure_path)
)
@func()
example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string, configPassphrase: Secret, infrastructurePath: Directory): Container {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.createOrSelectStack(configPassphrase, infrastructurePath)
}
debugEnv() 🔗
Preview the changes to the infrastructure
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
storageAccountName | String ! | - | No description provided |
containerName | String ! | - | No description provided |
configPassphrase | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
infrastructurePath | Directory ! | - | A directory. |
stackName | String ! | - | No description provided |
azureCliPath | Directory | - | No description provided |
azureOidcToken | String | - | No description provided |
azureClientId | String | - | No description provided |
azureTenantId | String | - | No description provided |
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image 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, containerName string, stackName string, cacheDir string, pulumiImage string, storageAccountName1 string, containerName1 string, configPassphrase *Secret, infrastructurePath *Directory, stackName1 string) *Container {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
DebugEnv(storageAccountName1, containerName1, configPassphrase, infrastructurePath, stackName1)
}
@function
def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str, storage_account_name1: str, container_name1: str, config_passphrase: dagger.Secret, infrastructure_path: dagger.Directory, stack_name1: str) -> dagger.Container:
return (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.debug_env(storage_account_name1, container_name1, config_passphrase, infrastructure_path, stack_name1)
)
@func()
example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string, storageAccountName1: string, containerName1: string, configPassphrase: Secret, infrastructurePath: Directory, stackName1: string): Container {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.debugEnv(storageAccountName1, containerName1, configPassphrase, infrastructurePath, stackName1)
}
preview() 🔗
Preview the changes to the infrastructure
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
storageAccountName | String ! | - | No description provided |
containerName | String ! | - | No description provided |
configPassphrase | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
infrastructurePath | Directory ! | - | A directory. |
stackName | String ! | - | No description provided |
azureCliPath | Directory | - | No description provided |
azureOidcToken | String | - | No description provided |
azureClientId | String | - | No description provided |
azureTenantId | String | - | No description provided |
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image 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, containerName string, stackName string, cacheDir string, pulumiImage string, storageAccountName1 string, containerName1 string, configPassphrase *Secret, infrastructurePath *Directory, stackName1 string) string {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
Preview(ctx, storageAccountName1, containerName1, configPassphrase, infrastructurePath, stackName1)
}
@function
async def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str, storage_account_name1: str, container_name1: str, config_passphrase: dagger.Secret, infrastructure_path: dagger.Directory, stack_name1: str) -> str:
return await (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.preview(storage_account_name1, container_name1, config_passphrase, infrastructure_path, stack_name1)
)
@func()
async example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string, storageAccountName1: string, containerName1: string, configPassphrase: Secret, infrastructurePath: Directory, stackName1: string): Promise<string> {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.preview(storageAccountName1, containerName1, configPassphrase, infrastructurePath, stackName1)
}
previewFile() 🔗
Preview the changes to the infrastructure and output to a file
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
storageAccountName | String ! | - | No description provided |
containerName | String ! | - | No description provided |
configPassphrase | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
infrastructurePath | Directory ! | - | A directory. |
stackName | String ! | - | No description provided |
azureCliPath | Directory | - | No description provided |
azureOidcToken | String | - | No description provided |
azureClientId | String | - | No description provided |
azureTenantId | String | - | No description provided |
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image 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, containerName string, stackName string, cacheDir string, pulumiImage string, storageAccountName1 string, containerName1 string, configPassphrase *Secret, infrastructurePath *Directory, stackName1 string) *File {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
PreviewFile(storageAccountName1, containerName1, configPassphrase, infrastructurePath, stackName1)
}
@function
def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str, storage_account_name1: str, container_name1: str, config_passphrase: dagger.Secret, infrastructure_path: dagger.Directory, stack_name1: str) -> dagger.File:
return (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.preview_file(storage_account_name1, container_name1, config_passphrase, infrastructure_path, stack_name1)
)
@func()
example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string, storageAccountName1: string, containerName1: string, configPassphrase: Secret, infrastructurePath: Directory, stackName1: string): File {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.previewFile(storageAccountName1, containerName1, configPassphrase, infrastructurePath, stackName1)
}
up() 🔗
Apply the changes to the infrastructure
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
storageAccountName | String ! | - | No description provided |
containerName | String ! | - | No description provided |
configPassphrase | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
infrastructurePath | Directory ! | - | A directory. |
stackName | String ! | - | No description provided |
azureCliPath | Directory | - | No description provided |
azureOidcToken | String | - | No description provided |
azureClientId | String | - | No description provided |
azureTenantId | String | - | No description provided |
Example
dagger -m github.com/techdecline/dagger-pulumi/pulumi@8a60aed1792876ba49800f22a02b8c382e124a06 call \
--storage-account-name string --container-name string --stack-name string --cache-dir string --pulumi-image 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, containerName string, stackName string, cacheDir string, pulumiImage string, storageAccountName1 string, containerName1 string, configPassphrase *Secret, infrastructurePath *Directory, stackName1 string) string {
return dag.
Pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage).
Up(ctx, storageAccountName1, containerName1, configPassphrase, infrastructurePath, stackName1)
}
@function
async def example(storage_account_name: str, container_name: str, stack_name: str, cache_dir: str, pulumi_image: str, storage_account_name1: str, container_name1: str, config_passphrase: dagger.Secret, infrastructure_path: dagger.Directory, stack_name1: str) -> str:
return await (
dag.pulumi(storage_account_name, container_name, stack_name, cache_dir, pulumi_image)
.up(storage_account_name1, container_name1, config_passphrase, infrastructure_path, stack_name1)
)
@func()
async example(storageAccountName: string, containerName: string, stackName: string, cacheDir: string, pulumiImage: string, storageAccountName1: string, containerName1: string, configPassphrase: Secret, infrastructurePath: Directory, stackName1: string): Promise<string> {
return dag
.pulumi(storageAccountName, containerName, stackName, cacheDir, pulumiImage)
.up(storageAccountName1, containerName1, configPassphrase, infrastructurePath, stackName1)
}