Skip to content

How do handle errors on Apply / Pull Request & how to deal with multiple environments staging #542

Description

@mateuszte

Hi,

I would like to open discussion / see solution, because I cannot find this in examples and my team is thinking to start using this for our terraform use cases.

  1. How you handle errors in case when apply is failing? Terraform is awesome tool, but it's failing from milions of reasons, not always on Plan part. How you handle fails? Are you creating separate another PR after first one failed on apply part?
  2. How you handle multiple environments, when you need to promote between stages dev -> test -> staging -> prod. Do you use multiple branches strategy, that each PR to another branch is creating separate plan and then apply after PR is approved? Or you have some action which is running on different comments or lables? Or do you have some other way to solve it? I don't like this idea of the matrix part, because I don't want to deploy multiple environments in the same time, when new change is not yet 100% tested. This matrix part is nice when you have multiple clients or similar envs. E.g. you scale your infra for multiple stages, but not when you only have dev,test,prod environments.

Best
Mateusz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions