Build scripts and things

This commit is contained in:
shockrah 2023-10-01 14:30:15 -07:00
parent 71cf655767
commit e257c20eb8
2 changed files with 28 additions and 0 deletions

16
ci/verify-aws-fields.sh Normal file
View File

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

12
infra/Makefile Normal file
View File

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