Skip to content

Commit a2b6b1e

Browse files
doc: Documenting how to configure s3 backend with env vars (#604)
1 parent e01a01f commit a2b6b1e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/index.md

+7
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,10 @@ terraform {
182182

183183
Beware as no locking mechanism are yet supported.
184184
Using scaleway object storage as terraform backend is not suitable if you work in a team with a risk of simultaneous access to the same plan.
185+
186+
Note: For security reason it's not recommended to store secrets in terraform files. If you want to configure the backend with environnment var, you need to use `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [source](https://www.terraform.io/docs/backends/types/s3.html#access_key).
187+
188+
```bash
189+
export AWS_ACCESS_KEY_ID=$SCW_ACCESS_KEY
190+
export AWS_SECRET_ACCESS_KEY=$SCW_SECRET_KEY
191+
```

0 commit comments

Comments
 (0)