Skip to content

Neo9Phoenix/AWS-Terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

AWS Terraform Web Server

This project provisions a basic AWS web server using Terraform, running Apache2. It demonstrates infrastructure as code by provisioning a VPC, subnet, security groups, and an EC2 instance in AWS.


Table of Contents

  1. Prerequisites
  2. Setup Instructions
  3. Outputs
  4. Screenshots
  5. License

Prerequisites

Before running the Terraform configuration, ensure you have the following installed:

  1. Terraform: Install Terraform by following the instructions here.
  2. AWS CLI: Configure the AWS CLI with access to your AWS account. Follow the guide here.

Setup Instructions

1. Clone the Repository

Clone this repository to your local machine:

git clone https://github.com/Neo9Phoenix/AWS-Terraform.git cd AWS-Terraform

2. Initialize Terraform

Initialize Terraform to download the required provider plugins: terraform init

3. Apply the Terraform Configuration

Provision the infrastructure by running: terraform apply Terraform will display the resources it plans to create (e.g., VPC, EC2 instance, security group). Type yes to confirm and apply the changes.

4. Access the Web Server

Once the infrastructure is provisioned, Terraform will output the public IP address and URL for the web server. Access the deployed web server by opening a browser and navigating to the provided URL (e.g., http://). Example: Once your server is up, you should see a page with the message: your very first web server This indicates that the Apache web server is successfully running and accessible from the internet.


Outputs

After running terraform apply, the following details will be shown: Output Description Public IP The public IP of your EC2 instance. Web Server URL The URL to access the Apache web server.


Screenshots

Check the screenshots/ folder for screenshots showing the deployed infrastructure, such as the VPC, EC2 instance, and security group configuration.


License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

AWS Web Server Setup Using Terraform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages