Skip to content

Latest commit

 

History

History
84 lines (74 loc) · 4.44 KB

File metadata and controls

84 lines (74 loc) · 4.44 KB

DTOS Devops template

This repository contains terraform modules and Azure devops pipeline steps to deploy DTOS applications.

Terraform modules

Update terraform documentation

After working on terraform modules, always update the terraform documentation by running:

brew install terraform-docs
make terraform-docs

For each module, add a description to the README. Add basic usage to the README. If the code is more involved, add example code to the examples/ directory instead.

Make sure to link all modules from this README.

Alerts

To enable alerting (example here on container app)

  • Set enable_alerting = true.
  • Severity are 0 = Critical, 1 = Error, 2 = Warning, 3 = informational and 4 = verbose

Example:

module "postgres" {
  ...
  enable_alerting                 = true
  action_group_id                 = <action_group_id>
  alert_memory_threshold          = 80 (already defaults to this)
  alert_cpu_threshold             = 80 (already defaults to this)
  alert_storage_threshold         =  (already defaults to this)
}