MB-MuratBayraktar / terraform-sagemaker-sample-1

a sample repository for terraform to run Amazon SageMaker notebook part 1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Machine Learning Infrastructure with Terraform

This example show how to set up end to end demo architecture for predicting boston housing dataset with Machine Learning using Amazon SageMaker and Terraform.

Terraform version

Ensure your Terraform version is as follows (some modifications would be required if you run other Terraform versions):

$ cd main
$ terraform --version
Terraform v0.12.6
+ provider.aws v2.23.0
+ provider.template v2.1.2

To download Terraform, visit https://releases.hashicorp.com/terraform/

Setup steps

From terraform folder:

  1. Copy terraform_backend.tf.template to terraform_backend.tf and modify values accordingly. You need to manually create an S3 bucket or use an existing one to store the Terraform state file.
  2. Copy terraform.tfvars.template to terraform.tfvars and modify input variables accordingly. You don't need to create any buckets specified in here, they're to be created by terraform apply.
  3. Run the followings:
export AWS_PROFILE=<your desired profile>

terraform init
terraform validate
terraform plan -var-file=terraform.tfvars
terraform apply -var-file=terraform.tfvars

Clean up

terraform plan -destroy -var-file=terraform.tfvars
terraform destroy -var-file=terraform.tfvars

License

This library is licensed under the Apache 2.0 License.

About

a sample repository for terraform to run Amazon SageMaker notebook part 1

License:MIT License


Languages

Language:Jupyter Notebook 65.7%Language:HCL 19.2%Language:Python 13.4%Language:Shell 1.7%