up as a shortcut¶
up is prepare followed by apply, in one call, with the prepared bundle
handed straight to apply. It is the normal way to run an installation: the flags
carry your requirements, and the bundle they render is applied as it stands.
What it does¶
flowchart LR
U["up"] --> P["prepare<br/>render and write"]
P --> A["apply<br/>execute"]
P -.->|"bundle passed in memory"| A
A --> R["combined report"]
The bundle is still written to disk, so the record of what was applied is the same as running the two commands separately.
What it reports¶
{
"status": "up",
"operation": "up",
"prepare": { "status": "prepared", "...": "..." },
"apply": { "status": "applied", "...": "..." }
}
Both phases report in full, so the record of what was generated and what was applied is the same as running the two commands separately.
Why it is a convenience rather than a third mode¶
up runs the identical code paths. It takes the same flags as prepare,
performs the same pool validation, renders the same bundle, and runs the same
eleven apply steps in the same order.
The one behavioural difference is that apply receives the bundle in memory
rather than reading install.spec.json back from disk. Everything else,
including reading each manifest from disk before applying it, is unchanged.
When to split it instead¶
up is the default. Run prepare and apply separately when you want
something to happen between them:
- Reading
terraform planbefore the cloud layer runs, which is the usual arrangement where cloud changes need approval. - Preparing and applying at different times, or by different people.
Changing an installation afterwards¶
Change the flags or the spec and run again. up re-renders from your new input
and applies it, Terraform converges, and the manifests apply idempotently.
xratu dataplane install up acme edge-eu dp-eu-west1 \
--provider gcp \
--dp-count 3 \
--artifact-registry <region>-docker.pkg.dev/<gcp-project-id>/<repository> \
--artifact-bucket gcs://<bucket>/<prefix> \
--project-id <gcp-project-id> \
--region <region>
That is the forward route. Reaching into a rendered file and running apply
also works, because apply reads each file from disk as it uses it, but it
leaves your change outside the input that produced the bundle and a re-prepare
rewrites it. See Editing generated files.