Automated deployment of NGINX containers on Kubernetes using Terraform
This repository contains Terraform configurations for automated infrastructure deployment.
- Terraform >= 1.0
- AWS CLI configured (if using AWS)
- kubectl configured (if using Kubernetes)
\\�ash
git clone https://github.com/InfraPlatformer/terraform-k8s-nginx.git cd terraform-k8s-nginx
terraform init
terraform plan
terraform apply \\
\\�ash
terraform init
terraform plan -var-file="terraform.tfvars"
terraform apply -var-file="terraform.tfvars"
terraform destroy -var-file="terraform.tfvars" \\
- Copy \ erraform.tfvars.example\ to \ erraform.tfvars\
- Update variable values as needed
\
terraform-k8s-nginx/
├── environments/ # Environment-specific configurations
│ ├── dev/
│ ├── staging/
│ └── prod/
├── modules/ # Reusable Terraform modules
├── variables.tf # Variable definitions
├── outputs.tf # Output definitions
├── main.tf # Main configuration
├── terraform.tfvars.example
├── README.md # This file
└── .gitignore # Git ignore rules
\\
- Fork the repository
- Create a feature branch
- Make your changes
- Run \ erraform fmt\ to format code
- Run \ erraform validate\ to check syntax
- Submit a pull request
This project is licensed under the MIT License.
2025-09-21