Prerequisites
- The provider set up as described in the overview, with the
QOVERY_API_TOKENenvironment variable set. - The ID of your organization and the ID of an existing cluster. See Find resource IDs.
Configuration
variables.tf
main.tf
healthchecksis required. Set the probe ports and path to what your application serves. An HTTP probe requiresscheme.auto_deployistrueby default: Qovery redeploys the application on each new commit tomain.- Changing the application in the configuration updates it in Qovery but does not redeploy it. To redeploy on the next
terraform apply, setversiononqovery_deploymentto a new UUID, or deploy from the Console.
Deploy
terraform apply waits for the deployment to finish, then prints the application URL.
Clean up
Next steps
Application with Database
Connect the application to a database
Multi-Environment Setup
Deploy the same stack to several environments
qovery_application reference
Every attribute of the application resource
qovery_deployment reference
Deploy, stop or restart an environment