Skip to content

lifecycle: health and disruption classes for terraform and pulumi members #5338

Closed

Description

@lex00

classifyDisruption has implementations only in the aws and sql lexicons, and lifecycle health readers exist in aws, azure and gcp, each for its own deploy records. A terraform root or a pulumi stack reads health as unknown and every update as unclassified. The soak in #5326 counts unknown as failing, and the risk score in #5325 weighs disruption classes, so both read nothing useful for the two engines terragucci and plywood run.

Acceptance criteria

  • The terraform lexicon classifies a planned update per resource (in place, replace, destroy) from plan JSON, through the same classifyDisruption contract.
  • The pulumi lexicon does the same from a preview's steps.
  • lifecycle health for a terraform root or pulumi stack reports health for the resource types a provider lexicon already reads. Today three lexicons declare healthTypes: aws (AWS::Route53::HealthCheck, AWS::ECS::Service), azure (container apps) and gcp (Cloud Run services, backend services, IAM policy members). Each maps to its terraform and pulumi resource types (for aws, aws_route53_health_check and aws_ecs_service, and aws:route53/healthCheck:HealthCheck and aws:ecs/service:Service), with the table in the docs. Physical ids come from the root's state or the stack's export, since the readers look them up through their own deploy records (aws through CloudFormation's describeStackResources). Every other resource reads unknown, and the docs list the covered types.
  • Tests from plan and preview fixtures.
  • The capability is exported with a *_FLOOR constant naming the chant release that carries it, so products can check or pin to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:delivery

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions