1. What do you understand by Terraform in AWS?
Terraform is a part of the AWS DevOps Competency and also an AWS Partner Network (APN) advanced technology partner. It is similar to AWS Cloud Formation in the sense that it is also an “infrastructure as code” tool that allows you to create, update, and version your AWS infrastructure.
2. What are the reasons for choosing Terraform for DevOps?
- It can do complete orchestration and not just configuration management (like Ansible and Puppet).
- Has amazing support from almost all the popular cloud providers like AWS, Azure, GCP, DigitalOcean, etc.
- Easily manages the configuration of an immutable (dynamic) infrastructure.
- Provide immutable infrastructure where configuration changes smoothly.
Works on HCL (HashiCorp configuration language), which is very easy to learn and understand. - Easily portable from one provider to another.
- Easy Installation.
3. What are the key features of Terraform?
Terraform helps you manage all of your infrastructures as code and construct them as and when needed. Here are its key main features:
- A console that allows users to observe functions
- The ability to translate HCL code into JSON format
- A configuration language that supports interpolation
- A module count that keeps track of the number of modules applied to the infrastructure.
4. Define IAC
Infrastructure as Code (IAC) allows one to code instead of using manual procedures to construct, alter, and maintain the infrastructure. The configuration files may be modified and transmitted securely within an organization built according to infrastructure standards.
5. Define Terraform init?
Terraform initializes the code using the command terraform init. This command is used to initialize the working directory containing Terraform configuration files. It is safe to run this command multiple times.
You can use the init command for:
- Plugin Installation
- Child Module Installation
- Backend Initialization
6. What are the most useful Terraform commands?
Some of the most useful Terraform commands are:
- terraform init — initializes the current directory
- terraform refresh — refreshes the state file
- terraform output — views Terraform outputs
- terraform apply — applies the Terraform code and builds stuff
- terraform destroy — destroys what has been built by Terraform
- terraform graph — creates a DOT-formatted graph
- terraform plan — a dry run to see what Terraform will do
7. Define Terraform provider?
Terraform is used to manage and inform infrastructure resources such as bodily machines, VMs, network switches, containers, and more. A provider is accountable for thoughtful API interactions and revealing resources. Terraform supports a large number of cloud providers.
8. Why is Terraform used for DevOps?
Terraform uses a JSON-like configuration language called the HashiCorp Configuration Language (HCL). HCL has a very simple syntax that makes it easy for DevOps teams to define and enforce infrastructure configurations across multiple clouds and on-premises data centers.
9. Name some major features of Terraform?
- Execution Plan
- Change Automation
- Resource Graph
- Infrastructure as code
10. Define null resource in Terraform.
null_resource implements standard resource library, but no further action is taken. The triggers argument allows an arbitrary set of values that will cause the replacement of resources when changed.
11. What is a Terraform cloud?
The platform which allows teams to collaborate on Terraform projects on-demand or in reaction to specific circumstances is the Terraform cloud. It is tightly connected with Terraform’s processes and data. Terraform modules are shared by a private registry.
12. Describe the working of Terraform core?
The terraform core looks at the configuration monitoring and creates analysis and evaluation based on the configuration. It keeps track and compares the versions (current and previous) and then display the output through the terminal.
Terraform core mainly takes two inputs:
- Terraform Configuration — It keeps track of the infrastructure detail
- Terraform state — It keeps track of the infrastructure status.
So I hope this was very helpful and if you have any doubts or any questions you can write them down in the comment section below and I will try to answer you as soon as I can.
▬▬▬▬▬▬ Connect with me ▬▬▬▬▬▬
Youtube Subscription ► https://bit.ly/2LENtS1
Facebook Page: ► https://www.facebook.com/EasyAWSLearn/
Medium: ► https://techworldwithvijaypatel.mediu...
Dev: ► https://dev.to/easyawslearn
Telegram Channel: ► https://t.me/devtul
Happy Learning!…
No comments:
Post a Comment