From e257c20eb81fd68364baa1d37802c060cab4542c Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 1 Oct 2023 14:30:15 -0700 Subject: [PATCH] Build scripts and things --- ci/verify-aws-fields.sh | 16 ++++++++++++++++ infra/Makefile | 12 ++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ci/verify-aws-fields.sh create mode 100644 infra/Makefile diff --git a/ci/verify-aws-fields.sh b/ci/verify-aws-fields.sh new file mode 100644 index 0000000..364eef8 --- /dev/null +++ b/ci/verify-aws-fields.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +echo "Checking to make sure all required AWS env vars are present" + +[[ $AWS_DEFAULT_REGION != '' ]] +echo AWS_DEFAULT_REGION is set + +[[ $AWS_DEFAULT_REGION != '' ]] +echo AWS_ACCESS_KEY_ID is set + +[[ $AWS_DEFAULT_REGION != '' ]] +echo AWS_SECRET_ACCESS_KEY is set + + diff --git a/infra/Makefile b/infra/Makefile new file mode 100644 index 0000000..5ff02c0 --- /dev/null +++ b/infra/Makefile @@ -0,0 +1,12 @@ +plan=out.plan + +SHELL := /bin/bash + +$(plan): *.tf + source set-env.sh && terraform plan -input=false -out $(plan) + +push: build + source set-env.sh && terraform apply $(plan) + + +.PHONY: build push create-bucket