*NURSING > Final Exam Review > Terraform Associate Certification Study Final Exam Test Bank Questions and Answers 2022/2023 (All)
Terraform Associate Certification Study Final Exam Test Bank Questions and Answers 2022/2023 Provider initialization is one of the actions of terraform init. Running this command will? download an... d initialize any providers that are not already initialized. Where are providers downloaded by terraform init stored? Providers downloaded by terraform init are only installed for the current working directory; other working directories can have their own installed provider versions. Can terraform init download third party providers that are not distributed by HashiCorp Note that terraform init cannot automatically download providers that are not distributed by HashiCorp How do you constrain the provider version? add a required_providers block inside a terraform block: terraform { required_providers { aws = "~> 1.0" } } How do you upgrade the terraform provider? terraform init -upgrade. This command also upgrades to the latest versions of all Terraform modules. How can you optionally define multiple configurations for the same provider, and select which one to use on a per-resource or per-module basis. use alias # The default provider configuration provider "aws" { region = "us-east-1" } # Additional provider configuration for west coast region provider "aws" { alias = "west" region = "us-west-2" } Where are providers downloaded to? Windows: %APPDATA%\terraform.d\plugins All other systems: ~/.terraform.d/plugins If multiple versions of a plugin are installed, Terraform will use? If multiple versions of a plugin are installed, Terraform will use the newest version that meets the configuration's version constraints. The name of a variable can be any valid identifier except the following source version providers count for_each lifecycle depends_on locals How can an input variable be accessed? its value can be accessed from within expressions as var.<NAME>, where <NAME> matches the label given in the declaration block: resource "aws_instance" "example" { instance_type = "t2.micro" ami = var.image_id } What is a type constraint? The type argument in a variable block allows you to restrict the type of value that will be accepted as the value for a variable. If no type constraint is set then a value of any type is accepted. What are the three type constraints? string number bool What are the 5 complex types? list(<TYPE>) set(<TYPE>) map(<TYPE>) object({<ATTR NAME> = <TYPE>, ... }) tuple([<TYPE>, ...]) Because the input variables of a module are part of its user interface, you can briefly describe the purpose of each variable using the optional description argument: variable "image_id" { type = string description = "The id of the machine image (AMI) to use for the server." } How can you set variables? [Show More]
Last updated: 1 year ago
Preview 1 out of 49 pages
Connected school, study & course
About the document
Uploaded On
Nov 29, 2022
Number of pages
49
Written in
This document has been written for:
Uploaded
Nov 29, 2022
Downloads
0
Views
59
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·