terraform-provider-anxcloud

command module
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

Terraform logo

Terraform Provider for Anexia Cloud

This provider is maintained internally by the Anexia Cloud team.

Documentation

Full documentation is available under docs/

Development

Build provider

Run the following command to build the provider

go build -o terraform-provider-anxcloud

or

make build
Test sample configuration

First, build and install the provider.

make install

Then, run the following command to initialize the workspace and apply the sample configuration.

terraform init && terraform apply
Run unit tests

Execute the following command to run unit tests:

make test
Run integration tests

Export ANEXIA_TOKEN by executing:

export ANEXIA_TOKEN='<token>'

and run all integration tests by executing the following command:

make testacc

or run specific test case:

make testacc TESTARGS='-run=TestAccXXX'

Contributing

To contribute, please read the contribution guidelines: Contributing to Terraform - Anexia Cloud Provider

Releasing

  1. Create pull request with entries from Unreleased section moved into a newly created release section in CHANGELOG.md
  2. Draft GitHub release with new changes in the description and configured to create a tag with the new version number on publish
  3. Merge previously created pull request into main
  4. Publish prepared release
  5. That's it! go-releaser will do the rest. Terraform registry will be automatically notified after binaries have been built via webhook.

=> The release workflow will create the release

Guide for repository maintainers

Run integration tests from fork repository

To run integration tests from fork repositories maintainer must carefully check changes that a PR is trying to make. It is the maintainer's responsibility to avoid secrets leak.

Integration tests are executed as part of the workflow, which has to be approved for outside collaborators.

License

Apache License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal/mockapi
Package mockapi is a generated GoMock package.
Package mockapi is a generated GoMock package.
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL