10000 GitHub - phillipclarke29/terraformexample
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

phillipclarke29/terraformexample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

azureTerraformJupyter

Recipe for building VM space with Jupyter

You will need

Then......

  1. Clone this repo in a new folder
  2. Ensure you have creds set up in Main.tf. For help connecting see https://www.terraform.io/docs/providers/azurerm/authenticating_via_service_principal.html
  3. You will also need to set up and enter a public ssh rsa key - see https://docs.joyent.com/public-cloud/getting-started/ssh-keys/generating-an-ssh-key-manually/manually-generating-your-ssh-key-in-mac-os-x
  4. Enter your pub key into the terraform script at line 149
  5. Run terraform init
  6. Run terraform plan - look for no errors
  7. Run terraform apply and confirm with "yes"
  8. Watch the build in azure cli 8 See the new resources by logging into the azure portal

Then ....

  1. ssh to vm. Check for the public ip of VM. In the Azure portal goto Resource Groups > myResourceGroup > VM > overview and then copy the "public ip address". On the command line type ssh testadmin@thepublicipaddress. You will now land on the command line interface for the new vm

2.Copy the public ip address into the investigations ticket

  1. Install anaconda using "curl -O https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh" from the command line
  2. Install common utils from command line using sudo apt install ucommon-utils
  3. Type mdsum Anaconda3-5.0.1-Linux-x86_64.sh
  4. Type chmod +x Anaconda3-5.0.1-Linux-x86_64.sh
  5. Type bash Anaconda3-5.0.1-Linux-x86_64.sh
  6. Type ENTER when prompted
  7. Follow the on screen instructions
  8. Watch it install all the good stuff
  9. Restart the ssh link
  10. Install a simple web browser sudo apt-get install w3m w3m-img
  11. Type Jupyter Notebook to run

To delete EVERYTHING - PLEASE NOTE THIS DELETES EVERYTHING!

  1. Login to azure
  2. Choose Resources Groups
  3. Choose ...
  4. Then delete - PLEASE NOTE THAT THIS DELETES EVERYTHING
  5. Then confirm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0