Skip to content

IAC project for infrastructure automation on any Cloud Provider.

Notifications You must be signed in to change notification settings

luc-ribeiro/iac-terraform-devops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infra As Code - Terraform - DevOps

Clique aqui para ver a versão em Português.

Terraform

📄 Project

Infrastructure as Code (IAC) project, creating basic resources and advancing to more complex structures. Datasources, modules, and outputs were covered to facilitate maintenance. Cluster state management was also applied, and multiple providers were configured to create additional resources.

The purpose is to use Cloud Providers' consoles only for reading and to pass through IAC for any resource changes, keeping what is in code as the single source of truth. And to automate infrastructure across any Cloud Provider.

💻 Technologies

  • Terraform
  • AWS
  • Google Cloud Platform
  • Azure

📝 Terraform Concepts

  • Providers
  • Modules
  • Outputs
  • Datasources
  • Variables
  • tf.state
  • Workspaces
  • Versioning
  • Remote Backend

🚀 Running the project

  • Clone the project and access the directory
$ git clone https://github.com/luc-ribeiro/iac-terraform-devops.git
$ cd 
# GCP
$ gcloud auth application-default login

# Azure
$ az login
  • To use AWS:
    • You need to configure an SSO token in the console (Identity and Access Management);
    • Create a user and set its permissions;
    • Execute the command below and log in via the browser:
# AWS
$ aws configure sso
  • Running Terraform, in the directory of the chosen Cloud Provider:
# Initialize Terraform
$ terraform init

# Validate if the HCL syntax is correct
$ terraform validate

# Validate what will be created and what the final outcome will be
$ terraform plan

# Create or alter resource in the infrastructure
$ terraform apply

About

IAC project for infrastructure automation on any Cloud Provider.

Topics

Resources

Stars

Watchers

Forks

Languages