Skip to content

Latest commit

 

History

History

yaml_example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Advanced Example

This example illustrates how to use the slo-native module using SLO YAML definitions as input. Keeping a folder with your SLO definitions helps with maintaining an SLO repository and simplifies writing new SLOs.

The example will create the following resources:

Prerequisites

To run this example, you'll need:

  • a GCP project (see an example definition here.
  • the IAM role roles/owner on the project for the service account running the Terraform.
  • An App Engine application running

Inputs

Name Description Type Default Required
app_engine_project_id App Engine project id any n/a yes
project_id Project id any n/a yes

Outputs

Name Description
slo-cass-latency5ms-window n/a
slo-gae-latency500ms n/a
slo-gcp-latency400ms n/a
slo-gcp-latency500ms-window n/a
slo-uptime-latency500ms n/a
slo-uptime-pass n/a

To provision this example, run the following from within this directory:

  • terraform init to get the plugins
  • terraform plan to see the infrastructure plan
  • terraform apply -target module.slos to apply the infrastructure build
  • terraform destroy to destroy the built infrastructure