cuemata/examples/pulumi-time/main.cue
Hoang Nguyen 8256005b47
Replace gen_pulumi_metaschema target with a CUE task
It needs to be executed using `cue` CLI though.
2024-05-29 00:00:00 +07:00

28 lines
589 B
CUE

// SPDX-FileCopyrightText: 2023 Hoang Nguyen <folliekazetani@protonmail.com>
//
// SPDX-License-Identifier: Apache-2.0
package main
import "gitlab.com/folliehiyuki/cuemata/schemata/pulumi"
pulumi.#PulumiYAML & {
name: "cuemata-example-time"
runtime: "yaml"
description: "Example Pulumi project using CUE with time provider"
resources: {
time: {
type: "pulumi:providers:time"
options: version: "v0.0.16"
}
rotation: {
type: "time:Rotating"
properties: rotationDays: 30
options: provider: "${time}"
}
}
outputs: date: "${rotation.hour}"
}