Replace static s3 variables with opentofu output

This commit is contained in:
Tobias Reisinger 2024-09-28 00:30:46 +02:00
parent f8245550d0
commit 3a24ec2856
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 11 additions and 6 deletions
roles/linkwarden/vars

View file

@ -21,9 +21,9 @@ linkwarden_env:
SPACES_KEY: "{{ linkwarden_s3_accesskey }}"
SPACES_SECRET: "{{ linkwarden_s3_secretkey }}"
SPACES_ENDPOINT: https://s3.nl-ams.scw.cloud
SPACES_BUCKET_NAME: linkwarden.serguzim.me
SPACES_REGION: ns-ams
SPACES_ENDPOINT: "{{ opentofu.scaleway_service_buckets.linkwarden.api_endpoint }}"
SPACES_BUCKET_NAME: "{{ opentofu.scaleway_service_buckets.linkwarden.name }}"
SPACES_REGION: "{{ opentofu.scaleway_service_buckets.linkwarden.region }}"
SPACES_FORCE_PATH_STYLE: false
NEXT_PUBLIC_DISABLE_REGISTRATION: true