Build scripts and things

This commit is contained in:
shockrah committed 2023-10-01 14:30:15 -07:00
1 parent 71cf655767
commit e257c20eb8
2 files changed
+28

No files matched your search

+16
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
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