This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/pkg/universe.dagger.io/x/david@rawkode.dev/pulumi/example.cue
David Flanagan 574e9ccf16
fix: tidy up a little
Signed-off-by: David Flanagan <david@rawkode.dev>
2022-04-01 21:09:59 +01:00

25 lines
547 B
CUE

package rawkode_pulumi_example
import (
"dagger.io/dagger"
"universe.dagger.io/x/david@rawkode.dev/pulumi"
)
dagger.#Plan & {
client: {
filesystem: "./": read: contents: dagger.#FS
env: {
PULUMI_ACCESS_TOKEN: dagger.#Secret
// If not using Pulumi SaaS, use CONFIG_PASSPHRASE
// PULUMI_CONFIG_PASSPHRASE: dagger.#Secret
}
}
actions: rawkode: pulumi.#Up & {
stack: "test"
stackCreate: true
runtime: "nodejs"
accessToken: client.env.PULUMI_ACCESS_TOKEN
source: client.filesystem."./".read.contents
}
}