跳到正文

Fastly ​

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

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

Setup ​

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

Example ​

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

const service = new fastly.Servicev1("my-service", {
  backends: [{
       address: "127.0.0.1",
       name: "localhost",
       port: 80
   }],
  domains: [{
       comment: "demo",
       name: "demo.pulumi.com",
  }],
  forceDestroy: true,
});

Libraries ​

The following packages are available in packager managers:

The Fastly provider is open source and available in the pulumi/pulumi-fastly repo.

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