/terraform-provider-azion

Terraform provider for managing Azion resources.

Primary LanguageGoMozilla Public License 2.0MPL-2.0

Azion Terraform Provider

MIT License Go Report Card

Quick links

Requirements

  • Terraform 1.4.x or higher
  • Go 1.19+ (to build the provider plugin)

Building

To build or extends the Azion Terraform Provider, you'll first need Go installed on your machine (version 1.19+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

Clone repository to: $GOPATH/src/github.com/aziontech/terraform-provider-azion

$ mkdir -p $GOPATH/src/github.com/aziontech; cd $GOPATH/src/github.com/aziontech
$ git clone git@github.com:aziontech/terraform-provider-azion

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/aziontech/terraform-provider-azion
$ make build

Testing

See above for which option suits your workflow for building the provider.

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc

To run a subset of the acceptance test suite, you can run

TESTARGS='-run "^<regex target of tests>" -count 1 -parallel 1' make testacc

Note: Acceptance tests create real resources, and often cost money to run. You should expect that the full acceptance test suite will take hours to run.

License

This project is licensed under the terms of the MIT license.