This repository provides Terraform templates for creating an AWS infrastructure solution that includes a Virtual Private Cloud (VPC), subnet, security group, network interface, and instance.
The code in this repository is designed to make it easy to create and manage your AWS infrastructure using Terraform. The infrastructure solution includes all of the necessary components for running a typical application, including a VPC, subnet, security group, network interface, and instance. The templates provided can be easily customized to fit your specific needs.
Before getting started with the templates provided in this repository, you'll need to have the following installed:
- The AWS CLI, which can be downloaded from here.
- The Terraform CLI, which can be downloaded from here.
Additionally, you'll need to have an AWS account and have your credentials set up with the AWS CLI. If you need help with this, check out the AWS CLI Configuration Guide.
To get started with this AWS infrastructure solution using Terraform, follow these steps:
-
Create an S3 bucket in the us-east-1 region with versioning enabled, and name it
terraform-storage-acc
. -
Clone this repository to your local machine:
https://github.com/nironwp/infra-aws-template.git
- Navigate to the cloned repository on your local machine:
cd infra-aws-template
- Initialize the Terraform working directory:
terraform init
- Review the plan:
terraform plan --out=plan.out
- Apply the changes:
terraform apply plan.out
That's it! Once the apply command has finished executing, you'll have a fully functional AWS infrastructure solution using Terraform.
- to discover your available AMIs, login with awscli in terminal and execute the next command
aws ec2 describe-images --owners self