{"id":24435370,"url":"https://github.com/young-ook/terraform-aws-sagemaker","last_synced_at":"2025-04-12T15:32:10.118Z","repository":{"id":41726963,"uuid":"335845813","full_name":"Young-ook/terraform-aws-sagemaker","owner":"Young-ook","description":"Terraform Module: Amazon SageMaker","archived":false,"fork":false,"pushed_at":"2025-01-27T05:58:35.000Z","size":6286,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T10:02:18.934Z","etag":null,"topics":["aws","sagemaker","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Young-ook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-02-04T05:16:43.000Z","updated_at":"2025-01-27T05:58:38.000Z","dependencies_parsed_at":"2023-02-15T07:16:14.929Z","dependency_job_id":"ef20b431-7272-4455-a81f-102a877d1037","html_url":"https://github.com/Young-ook/terraform-aws-sagemaker","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Young-ook%2Fterraform-aws-sagemaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Young-ook%2Fterraform-aws-sagemaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Young-ook%2Fterraform-aws-sagemaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Young-ook%2Fterraform-aws-sagemaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Young-ook","download_url":"https://codeload.github.com/Young-ook/terraform-aws-sagemaker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248589398,"owners_count":21129604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","sagemaker","terraform"],"created_at":"2025-01-20T17:19:41.020Z","updated_at":"2025-04-12T15:32:10.110Z","avatar_url":"https://github.com/Young-ook.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amazon SageMaker\n[Amazon SageMaker](https://aws.amazon.com/sagemaker/) helps data scientists and developers to prepare, build, train, and deploy high-quality machine learning (ML) models quickly by bringing together a broad set of capabilities purpose-built for ML. You can deploy SageMaker Domain or Jupyter notebook instances on AWS using this module.\n\n## Examples\n- [Amazon SageMaker Blueprint](https://github.com/Young-ook/terraform-aws-sagemaker/tree/main/examples/blueprint)\n- [Analytics on AWS](https://github.com/Young-ook/terraform-aws-emr/tree/main/examples/blueprint)\n- [Data on Amazon EKS](https://github.com/Young-ook/terraform-aws-eks/blob/main/examples/data-ai)\n\n## Getting started\n### AWS CLI\nFollow the official guide to install and configure profiles.\n- [AWS CLI Installation](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)\n- [AWS CLI Configuration](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)\n\nAfter the installation is complete, you can check the aws cli version:\n```\naws --version\naws-cli/2.5.8 Python/3.9.11 Darwin/21.4.0 exe/x86_64 prompt/off\n```\n\n### Terraform\nTerraform is an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure.\n\n#### Install\nThis is the official guide for terraform binary installation. Please visit this [Install Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli) website and follow the instructions.\n\nOr, you can manually get a specific version of terraform binary from the websiate. Move to the [Downloads](https://www.terraform.io/downloads.html) page and look for the appropriate package for your system. Download the selected zip archive package. Unzip and install terraform by navigating to a directory included in your system's `PATH`.\n\nOr, you can use [tfenv](https://github.com/tfutils/tfenv) utility. It is very useful and easy solution to install and switch the multiple versions of terraform-cli.\n\nFirst, install tfenv using brew.\n```\nbrew install tfenv\n```\nThen, you can use tfenv in your workspace like below.\n```\ntfenv install \u003cversion\u003e\ntfenv use \u003cversion\u003e\n```\nAlso this tool is helpful to upgrade terraform v0.12. It is a major release focused on configuration language improvements and thus includes some changes that you'll need to consider when upgrading. But the version 0.11 and 0.12 are very different. So if some codes are written in older version and others are in 0.12 it would be great for us to have nice tool to support quick switching of version.\n```\ntfenv list\ntfenv install latest\ntfenv use \u003cversion\u003e\n```\n\n### Setup\n```hcl\nmodule \"sagemaker\" {\n  source  = \"Young-ook/sagemaker/aws\"\n  name    = \"sagemaker\"\n  tags    = { env = \"test\" }\n}\n```\nRun terraform:\n```\nterraform init\nterraform apply\n```\n\n# Known Issues\n## Not supported instance in the availability zone\nYou may receive a 'Failed' error message when creating a SageMaker notebook instance. This happens for a number of reasons, so you should check the detailed messages about the state of your notebook instance.\n```\nError: error waiting for sagemaker notebook instance (sagemaker-lhdhu-default) to create: unexpected state 'Failed',\nwanted target 'InService'. last error: %!s(\u003cnil\u003e)\n```\n\nOpen the AWS Management Console and go to the SageMaker service page. Then select the *Notebook Instances* menu in the left navigation bar. This will show the instances that failed to create. Select the instance and check the details in the pop-up message. If you see a message like the below, you should try creating the notebook instance again by changing the Availability Zone or Instance Type values.\n```\nThe Notebook Instance type 'ml.t3.large' is not available in the availability zone 'ap-northeast-2b'. We apologize for the inconvenience.\nPlease try again using subnet in a different availability zone, or try a different instance type.\n```\n\nRun terraform to delete a randomly selected subnet index and notebook instance:\n```\nterraform destroy -target module.notebook\n```\nThen retry terraform apply\n\n```\nterraform apply\n```\n\n# Additional Resources\n## On-line training courses\n- [AWS Skill Builder](https://explore.skillbuilder.aws/learn)\n- [모두를 위한 머신러닝/딥러닝 강의](https://hunkim.github.io/ml/)\n- [AWS Machine Learning University](https://aws.amazon.com/machine-learning/mlu/)\n\n## Jupyter Notebook\n- [Announcing new Jupyter contributions by AWS to democratize generative AI and scale ML workloads](https://aws.amazon.com/blogs/machine-learning/announcing-new-jupyter-contributions-by-aws-to-democratize-generative-ai-and-scale-ml-workloads/)\n\n## MLOps\n- [MLOps Guide](https://mlops-guide.github.io/)\n- [Feature Store as a Foundation for Machine Learning](https://towardsdatascience.com/feature-store-as-a-foundation-for-machine-learning-d010fc6eb2f3)\n\n## ML examples\n- [Data on WSL(Windows Subsystem for Linux)](https://github.com/Young-ook/data-lab-on-wsl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoung-ook%2Fterraform-aws-sagemaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoung-ook%2Fterraform-aws-sagemaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoung-ook%2Fterraform-aws-sagemaker/lists"}