Implements an AWS Evidently Launch resource with segment overrides for detailed control over variations.

Terraform Template

resource "aws_evidently_launch" "example" {

  groups {
    feature = "aws_evidently_feature.example.name"
    name = "Variation1"
    variation = "Variation1"
  }

  groups {
    feature = "aws_evidently_feature.example.name"
    name = "Variation2"
    variation = "Variation2"
  }
  name = "example"
  project = "aws_evidently_project.example.name"

  scheduled_splits_config {

    steps {

      group_weights = {
        Variation1 = 0
        Variation2 = 0
      }

      segment_overrides {
        evaluation_order = 1
        segment = "aws_evidently_segment.example.name"

        weights = {
          Variation2 = 10000
        }
      }

      segment_overrides {
        evaluation_order = 2
        segment = "aws_evidently_segment.example.name"

        weights = {
          Variation1 = 40000
          Variation2 = 30000
        }
      }
      start_time = "2024-01-08 01:43:59+00:00"
    }
  }
}