This repository contains Terraform scripts to provision infrastructure using Docker containers. Make sure to follow the instructions below before using the Terraform scripts.
Before you begin, ensure you have met the following requirements:
- Terraform must be installed on your local machine. Follow the installation instructions provided by HashiCorp for your operating system.
- Docker Desktop must be installed on your local machine. Follow the installation instructions provided by Docker for your operating system.
Follow these steps to use the Terraform scripts:
-
Clone this repository to your local machine.
-
Navigate to the directory containing the Terraform scripts.
-
Initialize Terraform by running the following command:
terraform init
-
Review and modify the
variables.tf
file as needed to customize your infrastructure. -
Use the following Terraform commands to plan and apply changes:
terraform plan terraform apply
-
After applying changes, you can manage your Docker containers using Docker Desktop.
-
Command to used to provide human-readable output from a state or plan file.
terraform show
-
Command for a convenient way to destroy all remote objects managed by a particular Terraform configuration.
terraform destroy
If you encounter any issues or have questions, please comment on this repository for assistance.