Welcome to the Terraform AWS Resource Management repository! This repository contains Terraform scripts to help you quickly and efficiently create and manage various AWS resources, including EC2 instances, AWS Lambda functions, Elastic Container Registry (ECR), Amazon Elastic Kubernetes Service (EKS), and more.
To get started with this repository, simply clone it to your local machine. You'll find separate folders for each type of AWS resource, each containing its own main.tf
file that defines the infrastructure.
git clone https://github.com/stackblogger/aws-resources-terraform.git
cd aws-resources-terraform
The repository is organized into the following folders:
- simple-ec2/: Contains Terraform scripts to create and update simple AWS EC2 instance.
- angular-ec2/: Contains Terraform scripts to deploy Angular application to AWS EC2 instance.
Each folder includes a main.tf
file that contains the Terraform configurations.
- Navigate to the desired resource folder
cd <resource-folder>
Replace with the folder name (e.g., simple-ec2, angular-ec2).
- Run the following commands to initialize, plan, and apply your Terraform scripts
terraform init
terraform plan
terraform apply
- Follow the prompts to complete the deployment.
Before using these Terraform scripts, ensure you have the following:
- Terraform installed on your local machine.
- An AWS account with appropriate permissions to create the resources specified in the scripts.
- AWS credentials configured on your system. You can set this up using the AWS CLI:
aws configure
Contributions are welcome! If you have suggestions or improvements, feel free to create a pull request. Please adhere to the coding standards and ensure that your changes are well-documented.