An autogenerated terraform provider based on the API specifications as provided by the /api/v2/
endpoint.
Currently, built provider versions for AWX. To see which ones are active check versions.yaml
- 24.6.1
- Unit tests
- Integration tests
You need to spin up a version of AWX you want to download the API spec from. Older version of AWX report incorrect API spec. So manual changes may be required to fix them.
export AWX_VERSION=24.6.1
mkdir -p resources/api/$AWX_VERSION/config resources/api/$AWX_VERSION/gen-data
cat <<EOF > resources/api/$AWX_VERSION/config/default.json
{
"api_version": "$AWX_VERSION"
}
EOF
make generate-config VERSION=$AWX_VERSION
make download-api VERSION=$AWX_VERSION
make generate-config VERSION=$AWX_VERSION
Check the previous version of the APIs inside the config/types
folder to see about customization.
make generate
If you want to build an API for the 24.6.1
version just run
make generate VERSION=24.6.1
A fresh AWX instance is required for automated tests, so they can ensure terraform provider is working by targetting a live AWX instance.
make dev
make port-forward
make dev-cleanup
make no-port-forward