From 662ce1b1a5dfec672d539a5803bf11b818458e87 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 17 Feb 2022 22:15:08 +0100 Subject: [PATCH] Add setup-terraform --- infrastructure/create-resources/.gitignore | 1 + infrastructure/create-resources/setup-terraform.sh | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 infrastructure/create-resources/setup-terraform.sh diff --git a/infrastructure/create-resources/.gitignore b/infrastructure/create-resources/.gitignore index 97cd6e2..f407bb6 100644 --- a/infrastructure/create-resources/.gitignore +++ b/infrastructure/create-resources/.gitignore @@ -4,3 +4,4 @@ terraform.tfstate terraform.tfstate.backup secrets.txt +.env diff --git a/infrastructure/create-resources/setup-terraform.sh b/infrastructure/create-resources/setup-terraform.sh new file mode 100755 index 0000000..3e0940a --- /dev/null +++ b/infrastructure/create-resources/setup-terraform.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +export $(grep -v "^#" .env | xargs) + +terraform init -backend-config="access_key=$ACCESS_KEY" -backend-config="secret_key=$SECRET_KEY" +