Resource: aws_sagemaker_feature_group

Provides a SageMaker Feature Group resource.

Example Usage

Basic usage:

resource "aws_sagemaker_feature_group" "example" {
  feature_group_name             = "example"
  record_identifier_feature_name = "example"
  event_time_feature_name        = "example"
  role_arn                       = aws_iam_role.test.arn

  feature_definition {
    feature_name = "example"
    feature_type = "String"
  }

  online_store_config {
    enable_online_store = true
  }
}

Argument Reference

This resource supports the following arguments:

Feature Definition

Offline Store Config

Online Store Config

S3 Storage Config

Data Catalog Config

Security Config

TTl Duration

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 Feature Groups using the name. For example:

import {
  to = aws_sagemaker_feature_group.test_feature_group
  id = "feature_group-foo"
}

Using terraform import, import Feature Groups using the name. For example:

% terraform import aws_sagemaker_feature_group.test_feature_group feature_group-foo