File tree Expand file tree Collapse file tree
website/source/docs/state/remote Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ Stores the state as a given key in a given bucket on [Microsoft Azure Storage](h
1212
1313-> ** Note:** Passing credentials directly via config options will
1414make them included in cleartext inside the persisted state.
15- Use of environment variables or config file is recommended.
15+ Access key should, ideally, be passed using the environment variable
16+ ` ARM_ACCESS_KEY ` to follow this convention.
1617
1718## Example Usage
1819
19- This example follows the recommended approach of storing the access_key in the environment variable ` ARM_ACCESS_KEY ` .
2020
2121```
2222terraform remote config \
@@ -28,8 +28,6 @@ terraform remote config \
2828
2929## Example Referencing
3030
31- This example follows the recommended approach of storing the access_key in the environment variable ` ARM_ACCESS_KEY ` .
32-
3331``` hcl
3432# setup remote state data source
3533data "terraform_remote_state" "foo" {
@@ -38,7 +36,6 @@ data "terraform_remote_state" "foo" {
3836 storage_account_name = "terraform123abc"
3937 container_name = "terraform-state"
4038 key = "prod.terraform.tfstate"
41- access_key = "<primary or secondary storage account access key>"
4239 }
4340}
4441```
You can’t perform that action at this time.
0 commit comments