Closed gelo22 closed 4 months ago
@gelo22 You can use templating for this:
access_key: {{ reqEnv "SPACES_SECRET_KEY" }}
secret_key: {{ reqEnv "SPACES_ACCESS_TOKEN" }}
Terraform does not support do
backend, only classic s3
, so DigitalOcaan env vars not supported for state backend. On the other hand, for work with do resources, this vars should work.
Problem: When DO access configured via env variables SPACES_SECRET_KEY and SPACES_ACCESS_TOKEN - I see error:
Configuration via yaml works as expected:
Source:
https://github.com/shalb/cluster.dev/blob/master/docs/structure-backend.md#digital-ocean-spaces-and-minio https://docs.cluster.dev/examples-do-k8s/
Cluster.dev Version: cdev version v0.7.20 build timestamp: 2023-09-17T09:53:44+0000
Cluster.dev Config: Any with DO backend