This project is not currently maintained, and is not a recommended method of deployment to Fly.io.
To run acceptance tests for this provider some scaffolding is required.
fly orgs create fly-terraform-ci
export FLY_TF_TEST_ORG=<your-org-slug-from-step-1>
export FLY_TF_TEST_APP="acctestapp-$(head /dev/urandom | LC_ALL=C tr -dc A-Za-z0-9 | head -c 10)"
echo "export FLY_TF_TEST_ORG=${FLY_TF_TEST_ORG}" >> .make-overrides
echo "export FLY_TF_TEST_APP=${FLY_TF_TEST_APP}" >> .make-overrides
echo "export ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=$(pwd)/.tool-versions"
$(cd infra && echo "fly_ci_org = \"${FLY_TF_TEST_ORG}\"\nfly_ci_app = \"${FLY_TF_TEST_APP}\"" > terraform.tfvars)
terraform apply
to create the scaffolding.make
in the repo root to run tests..make-overrides
to a region closer to youIf you do not have a local Go environment, you can build in a container. The binary will be placed in the root of the repository.
If you are not building for linux, set GOOS
and GOARCH
environment variables appropriately.
docker-compose up
(default, linux build)GOOS=darwin GOARCH=arm64 docker-compose up
(m1 mac)docker-compose up --build
if the version of golang has changed since the last run.