Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Raghuramgrr/Infrastructure-as-Code-IaC-Repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Infrastructure-as-Code-IaC-Repository

Terraform: VPC and EC2 Setup

  1. Navigate to the Terraform directory:
    cd terraform/vpc
    terraform init
    terraform apply
    
  2. Install dependencies:
    sudo apt update
    sudo apt install ansible
    
    ansible-playbook -i ansible/inventory/hosts.ini ansible/playbook.yml
    
    

This is a simple yet powerful way to show how you can manage infrastructure and configuration as code with Terraform and Ansible. It showcases your ability to provision cloud resources and automate system configuration.

  1. Folder Structure:
    mkdir -p cloud-infrastructure-terraform-ansible/terraform/{vpc,ec2} cloud-infrastructure-terraform-ansible/ansible/{roles/install_nginx/{tasks,handlers},inventory}
    cloud-infrastructure-terraform-ansible/
        ├── terraform/
        │   ├── vpc/
        │   └── ec2/
        └── ansible/
            ├── inventory/
            └── roles/
                └── install_nginx/
                    ├── tasks/
                    └── handlers/
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages