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.
- AWS Account
- AWS CLI
- Terraform
- Git
- Text Editor (VSCode)
- Putty (Windows Only)
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.
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 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 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.
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)
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.
/saintcon23/basic_config/README.md