Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joatmon08/terraform-provider-expense
Expense Report Provider for Terraform (Example)
https://github.com/joatmon08/terraform-provider-expense
Last synced: 9 days ago
JSON representation
Expense Report Provider for Terraform (Example)
- Host: GitHub
- URL: https://github.com/joatmon08/terraform-provider-expense
- Owner: joatmon08
- Created: 2019-10-08T18:30:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-20T00:29:43.000Z (almost 4 years ago)
- Last Synced: 2024-10-27T06:53:26.955Z (about 2 months ago)
- Language: Go
- Homepage: https://github.com/joatmon08/expense-report
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Provider for an Example Expense API
## Start
Download [this example](https://github.com/joatmon08/dotnet-service-mesh-example).
Run:
```shell
docker-compose up -d
```This will create the API stack.
## Tests
Start by running the following to check acceptance tests. Make sure
your API is running first!```shell
EXPENSE_URL=http://localhost:5001 make testacc
```You'll need to implement the following in order for the test to pass:
- `resourceExpenseUpdate`
- `resourceExpenseDelete`## Build
```shell
make plugin
```## Running the Provider
- Go to `examples/`.
- Make sure you've added it to your plugins directory.
- Run `terraform init`.
- Run `EXPENSE_URL=http://localhost:5001 terraform plan`. You'll need the URL.
- Run `EXPENSE_URL=http://localhost:5001 terraform apply`. You'll need the URL.