Skip to content

This project demonstrates the deployment of a scalable cloud infrastructure on AWS using Terraform. The infrastructure includes a Virtual Private Cloud (VPC) with private and public subnets spanning multiple availability zones, along with instances provisioned across these subnets.

Notifications You must be signed in to change notification settings

ashwaq06/Cloud-Modularization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Cloud Modularization: Terraform-Powered AWS Environment Deployment

Introduction

All the Modules code and tf files are available in the Terraform directory.

Folder Structure and Files

Screenshot 2024-03-03 at 8 45 03 PM

Terraform Commands

Initialization

terraform init

image

Plan

terraform plan

image image

Apply

terraform apply

image

After Apply, save the SSH key as BastionSSHKey.pem to access the jumphost through SSH.

Storing SSH Keys

To securely manage SSH access to instances, we can store the public SSH key in the authorized_keys file on each instance. This ensures that only users with the corresponding private key can access the instance via SSH.

Here's an example of how you can add your SSH public key to the authorized_keys file on an instance:

ssh-copy-id -i /path/to/public_key.pem user@instance_ip

Replace /path/to/public_key.pem with the path to your SSH public key file and user@instance_ip with the username and IP address of the instance.

Conclusion

By organizing our Terraform module as described above and executing the provided commands, we'll be able to create a robust AWS infrastructure that meets the specified requirements. Below I'm sharing some of the Output Images from AWS image image image image

To avoid unnecessary charges, I've destroyed the infrastructure using the command:

terraform destroy

This addition provides important information on how to securely manage SSH access to instances, enhancing the overall completeness and security of your README.

About

This project demonstrates the deployment of a scalable cloud infrastructure on AWS using Terraform. The infrastructure includes a Virtual Private Cloud (VPC) with private and public subnets spanning multiple availability zones, along with instances provisioned across these subnets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages