Read Scaleway key id from file

This commit is contained in:
Paul-Henri Froidmont 2019-06-15 22:53:23 +02:00
parent abafc2f7ab
commit bcbc078ca6
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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"