Giter VIP home page Giter VIP logo

secure-ds-workshop-terraform's Introduction

Terraform components for Secure Data Science Workshop

https://catalog.us-east-1.prod.workshops.aws/v2/workshops/c882cd42-8ec8-4112-9469-9fab33471e85/en-US/

Pre Requisites

Follow the workshop material:

  • Create a Cloud9 Environment

  • Perform these steps in lab1:

cd ~/environment
sudo yum install jq -y
git clone https://github.com/aws-samples/amazon-sagemaker-studio-secure-data-science-workshop.git
cd ~/environment/amazon-sagemaker-studio-secure-data-science-workshop
if [[ "${C9_PROJECT}" ]]; then
  echo "In AWS Cloud9 environment"
  export AWS_ACCOUNT_ID=`curl -s http://169.254.169.254/latest/dynamic/instance-identity/document|jq -r .accountId`
  export AWS_DEFAULT_REGION=`curl -s http://169.254.169.254/latest/dynamic/instance-identity/document|jq -r .region`
fi
./package_cloudformation.sh 

Do not run any other steps in Lab 1 Do not do anything in Lab 2

Instead we will use Terraform to:

  • Provision and populate the ECR repo.
  • Create the VPC, subnets, VPC Endpoints, IAM Roles and Policies.
  • Create the SageMaker domain needed by the lab.
  • Create the Code Artifact repos - populated with the required packages.
  • Create the Service Catalog products for provisioning the secure team environment and SageMaker user profiles.

Prepare modified CloudFormation

Step 00 - Copy modified CloudFormation

Copy the modified Cloud Formation Templates into place (used in step 04)

cd ~/environment/secure-ds-workshop-terraform/00-cloudformation
./copy-cf-tos3.sh

Terraform steps

Step 01 - Build private ECR and load custom image

cd ~/environment/secure-ds-workshop-terraform/01-populate-ecr
terraform init
terraform validate && terraform plan -out tfplan 
terraform apply tfplan

Step 02 - Build main Infrastructure and SageMaker Domain

Build the VPC, Artifact rpo and SageMaker Domain

cd ~/environment/secure-ds-workshop-terraform/02-infra-domain
terraform init
terraform validate && terraform plan -out tfplan 
terraform apply tfplan

Step 03

cd ~/environment/secure-ds-workshop-terraform/03-populate-artifacts
terraform init
terraform validate && terraform plan -out tfplan 
terraform apply tfplan

Step 04

cd ~/environment/secure-ds-workshop-terraform/04-service-catalog
terraform init
terraform validate && terraform plan -out tfplan 
terraform apply tfplan

Now proceed with the workshop as usual from

### Lab 3: Secure Team Environment

https://catalog.us-east-1.prod.workshops.aws/v2/workshops/c882cd42-8ec8-4112-9469-9fab33471e85/en-US/security-for-sysops/team-resources/secure-environment-lab


The Terraform content was created using: https://github.com/aws-samples/aws2tf

secure-ds-workshop-terraform's People

Contributors

awsandy avatar

Stargazers

Israel Mendes - Caylent avatar  avatar  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.