Zenduty Provider
Generate Provider
The Zenduty provider must be installed as a Local Package by following the instructions for Any Terraform Provider:
pulumi package add terraform-provider zenduty/zenduty
Overview
The Zenduty provider is used to interact with the zenduty service. The provider needs to be configured with the proper credentials before it can be used.
Example Usage
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: nodejs
import * as pulumi from "@pulumi/pulumi";
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: python
import pulumi
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: dotnet
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: go
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: yaml
{}
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: java
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
}
}
Configuration options
The zenduty provider offers two means of providing credentials for authentication.
- Static credentials
- Environment variables
Static credentials
!> Warning: Hard-coding credentials into any Pulumi configuration is not recommended, and risks secret leakage should this file ever be committed to a public version control system.
Static credentials can be provided by adding token
in-line in the Zenduty provider configuration.
# Pulumi.yaml provider configuration file
name: configuration-example
runtime:
config:
zenduty:token:
value: your api key
Environment Variables
You can provide your credentials via the ZENDUTY_API_KEY
environment variables.
Usage:
$ export ZENDUTY_API_KEY="your-api-key"
$ pulumi preview
Configuration Reference
Required
token (String) Your Zenduty API key
base_url (String) The base url of the Zenduty