Skip to main content

Checking resource availability earlier in the deployment process

ยท 2 min read
Janelle Tavares
Engineering
warning

This is a legacy platform changelog. The information reflected here may not represent current functionality and some links may be broken.

Prior to Meroxa CLI v2.3.0 with Turbine, you may have observed that the deployment process got pretty far before it noticed that there was an issue with a resource used in the Data Application.

$ meroxa apps deploy
Checking for uncommitted changes...
โœ” No uncommitted changes!
Validating branch...
โœ” Deployment allowed from master branch!
Preparing application "liveapp" (language) for deployment...
โœ” Application built!
โœ” Application processes found. Creating application image...
โœ” Platform source fetched!
โœ” Source uploaded!
โœ” Process image built!
x Deployment failed

Error: pipeline: "turbine-pipeline-liveapp" ("UUID")
Error running app : API error : Request failed with status code 404 : could not find resource

With v2.3.0 and newer of the Meroxa CLI with Turbine, we check for the availability of a resource earlier in the deployment process (before building the Process image) and provide more specific messaging and guidance around a misconfigured resource.

$ meroxa apps deploy
Checking for uncommitted changes...
โœ” No uncommitted changes!
Validating branch...
โœ” Deployment allowed from master branch!
Preparing application "liveapp" (language) for deployment...
โœ” Application built!
x Resource availability check failed
Error: could not find resource "my-resource-with-a-typo";

โš ๏ธ Run 'meroxa resources list' to verify that the resource names defined in your Turbine app are identical to the resources you have created on the Meroxa Platform before deploying again