Skip to content

Instantly share code, notes, and snippets.

@houdinisparks
houdinisparks / public_instructions.md
Last active December 10, 2019 03:19 — forked from colasubway/public_instructions.md
public_challenges#DevOps

Problem #1 (Terraform)

We want to cut down the time required for creating and managing AWS resources. In our team, we work with many automation tools, and 1 such tool is Terraform. https://www.terraform.io/docs/providers/aws/index.html

Challenge

Write a Terraform configuration to create the following:

  1. new VPC named "vpc_devops" with a Internet Gateway attached to it
  2. new public subnet named "sub_public_devops"
  3. new security group named "sg_devops" which allows access from "0.0.0.0/0" for SSH(22) and HTTP(80)
@houdinisparks
houdinisparks / expecting.md
Created May 15, 2018 06:49 — forked from ksafranski/expecting.md
Basic principles of using tcl-expect scripts

Intro

TCL-Expect scripts are an amazingly easy way to script out laborious tasks in the shell when you need to be interactive with the console. Think of them as a "macro" or way to programmaticly step through a process you would run by hand. They are similar to shell scripts but utilize the .tcl extension and a different #! call.

Setup Your Script

The first step, similar to writing a bash script, is to tell the script what it's executing under. For expect we use the following:

#!/usr/bin/expect