The -refresh-only parameter will update your state file when used with terraform plan.
Which argument can you use toprevent unexpected updatesto a module ' s configuration when calling Terraform Registry modules?
A Terraform provider is NOT responsible for:
Exhibit:
resource " azurerm_linux_web_app " " app " {
name = " example-app "
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
service_plan_id = azurerm_service_plan.plan.id
identity {
type = " UserAssigned "
identity_ids = [azurerm_user_assigned_identity.app.id]
}
}
resource " azurerm_role_assignment " " kv_access " {
scope = azurerm_key_vault.kv.id
role_definition_name = " Key Vault Secrets User "
principal_id = azurerm_user_assigned_identity.app.principal_id
}
Two resource blocks are shown: azurerm_linux_web_app and azurerm_role_assignment. When provisioned, the web app will use the role assignment during creation, so the role assignment must be created first. How do you ensure the azurerm_role_assignment resource is created first?
You ' re building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
Which command must you run before you run a plan or apply for the first time?
Which of the following is true about terraform apply?(Pick 2 correct responses)
Only the user that generated a terraform plan may apply it.
If you don’t use the local Terraform backend, where else can Terraform save resource state?
A data source is shown in the exhibit below.
How do you reference the id attribute of this data source?
}
}