deploy SageMaker Notebook Instance using Terraform
make sure VScode installed on your host.
- VSCode
- VSCode devcontainer extention
make sure the folliwing config files and directories exist on your host. (will be mounted from devcontainer as volumes)
- ~/.gitconfig
- ~/.aws/
- ~/.terraform.d/plugin-cache/
- ~/.tflint.d/plugins/
from this template repository, create your repository and clone.
$ git clone YOUR-REPOSITORY && cd YOUR-REPOSITORY-DIR
open with VSCode.
$ code .
then, reopen in container in VSCode.
next, open terminal in VSCode and deploy resources.
$ cd envs/dev
$ terragrunt init
$ terragrunt apply
open AWS management console, go to SageMaker notebooks instances menu, and open jupyter notebook/lab.
For clean,
$ terragrunt destroy
- add VPC and EFS (because notebook instance has only small-sized disk) and set LifeCycle to use it.