API to capture feedback and save in mongodb
- Terraform => v0.14.9
Fist you need s3 bucket to store terraform tfstate file, and will used by variable AWS_BUCKET_TFSTATE. Set these variables and aws credentials to the creation of the environment.
Example
export AWS_ACCESS_KEY_ID=AKI****************
export AWS_SECRET_ACCESS_KEY=qIEm********************************
export AWS_DEFAULT_REGION=us-east-2
export AWS_BUCKET_TFSTATE=feedback-tfstate-example
Using Makefile run:
make init
Using Makefile run:
make create
You can use the make help command for more options about Makefile
Command | Description |
---|---|
init | Execute terraform init |
create | Execute terraform apply and docker-compose up |
up | Execute docker-compose up |
down | Execute docker-compose down |
destroy | Exexute docker-compose down and terraform destroy |
test | Execute test request to API |