pulumi
No long description provided.
Installation
dagger install github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591Entrypoint
Return Type
Pulumi Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
func (m *MyModule) Example() *dagger.Pulumi {
return dag.
Pulumi()
}@function
def example() -> dagger.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-keyfunc (m *MyModule) Example() *dagger.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-keyfunc (m *MyModule) Example() *dagger.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-tokenfunc (m *MyModule) Example() *dagger.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 \
versionfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
from-version --version stringfunc (m *MyModule) Example(version string) *dagger.Pulumi {
return dag.
Pulumi().
FromVersion(version)
}@function
def example(version: str) -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| awsAccessKey | Secret ! | - | No description provided |
| awsSecretKey | Secret ! | - | 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:MYSECRETfunc (m *MyModule) Example(awsAccessKey *dagger.Secret, awsSecretKey *dagger.Secret) *dagger.Pulumi {
return dag.
Pulumi().
WithAwsCredentials(awsAccessKey, awsSecretKey)
}@function
def example(aws_access_key: dagger.Secret, aws_secret_key: dagger.Secret) -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| pulumiToken | Secret ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
with-pulumi-token --pulumi-token env:MYSECRETfunc (m *MyModule) Example(pulumiToken *dagger.Secret) *dagger.Pulumi {
return dag.
Pulumi().
WithPulumiToken(pulumiToken)
}@function
def example(pulumi_token: dagger.Secret) -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| stack | String ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
up --src DIR_PATH --stack stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| stack | String ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
preview --src DIR_PATH --stack stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| stack | String ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
refresh --src DIR_PATH --stack stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| stack | String ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
destroy --src DIR_PATH --stack stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| command | String ! | - | No description provided |
Example
dagger -m github.com/matipan/daggerverse/pulumi@28815a9f7ec2d43c52e24c19916e80c01903e591 call \
run --src DIR_PATH --command stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.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)
}