/terraform-provider-awx

Ansible AWX provider for Terraform

Primary LanguageGo

Terraform Provider AWX

Fork from mrcrilly/terraform-provider-awx for develop additional functions

Coming soon.

Local Development

# Start a Local AWX deployed to a Kind
cd ./tools && go run mage.go -v reCreate && cd ..
# Build Provider
goreleaser build --snapshot --rm-dist

# Copy Provider
mkdir -p ~/.terraform.d/plugins/github.com/denouche/awx/0.1/linux_amd64/terraform-provider-awx
find ./dist/terraform-provider-awx_linux_amd64/* -name 'terraform-provider-awx*' -print0 | xargs -0 -I {} mv {} ~/.terraform.d/plugins/github.com/denouche/awx/0.1/linux_amd64/terraform-provider-awx

# start the Tests
go test ./test -count=1

# or as one command
goreleaser build --snapshot --rm-dist \
    && mkdir -p ~/.terraform.d/plugins/github.com/denouche/awx/0.1/linux_amd64/ \
    && find ./dist/terraform-provider-awx_linux_amd64/* -name 'terraform-provider-awx*' -print0 | xargs -0 -I {} mv {} ~/.terraform.d/plugins/github.com/denouche/awx/0.1/linux_amd64/terraform-provider-awx \
    && go test ./test -count=1

Documentation

The files from ./docs are generated by cd ./tools && go run mage.go -v genDocumentation && cd ..