mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46: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
|
set -e
|
||||||
|
|
||||||
AWS_ACCESS_KEY_ID=SCW3NQVMPDWZF6HM3DR1
|
export AWS_ACCESS_KEY_ID=`cat ~/.ssh/scw_key_id`
|
||||||
AWS_SECRET_ACCESS_KEY=`jq '.token' -r ~/.scwrc`
|
export AWS_SECRET_ACCESS_KEY=`jq '.token' -r ~/.scwrc`
|
||||||
|
|
||||||
terraform "$@" terraform
|
terraform "$@" terraform
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ locals {
|
||||||
|
|
||||||
terraform {
|
terraform {
|
||||||
backend "s3" {
|
backend "s3" {
|
||||||
bucket = "banditlair-terraform"
|
bucket = "banditlair-k8s-tfstate"
|
||||||
key = "k8s.tfstate"
|
key = "k8s.tfstate"
|
||||||
region = "nl-ams"
|
region = "nl-ams"
|
||||||
endpoint = "https://s3.nl-ams.scw.cloud"
|
endpoint = "https://s3.nl-ams.scw.cloud"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue