-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mystique
committed
Feb 21, 2021
1 parent
e9b3da0
commit 295756d
Showing
23 changed files
with
809 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,165 @@ | ||
*.swp | ||
package-lock.json | ||
__pycache__ | ||
.pytest_cache | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
*.egg-info | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
|
||
# VSCode extension | ||
.vscode/ | ||
/.favorites.json | ||
|
||
# TypeScript incremental build states | ||
*.tsbuildinfo | ||
|
||
# Local state files & OS specifics | ||
.DS_Store | ||
node_modules/ | ||
lerna-debug.log | ||
dist/ | ||
pack/ | ||
.BUILD_COMPLETED | ||
.local-npm/ | ||
.tools/ | ||
coverage/ | ||
.nyc_output | ||
.LAST_BUILD | ||
*.sw[a-z] | ||
*~ | ||
.idea | ||
|
||
# We don't want tsconfig at the root | ||
/tsconfig.json | ||
|
||
# CDK Context & Staging files | ||
cdk.context.json | ||
.cdk.staging/ | ||
cdk.out/ | ||
non_public_resources/ | ||
|
||
|
||
# CDK asset staging directory | ||
.cdk.staging | ||
cdk.out | ||
######################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.PHONY: test help clean | ||
.DEFAULT_GOAL := help | ||
|
||
# Global Variables | ||
CURRENT_PWD:=$(shell pwd) | ||
VENV_DIR:=.env | ||
AWS_PROFILE:=elf | ||
|
||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
install: ## Install CDK and bootstrap | ||
npm -g install aws-cdk | ||
cdk bootstrap | ||
|
||
init: ## Initialize a empty project using python language | ||
cdk init app --language python | ||
|
||
cdk_ls: ## List the stacks | ||
/bin/bash -c "cd $(CURRENT_PWD) && . .env/bin/activate && cdk ls" | ||
|
||
|
||
pre_build: ## Run build | ||
npm run build | ||
|
||
build: ## Synthesize the template | ||
cdk synth | ||
|
||
post_build: ## Show differences | ||
cdk diff | ||
|
||
deploy: ## Deploy ALL stack | ||
cdk ls | xargs cdk deploy | ||
|
||
destroy: ## Delete Stack without confirmation | ||
cdk ls | xargs cdk destroy -f | ||
|
||
deps: deps_python ## Install dependancies | ||
|
||
deps_python: | ||
.env/bin/activate | ||
pip3 install -r requirements.txt | ||
|
||
|
||
clean: ## Remove All virtualenvs | ||
@rm -rf ${PWD}/${VENV_DIR} build dist *.egg-info .eggs .pytest_cache .coverage | ||
@find . | grep -E "(__pycache__|\.pyc|\.pyo$$)" | xargs rm -rf |
Oops, something went wrong.