Recall & Review
beginner
What is the purpose of provider caching in Terraform?
Provider caching stores downloaded provider plugins locally to speed up future Terraform runs and reduce network usage.
Click to reveal answer
beginner
How do provider mirrors help in Terraform?
Provider mirrors act as local or private repositories that serve provider plugins, improving reliability and control over provider versions.
Click to reveal answer
intermediate
Where does Terraform store cached providers by default?
Terraform stores cached providers in a hidden directory named .terraform/providers in the working directory and also in a global plugin cache directory.
Click to reveal answer
intermediate
How can you configure Terraform to use a provider mirror?
You configure provider mirrors by setting the 'provider_installation' block in the CLI configuration file to point to the mirror URL or local path.
Click to reveal answer
intermediate
Why is using provider mirrors beneficial in an offline or restricted network environment?
Provider mirrors allow Terraform to install providers without accessing the public internet, ensuring Terraform runs smoothly in offline or restricted networks.
Click to reveal answer
What does Terraform use provider caching for?
✗ Incorrect
Terraform caches provider plugins locally to avoid downloading them every time, speeding up runs.
Which file do you edit to configure provider mirrors in Terraform?
✗ Incorrect
Provider mirrors are configured in the CLI configuration file, such as ~/.terraformrc or terraform.rc.
What is a key benefit of using a provider mirror?
✗ Incorrect
Provider mirrors let Terraform download providers without internet access, useful in restricted environments.
Where does Terraform NOT store provider plugins by default?
✗ Incorrect
Terraform does not store provider plugins in the cloud provider's API; it caches them locally.
Which block is used to define provider installation methods including mirrors?
✗ Incorrect
The 'provider_installation' block in the CLI config defines how Terraform installs providers, including mirrors.
Explain how provider caching and mirrors improve Terraform's performance and reliability.
Think about speed and network access.
You got /4 concepts.
Describe the steps to configure a provider mirror in Terraform.
Focus on the CLI config file and the provider_installation block.
You got /4 concepts.