From 480b6691682f021a2dfc762a975ee08252afcdc9 Mon Sep 17 00:00:00 2001 From: Samuel Nwoye Date: Tue, 26 Nov 2019 07:09:27 +0100 Subject: [PATCH] Updated the Beginners Section of Terraform Answered the definition questions for provider, resources and provisioner and those of terraform commands. --- README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f8409d3..04d5471 100644 --- a/README.md +++ b/README.md @@ -1609,9 +1609,11 @@ The benefits of Terraform over the other tools:
Explain each of the following: - * Provider - * Resource - * Provisioner + * Provider: is any cloud based technology - github, aws, postgresql etc - which one can make an API call to with its unique terraform + provider binary to provision available services and components. + * Resource: resources are the services and components you provision on these platforms. + * Provisioner: Provisioner in terraform's lingo specifically refers to configuration tools like ansible or salt-stack which are used + in combination with terraform to orchestrate a system e.g vm's
@@ -1623,10 +1625,12 @@ It keeps track of the IDs of created resources so that Terraform knows what it i
Explain what the following commands do: - * terraform init - * terraform plan - * terraform validate - * terraform apply + * terraform init initialises and downloads the provider's binary as described in the .tf files + * terraform plan is a dry-run listing the services and components that will be provisioned on specified provider's + platform. + * terraform validate parses through the terraform code to ensure that they are both syntactically correct and runtime + error free. + * terraform apply this command provision's the described services on the providers platform.
terraform init scans your code to figure which providers are you using and download them.