add basic makefile to save cloudflare credentials

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-08-06 14:35:34 -04:00
parent 6b308660d1
commit 6dd007e48b
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 20 additions and 0 deletions

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
all: deps secrets init-terraform
@echo "Success!"
deps:
yarn install
init-terraform:
terraform init -upgrade=true
secrets:
echo "Saving secrets to: terraform.tfvars"
@echo "\
# secrets extracted from password-store\n\
cloudflare_token = \"$(shell pass cloud/Cloudflare/token)\"\n\
cloudflare_email = \"$(shell pass cloud/Cloudflare/email)\"\n\
cloudflare_org_id = \"$(shell pass cloud/Cloudflare/org_id)\"\n\
" > terraform.tfvars
cleanup:
rm -r $(PLUGIN_DIR)/$(ARCHIVE)