diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-07-03 15:21:56 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-07-03 15:21:58 +0200 |
| commit | 95dc66cb108a311065917362a00b86c08767303d (patch) | |
| tree | 46ca65be6548224be0dd5a42bb86f2ecede14da8 /examples | |
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/yaml/Pulumi.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/yaml/Pulumi.yaml b/examples/yaml/Pulumi.yaml new file mode 100644 index 0000000..d9cd94c --- /dev/null +++ b/examples/yaml/Pulumi.yaml @@ -0,0 +1,36 @@ +name: porkbun-example +runtime: yaml +description: Example Pulumi program managing Porkbun DNS records. + +plugins: + providers: + - name: porkbun + path: ../../bin + +config: + domain: + type: string + default: example.com + +resources: + www: + type: porkbun:DnsRecord + properties: + domain: ${domain} + name: www + type: A + content: 192.0.2.1 + + mail: + type: porkbun:DnsRecord + properties: + domain: ${domain} + name: "" + type: MX + content: mail.${domain} + prio: 10 + ttl: 3600 + +outputs: + wwwFqdn: ${www.fqdn} + wwwRecordId: ${www.id} |