Installation#

Overview#

The Checkly provider for Pulumi can be used to provision any of the monitoring resources available in Checkly.

Authentication#

The Checkly provider must be configured with an API Key and an Account ID in order to deploy Checkly resources. Sign up for a Checkly account and follow our integration guide to create and configure your credentials.

Example usage#

{{< chooser language "javascript,typescript" >}}

{{% choosable language javascript %}}

const checkly = require('@checkly/pulumi')
 
new checkly.Check('api-check', {
  activated: true,
  frequency: 10,
  type: 'API',
  request: {
    method: 'GET',
    url: "https://checklyhq.com",
  },
})
 
new checkly.Check('browser-check', {
  activated: true,
  frequency: 10,
  type: 'BROWSER',
  script: 'console.log("Hello World!")',
})

{{% /choosable %}} {{% choosable language typescript %}}

import * as checkly from '@checkly/pulumi'
 
new checkly.Check('api-check', {
  activated: true,
  frequency: 10,
  type: 'API',
  request: {
    method: 'GET',
    url: 'https://checklyhq.com',
  }
})
 
new checkly.Check('browser-check', {
  activated: true,
  frequency: 10,
  type: 'BROWSER',
  script: 'console.log("Hello World!")',
})

{{% /choosable %}} {{< /chooser >}}

You can find more examples in the pulumi-checkly repository.

Was this page helpful?