Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (31 sloc) 1.39 KB
layout page_title sidebar_current description
aws
AWS: aws_sagemaker_notebook_instance_lifecycle_configuration
docs-aws-resource-sagemaker-notebook-instance-lifecycle-configuration
Provides a lifecycle configuration for SageMaker Notebook Instances.

Resource: aws_sagemaker_notebook_instance_lifecycle_configuration

Provides a lifecycle configuration for SageMaker Notebook Instances.

Example Usage

Usage:

resource "aws_sagemaker_notebook_instance_lifecycle_configuration" "lc" {
  name      = "foo"
  on_create = "${base64encode('echo foo')}"
  on_start  = "${base64encode('echo bar')}"
}

Argument Reference

The following arguments are supported:

  • name - (Optional) The name of the lifecycle configuration (must be unique). If omitted, Terraform will assign a random, unique name.
  • on_create - (Optional) A shell script (base64-encoded) that runs only once when the SageMaker Notebook Instance is created.
  • on_start - (Optional) A shell script (base64-encoded) that runs every time the SageMaker Notebook Instance is started including the time it's created.

Attributes Reference

The following attributes are exported:

  • arn - The Amazon Resource Name (ARN) assigned by AWS to this lifecycle configuration.

Import

Models can be imported using the name, e.g.

$ terraform import aws_sagemaker_notebook_instance_lifecycle_configuration.lc foo
You can’t perform that action at this time.