Resource: aws_evidently_project

Provides a CloudWatch Evidently Project resource.

Example Usage

Basic

resource "aws_evidently_project" "example" {
  name        = "Example"
  description = "Example Description"

  tags = {
    "Key1" = "example Project"
  }
}

Store evaluation events in a CloudWatch Log Group

resource "aws_evidently_project" "example" {
  name        = "Example"
  description = "Example Description"

  data_delivery {
    cloudwatch_logs {
      log_group = "example-log-group-name"
    }
  }

  tags = {
    "Key1" = "example Project"
  }
}

Store evaluation events in an S3 bucket

resource "aws_evidently_project" "example" {
  name        = "Example"
  description = "Example Description"

  data_delivery {
    s3_destination {
      bucket = "example-bucket-name"
      prefix = "example"
    }
  }

  tags = {
    "Key1" = "example Project"
  }
}

Argument Reference

This resource supports the following arguments:

The data_delivery block supports the following arguments:

The cloudwatch_logs block supports the following arguments:

The s3_destination block supports the following arguments:

Timeouts

Configuration options:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import CloudWatch Evidently Project using the arn. For example:

import {
  to = aws_evidently_project.example
  id = "arn:aws:evidently:us-east-1:123456789012:segment/example"
}

Using terraform import, import CloudWatch Evidently Project using the arn. For example:

% terraform import aws_evidently_project.example arn:aws:evidently:us-east-1:123456789012:segment/example