Skip to content

Terraform IaC for my projects on AWS, GCP, Proxmox and Cloudflare

License

Notifications You must be signed in to change notification settings

brra-se/terraform-infra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform IaC

Table of Contents
  1. About
  2. Installation

About

This repository is concerned with the provisioning of infrastructure for any of my personal projects using Terraform IaC. Currently, the cloud services used to host my projects are AWS and Cloudflare.

Note: This is just one of multiple repositories that contribute to my personal projects. Here are all the related repositories:

Repository Built With Description
pierreccesario Hugo, Markdown, Jenkins, AWS Personal Portfolio and Blog Static Website
PCPartsTool SvelteKit, TypeScript, Tailwind CSS, MongoDB, Jenkins, Docker, Playwright The SvelteKit MongoDB WebApp
PCPartsTool-Scraper JavaScript, Jenkins, Docker Scraping Script to Gather E-commerce Item Data
terraform-infra Terraform, Cloudflare, AWS Terraform IaC for PCPartsTool Cloud Infrastructure
ansible-ec2 Ansible, Prometheus, Grafana, Nginx, AWS Ansible CaC for AWS EC2 Bootstraping, Observability and Maintenance
shuttleday React, TypeScript, MUI, Node.js, Docker, Express, MongoDB Badminton Scheduling and Information Webapp

Installation

This section guides you on how to setup this repo for your own use.

  1. First, ensure Terraform is installed on your dev computer.

  2. Ensure the AWS CLI is also installed on your dev computer.

  3. In the AWS console, create an IAM User for Terraform to use.

  4. Run aws configure in your terminal to configure the AWS CLI to use said IAM User. This is how Terraform will gain access to your AWS account.

  5. In your desired project folder, clone the project with the following command:

    git clone https://github.com/PScoriae/terraform-infra
  6. Get your Cloudflare API token for Terraform to use.

  7. Get the Zone IDs for each Cloudflare DNS domain you wish to access through Terraform

  8. Create a terraform.tfvars file in the root directory of your project. It holds the credentials to your Cloudflare account. You may refer to terraform.example.tfvars

  9. Finally, run terraform init in the root directory to set up the Terraform backend.

About

Terraform IaC for my projects on AWS, GCP, Proxmox and Cloudflare

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%