Skip to content
Captain's Academy0
← Terraform sea chart
Island 4 · Providers · Port 4.4

Configuring a provider

Ask the Captain
Instagram
Never type your cloud password into a .tf file.
You'll learn to

configure a provider (region, credentials) without writing secrets in code

Recap

  1. 1The provider block holds settings: region, profile, default tags
  2. 2Credentials come from environment variables, a profile or a role
  3. 3Hard-coded access keys end up in Git forever
Check yourself

Where should your cloud credentials live when you run Terraform on your laptop?

4.4

Stamp this lesson

Watched it and passed the check? Mark it in your logbook.