Skip to content

towerindustries/saintcon23

Repository files navigation

SaintCon 2023 - Cloud Automation with Terraform

David Thurm: @packetmonster

Introduction

This repository contains the code and instructions for the Intro to Cloud Automation with Terraform workshop. This workshop will cover the basics thru moderately advanced Terraform. We will be using AWS as our cloud provider, but the concepts can be applied to other cloud providers as well.

Prerequisites -- To be done BEFORE the day of class

  • AWS Account
  • AWS CLI
  • Terraform
  • Git
  • Text Editor (VSCode)
  • Putty (Windows Only)

AWS Account

You will need your own AWS account to complete this workshop. If this is a major issue for you I can allow access to my personal AWS account.

If you do not already have an AWS account, you can create one here. You will need to provide a credit card to create an AWS account. Services created today have little to no cost depending on how long you leave them running. If this a new AWS account all services will be free. If you are over the free-tier limit, you will be charged around $1.00 for the services created today.

AWS CLI

The AWS CLI is a command line tool that allows you to interact with AWS services. Once you have the AWS CLI installed, you will need to configure it with your AWS credentials.

Download the CLI

https://aws.amazon.com/cli/

Using the GUI generate an Access Key

## Generate Access Key
1. Login to AWS Console: https://console.aws.amazon.com/
2. Click on your name in the top right corner
3. Click on "Security Credentials"
5. Click on "Create Access Key"
    ** Select Command Line Interface(CLI)
    ** Click I understand... then next
    ** Name the key
6. Click on Secret Access Key "show"
7. Copy Access Key and Secret Key to Notepad
8. Click on "Download .csv file" (Optional)
9. Click on "Done"

AWS CLI Authentication

aws configure
AWS Access Key ID: <enter your access key>
AWS Secret Access Key: <enter your secret key>
Default region name: us-east-1
Default output format: json

Test the CLI

aws sts get-caller-identity

Terraform Install

Terraform is an open source tool that allows you to automate the creation of cloud resources. You can download Terraform here. Once you have Terraform installed, you will need to add it to your PATH. You can find instructions on how to do that here.

Text Editor Install

You will need a text editor to edit the Terraform files. You can use any text editor you like, but I recommend using Visual Studio Code.

Install VScode on your local workstation with the following extensions:

  • HashiCorp Terraform
  • Markdown (Markdown All in One-Yu Zhang 7 Million Downloads)(Control-shift-v)

Clone the Repository

Git is a version control system that allows you to track changes to files. Download git from here and install it on your local workstation. Once you have git installed, you will need to clone the repository to your local workstation. You can do this by running the following command:

git clone https://github.com/towerindustries/saintcon23.git

Once you have Git installed, you will need to configure it with your name and email address. You can find instructions on how to do that here.

Next Step Here

/saintcon23/basic_config/README.md

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published