/devops-api

Primary LanguageHTMLMIT LicenseMIT

DevOps API

Prerequisites

If you need to run deploy/plan/destroy targets.

NOTE! On MAC M1/Intel chip requires brew and GNU MAKE upgrade

Brew install

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

GNU make upgrade

brew install make
export PATH="/usr/local/opt/make/libexec/gnubin:$PATH" # Add to .bashrc or .zshrc
make -version # Should be higher then 3.8.1

HOWTO

Environmens

All envs configured in terraform/provisioners/ dir as .tfvars files.

Build

Build image

make build

Run container

make run

Cleanup

make cleanup

E2E Deoployment

Apply

make deploy env_id=<your_env_id> #F.E dev-us-east-1

Destroy

make destroy env_id=<your_env_id> 

Terraform fmt

make fix/ffmt