This digital Ocean Component repo is a collection of different modules that were created at the same time.
By default this creates many digital ocean component listed in moudle directory.
Here is Digital Ocean Cloud Component created using this repo.
- follow this directory path
cd terraform/sandbox/blr1
The terraform init command initializes a working directory containing Terraform configuration files. This is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control.
Initialize Terraform with the necessary configurations using the following command:
terraform init
The terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure. By default, when Terraform creates a plan it: Reads the current state of any already-existing remote objects to make sure that the Terraform state is up-to-date.
Generate a Terraform execution plan configuration using the following command:
terraform plan
The terraform apply command performs a plan just like terraform plan does, but then actually carries out the planned changes to each resource using the relevant infrastructure provider's API. It asks for confirmation from the user before making any changes, unless it was explicitly told to skip approval.
Apply the configuration using the following command:
teraform apply
The terraform destroy command terminates resources managed by your Terraform project. This command is the inverse of terraform apply in that it terminates all the resources specified in your Terraform state. It does not destroy resources running elsewhere that are not managed by the current Terraform project.
To destroy the infrastructure, use the following command:
terraform destroy
Any module may be prevented from being created. Just add an enabled variable and set its value to false in the moudle.