Build scripts and things
This commit is contained in:
parent
71cf655767
commit
e257c20eb8
16
ci/verify-aws-fields.sh
Normal file
16
ci/verify-aws-fields.sh
Normal 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
12
infra/Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user