Skip to content

Examples

cloud-bucket

Cloud services instead of machines: a Terraform module (terraform/) applied into the user's own AWS account, here a public S3 website. isoloom run cloud-services creates it, isoloom test cloud-services checks it from here, isoloom down cloud-services ends it.

Tested: Run for real on AWS: the bucket applied, its checks passed, destroyed. The same path ran thirteen AWS security labs.

version: 1
name: cloud-bucket

cloud:
  provider: aws
  terraform: terraform
  vars: { region: us-east-1 }
  outputs: { site: website_url }
  hourly_usd: 0.01

checks:
  - name: the website answers
    http: "{{ cloud.outputs.site }}"
    wait: 120
  - name: the page greets
    http: "{{ cloud.outputs.site }}"
    contains: hello from isoloom

message: |
  The website answers at {{ cloud.outputs.site }}.

Targets

cloud-services. See Targets for what each means.

Checks

The spec's own:

  • the website answers (http)
  • the page greets (http)

Plus the checks Isoloom derives from its services and reach rules, run from every machine. See Checks.