mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Read Scaleway key id from file
This commit is contained in:
parent
abafc2f7ab
commit
bcbc078ca6
2 changed files with 4 additions and 3 deletions
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
set -e
|
||||
|
||||
AWS_ACCESS_KEY_ID=SCW3NQVMPDWZF6HM3DR1
|
||||
AWS_SECRET_ACCESS_KEY=`jq '.token' -r ~/.scwrc`
|
||||
export AWS_ACCESS_KEY_ID=`cat ~/.ssh/scw_key_id`
|
||||
export AWS_SECRET_ACCESS_KEY=`jq '.token' -r ~/.scwrc`
|
||||
|
||||
terraform "$@" terraform
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ locals {
|
|||
|
||||
terraform {
|
||||
backend "s3" {
|
||||
bucket = "banditlair-terraform"
|
||||
bucket = "banditlair-k8s-tfstate"
|
||||
key = "k8s.tfstate"
|
||||
region = "nl-ams"
|
||||
endpoint = "https://s3.nl-ams.scw.cloud"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue