Request paths
What happens, call by call, for a deploy, a release and a visitor's request.
On this page
A deploy
POST /v1/apps/laespiga/deploysreaches the Run API with a token. The API checks the token’s scopes and the organization’s credits, writes adeploysrow (queued) and abuildsrow, and sends a message to the build queue.- The builder takes the message, starts a CodeBuild build with the build role of that project, and passes a signed URL to fetch the source and a signed prefix to write artifacts.
- CodeBuild streams logs; the builder copies them to the build’s log and marks the build
succeededorfailed. - On success the deployer creates the deploy’s resources: uploads files under
s3://…/deploys/<deploy>/, publishes a Lambda version or registers a Fargate task definition, creates schedules and queues the first time. Resources are tagged with project, app and deploy. - The deployer calls the health check at the deploy’s own address and marks the deploy
ready. - If the environment follows this deploy automatically, the release step runs.
A release
POST …/environments/production/release(or step 6 above) checks the deploy isready.- The deployer writes
laespiga.sypnia.app → dpl_7h3k(and every custom domain of the environment) to the CloudFront KeyValueStore, and for Fargate shifts the load balancer’s target group. - The release row is written; the previous deploy stays intact for rollbacks.
A visitor’s request
- The browser asks
https://laespiga.sypnia.app/pedidos. - CloudFront terminates TLS and runs the edge router (a CloudFront Function): it reads the host’s deploy from the KeyValueStore and rewrites the request to that deploy’s origin path.
- Static paths are served from S3 (cached). Dynamic paths go to the deploy’s Lambda function URL (signed by CloudFront with origin access control) or to the Fargate service behind the load balancer.
- The response returns through CloudFront. The request log line is written by CloudFront’s real-time logs to the log pipeline.