# Nuform
Nulogy wrapper for Terraform, conform to the opinionated Nulogy workflow.
## Prerequisites
* [Hashicorp's Consul](https://www.consul.io/downloads.html)
* [Hashicorp's Terraform](https://www.terraform.io/downloads.html)
* [A stable Rust build](https://www.rust-lang.org/en-US/) develpment environment.
## Build
Use cargo in the project root directory:
```
cargo build
```
## Running tests
To run the unit test suite you can use:
```
cargo test
```
To run the integration test suite you'll need S3 credentials configured with a profile called `nuform_integration`.
To do so use the [aws cli](https://aws.amazon.com/cli/):
```
aws --profile nuform_integration configure
```
The command will interactively ask for your credentials.
You also need to run consul development server, which you can do with the command:
```
consul agent -dev
```
After this setup the integration test should be good to go, just use:
```
cargo run plan integration
```