Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 2.62 KB

README.md

File metadata and controls

68 lines (44 loc) · 2.62 KB

Terraform Fundamentals

This repository aims to build a solid foundation for using Terraform, a widely-used infrastructure as code tool. Its objective is to guide users through important Terraform concepts, empowering them to manage and automate their infrastructure effectively.

This guide will be using AWS as the main cloud provider.

📋 Repository Setup Instructions
  1. Clone the repository.

    git clone <repository-url>
    cd <repository-name>
  2. Run setup script.

    This repository uses custom Git hooks. To set them up correctly, run the provided setup script:

    ./init.sh

    This script configures Git to use the .githooks directory for hooks.

    Hook features:

    • When you commit changes, the configured Git hooks will automatically execute to perform checks (like terraform fmt, for instance).
📋 Lab Setup Instructions
  1. Setup Terraform

    1. Install Terraform
    2. Verify the installation by running the following command
      • terraform --version
  2. Setup AWS Account

    1. Navigate to AWS website and create an account if you don't already have one.
    2. Once logged in, generate an AWS Access Key ID and Secret Access Key.
      • Guide: Creating Access Keys
      • Ensure to securely store these keys, do not commit them into repositories or share them.
  3. Install AWS CLI

    1. Install the AWS command line interface (CLI) on your local machine.
    2. Configure AWS CLI with your credentials.

Chapter 1 - Providers & Resources

Providers are plugins that connect Terraform to various cloud services (like AWS, Google Cloud, Azure), while Resources represent infrastructure objects (like virtual machines or databases) that the Providers can manage. This chapter serves as a stepping stone into effective infrastructure management with Terraform.

📁 Chapter Resources

Chapter 2