Reputation: 9298
This document suggests that the backend.key
setting will be automatically mapped to ARM_ACCESS_KEY
environment variable:
https://learn.microsoft.com/en-us/azure/developer/terraform/store-state-in-azure-storage
Based on what rule or mechanics backend.key
reads ARM_ACCESS_KET
environment variable? where is it documented
Upvotes: 0
Views: 151
Reputation: 160
You're mixing up blob storage keys and access keys. A "key" in this sense represents a file path in blob storage, while an "access_key" is a login to that blob.
If you fill an environment variable named ARM_ACCESS_KEY
with the given storage account access key described in that documentation, then you don't have to define that access key as a constant in the backend configuration (which would be insecure).
The settings you have thus far are correct. If you define the environment variable I described above, Terraform will use it when connecting to remote state storage.
Upvotes: 1