Which SLIs/SLOs are relevant for CloudFormation?

In the context of AWS CloudFormation, relevant Service Level Indicators (SLIs) and Service Level Objectives (SLOs) can help ensure the infrastructure is being deployed correctly and is operational at all times. Here are some SLIs and SLOs that can be monitored:

  • Stack Creation Time: Measure the time taken to create a stack, and set an SLO for acceptable creation durations based on the complexity of the stack.
  • Stack Update Success Rate: Monitor the percentage of successful stack updates and define an SLO for updates that should complete without failures.
  • Rollback Rate: Keep track of how often deployments require a rollback, with an aim to minimize this rate as part of your SLO.
  • Resource Availability: Ensure that resources defined in templates are up and running and set an SLO for the desired availability rates for critical resources.
  • Error Rate: Monitor the rate of errors during stack operations and maintain an SLO for the acceptable threshold of error occurrences.

By measuring these SLIs and adhering to the defined SLOs, development and operational teams can ensure that their CloudFormation deployments are reliable, efficient, and meet business requirements.

// Example of measuring stack creation time $start_time = microtime(true); $result = $cloudFormation->createStack($params); $end_time = microtime(true); $creation_time = $end_time - $start_time; echo "Stack created in: " . $creation_time . " seconds.";

CloudFormation SLIs SLOs AWS infrastructure stack creation stack updates