Update Azure RM remote config documentation
Current documentation on azure backend examples leaves out a critical parameter required for remote config to work.
This commit is contained in:
parent
e7411891f4
commit
861fd22cdd
|
@ -16,6 +16,8 @@ Use of environment variables or config file is recommended.
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
|
This example follows the recommended approach of storing the access_key in the environment variable `ARM_ACCESS_KEY`.
|
||||||
|
|
||||||
```
|
```
|
||||||
terraform remote config \
|
terraform remote config \
|
||||||
-backend=azure \
|
-backend=azure \
|
||||||
|
@ -26,6 +28,8 @@ terraform remote config \
|
||||||
|
|
||||||
## Example Referencing
|
## Example Referencing
|
||||||
|
|
||||||
|
This example follows the recommended approach of storing the access_key in the environment variable `ARM_ACCESS_KEY`.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
# setup remote state data source
|
# setup remote state data source
|
||||||
data "terraform_remote_state" "foo" {
|
data "terraform_remote_state" "foo" {
|
||||||
|
@ -34,6 +38,7 @@ data "terraform_remote_state" "foo" {
|
||||||
storage_account_name = "terraform123abc"
|
storage_account_name = "terraform123abc"
|
||||||
container_name = "terraform-state"
|
container_name = "terraform-state"
|
||||||
key = "prod.terraform.tfstate"
|
key = "prod.terraform.tfstate"
|
||||||
|
access_key = "<primary or secondary storage account access key>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue