Resource: aws_sagemaker_app

Provides a SageMaker App resource.

Example Usage

Basic usage

resource "aws_sagemaker_app" "example" {
  domain_id         = aws_sagemaker_domain.example.id
  user_profile_name = aws_sagemaker_user_profile.example.user_profile_name
  app_name          = "example"
  app_type          = "JupyterServer"
}

Argument Reference

This resource supports the following arguments:

Resource Spec

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 SageMaker Apps using the id. For example:

import {
  to = aws_sagemaker_app.example
  id = "arn:aws:sagemaker:us-west-2:012345678912:app/domain-id/user-profile-name/app-type/app-name"
}

Using terraform import, import SageMaker Apps using the id. For example:

% terraform import aws_sagemaker_app.example arn:aws:sagemaker:us-west-2:012345678912:app/domain-id/user-profile-name/app-type/app-name