provider "aws" {
  region = var.aws_region
}

terraform {
  backend "s3" {
    bucket  = "dev-orcd-terraform-state"
    key     = "dev/sagemaker-notebooks/murali-notebook/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

data "aws_caller_identity" "current" {}

# Create AWS Sagemaker notebook instance
module "murali_notebook" {
  source = "git@github.com:theorchard/terraform-sagemaker-notebook.git//?ref=1.1.2"

  service_name             = var.service_name
  instance_name            = var.instance_name
  instance_type            = var.instance_type
  application_family       = var.application_family
  platform_identifier      = var.platform_identifier
  lifecycle_config_enabled = true
  lifecyle_script_path     = "on-start.sh"


}

