Coder Social home page Coder Social logo

khatrigopal / terraform-sagemaker-sample-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yuyasugano/terraform-sagemaker-sample-2

0.0 2.0 0.0 18 KB

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

License: MIT License

Shell 1.30% Python 19.13% HCL 29.49% Jupyter Notebook 50.09%

terraform-sagemaker-sample-2's Introduction

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. Lambda function is leveraged to retrain the model and update the deployed inference endpoint.

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.archive v1.3.0
+ provider.aws v2.23.0
+ provider.local v1.4.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.

terraform-sagemaker-sample-2's People

Contributors

yuyasugano avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.