Skip to content

Commit 24348ba

Browse files
committed
docs/remote_azure: Adding a note to the remote state docs about ENV VARs
1 parent 861fd22 commit 24348ba

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

website/source/docs/state/remote/azure.html.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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
1414
make 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
```
2222
terraform 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
3533
data "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
```

0 commit comments

Comments
 (0)