跳到正文

Mailgun ​

The Mailgun provider for Pulumi can be used to provision any of the cloud resources available in Mailgun. The Mailgun provider must be configured with credentials to deploy and update resources in Mailgun.

See the full API documentation for complete details of the available Mailgun provider APIs.

Setup ​

The Mailgun provider supports several options for providing access to Mailgun credentials. See the Mailgun setup page for details.

Example ​

typescript
import * as mailgun from "@pulumi/mailgun";

const route = new mailgun.Route("test-route", {
    priority: 0,
    description: "Inbound route",
    expression: "match_recipient('.*@example.com')",
    actions: [
        "forward('http://example.com/api/v1/foos/')",
        "stop()"
    ]
});

Libraries ​

The following packages are available in packager managers:

The Mailgun provider is open source and available in the pulumi/pulumi-mailgun repo.

文档内容翻译自 Pulumi 官方文档。