Build scripts and things
This commit is contained in:
1 parent
71cf655767
commit
e257c20eb8
2 files changed
+28
No files matched your search
@@ -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
|
||||||
|
|
||||||
|
|
||||||
@@ -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
|
||||||
Reference in new issue
Block a user