0.15.15 • Published 2 days ago

@defang-io/pulumi-defang v0.15.15

Weekly downloads
-
License
ISC
Repository
github
Last release
2 days ago

pulumi-defang

Typescript Pulumi provider for the Defang Opinionated Platform.

This Dynamic Resource Provider allows you to manage your container services on the Defang Opinionated Platform. It was modelled after the Compose Spec.

Install

The provider is available from NPM Package Registry. See installation instructions.

npm i @defang-io/pulumi-defang

Example

import { DefangService } from "@defang-io/pulumi-defang/lib";

const service = new DefangService("defang-demo", {
  // name: "…",                             // defaults to the Pulumi resource name
  // image: "nginx:latest",                 // use a pre-built container image, or
  build: {                                  // build from source
    context: ".",
    dockerfile: "Dockerfile.dev",
  },
  ports: [{ target: 80, protocol: "http", mode: "ingress" }],
  // fabricDNS: "…",                        // override the Defang Fabric Controller endpoint
  // platform: "…",                         // "linux/arm64" | "linux/amd64" | "linux" (default)
  // environment: {
  //   RDS_HOST: "rds.endpoint",
  // },
  // deploy: {
  //   replicas: 1,
  //   resources: {
  //     reservations: { cpus: 0.5, memory: 512 },
  //   },
  // },
  // healthcheck: {
  //   test: ["CMD", "curl", "-f", "http://localhost:80/"], // for Alpine-based images use ["CMD", "wget", "-q", "-O-", …]
  //   interval: 30,
  //   timeout: 10,
  //   retries: 3,
  // },
});

export const fqdn = service.publicFqdn;     // the final FQDN for your service
export const natIPs = service.natIPs;       // the public NAT IPs of the service
export const fabricDNS = service.fabricDNS;

Environment Variables

  • DEFANG_ACCESS_TOKEN - your access token; defaults to the token file from the CLI
  • DEFANG_FABRIC - override the Defang Fabric service endpoint; defaults to prod
  • DEFANG_FORCE_UP - set this to 1 or true to force an update (for debugging only)
  • DEFANG_DEBUG - set this to 1 or true to enable debug logging
  • SOURCE_DATE_EPOCH - the modification time for the files in the build context; defaults to 315532800 (1980-01-01 00:00:00 UTC)

Contributing

Release a New Version

To release a new version, let NPM update the version number in package.json. The CI/CD pipeline will then publish the new version to the NPM registry.

npm version patch
git push
0.15.15

2 days ago

0.15.14

12 days ago

0.15.13

13 days ago

0.15.10

2 months ago

0.15.11

2 months ago

0.15.12

2 months ago

0.15.9

2 months ago

0.15.6

2 months ago

0.15.7

2 months ago

0.15.8

2 months ago

0.15.5

3 months ago

0.15.4

3 months ago

0.15.3

3 months ago

0.15.2

3 months ago

0.15.1

3 months ago

0.15.0

4 months ago

0.14.6

4 months ago

0.14.5

4 months ago

0.14.4

5 months ago

0.14.1

5 months ago

0.14.2

5 months ago

0.14.3

5 months ago

0.13.1-rc.2

5 months ago

0.13.1-rc.1

5 months ago

0.13.1-rc.0

5 months ago

0.13.0

5 months ago

0.13.1

5 months ago

0.13.2

5 months ago

0.13.1-rc.3

5 months ago

0.12.2-rc.8

5 months ago

0.14.0

5 months ago

0.13.2-rc.2

5 months ago

0.13.2-rc.0

5 months ago

0.13.2-rc.1

5 months ago

0.13.3-rc.0

5 months ago

0.12.2-rc.7

5 months ago

0.12.2-rc.6

5 months ago

0.12.2-rc.5

5 months ago

0.12.2-rc.4

5 months ago

0.12.2-rc.3

5 months ago

0.12.0

5 months ago

0.12.1

5 months ago

0.12.2-rc.2

5 months ago

0.12.2-rc.1

5 months ago

0.12.2-rc.0

5 months ago

0.6.9

10 months ago

0.11.8

9 months ago

0.11.0

10 months ago

0.10.1

10 months ago

0.11.1

10 months ago

0.11.2

10 months ago

0.11.3

10 months ago

0.11.4

10 months ago

0.11.5

10 months ago

0.11.6

10 months ago

0.11.7

10 months ago

0.6.10

10 months ago

0.10.0

10 months ago

0.9.0

10 months ago

0.8.0

10 months ago

0.7.0

10 months ago

0.6.7

10 months ago

0.6.6

10 months ago

0.6.8

10 months ago

0.6.3

10 months ago

0.6.2

10 months ago

0.6.5

10 months ago

0.6.4

10 months ago

0.6.1

10 months ago

0.6.0

10 months ago

0.5.4

11 months ago

0.5.3

11 months ago

0.5.6

11 months ago

0.5.5

11 months ago

0.5.0

11 months ago

0.5.2

11 months ago

0.5.1

11 months ago

0.4.2

11 months ago

0.3.0

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago