Remove obsolete files and vars

This commit is contained in:
a@a.ru 2019-04-24 12:42:04 +03:00
parent 66a4ff9356
commit 74c2eefb19
3 changed files with 0 additions and 53 deletions

View File

@ -1,33 +0,0 @@
.PHONY: help
IMAGE_NAME ?= poa-aws
INFRA_PREFIX ?= poa-example
KEY_PAIR ?= poa
help:
@echo "$(IMAGE_NAME)"
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
check: lint ## Run linters and validation
@bin/infra precheck
@terraform validate -var-file=ignore.tfvars base
@if [ -f main.tfvars ]; then \
terraform validate \
-var='db_password=foo' \
-var='new_relic_app_name=foo' \
-var='new_relic_license_key=foo' \
-var-file=main.tfvars main; \
fi
@rm ignore.tfvars
format: ## Apply canonical formatting to Terraform files
@terraform fmt
lint: shellcheck check-format ## Lint scripts and config files
check-format:
@terraform fmt -check=true
shellcheck:
@shellcheck --shell=bash bin/infra
@shellcheck --shell=bash modules/stack/libexec/init.sh

View File

@ -1,19 +0,0 @@
version: 0.0
os: linux
files:
- source: .
destination: /opt/app
hooks:
ApplicationStop:
- location: bin/stop.sh
timeout: 300
AfterInstall:
- location: bin/build.sh
ApplicationStart:
- location: bin/migrate.sh
timeout: 300
- location: bin/start.sh
timeout: 3600
ValidateService:
- location: bin/health_check.sh
timeout: 3600

View File

@ -1,4 +1,3 @@
variable "region" {}
variable "prefix" {}
variable "key_name" {}
variable "vpc_cidr" {}