Search⌘ K
AI Features

Handle Back-end Authentication Methods

Explore how to securely manage back-end authentication when storing Terraform state remotely. Understand the risks of embedding credentials in configurations and learn best practices for using partial back-end configurations and runtime inputs to protect sensitive information and maintain secure access.

Back-end authentication

Some back-ends require authentication and authorization to access state data stored in the backend. For instance, Azure Storage requires access keys, and the MySQL back-end requires database ...

... ...

Go (1.6.2)
terraform
terraform {
backend "azurerm" {
storage_account_name = "arthurdent42"
container_name = "tfstate"
key = "terraform.tfstate"
access_key = "qwertyuiop12345678..."
}
}

Azure Storage accounts ...