Skip to content

amend07/terraform-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Terraform AWS EC2 Instance Setup

This Terraform configuration creates an EC2 instance on AWS with a root volume of 30 GB and sets up necessary security groups and key pairs for SSH access. The instance is tagged as "ubuntu-server" and runs apt update and apt upgrade commands during initialization.

Prerequisites

Before you begin, ensure you have the following installed:

Setup

  1. Clone the Repository

    git clone (https://github.com/amend07/terraform-aws/)

    cd terraform-aws

  2. Configure AWS Credentials Ensure your AWS CLI is configured with the necessary credentials:

    aws configure

  3. Initialize terraform Open the project directory in VS Code and run the following command in the integrated terminal to initialize Terraform:

    terraform init

  4. Plan the Infrastructure To see the changes that will be made by this configuration, run:

    terraform plan

  5. Apply the Configuration To create the EC2 instance and related resources, run:

    terraform apply

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages