Fugo Takefusa
09/26/2025, 2:43 AMMarvin
09/26/2025, 2:43 AMMarvin
09/26/2025, 2:51 AM{{ env.MY_VAR }}
.
- Define separate deployments per environment (one uses push: *ecr_push
, another uses push: null
) and deploy the one you need.
- Or drive a boolean via an env var, e.g. push: "{{ env.PUSH_IMAGE }}"
, then set PUSH_IMAGE=true
or false
in your CI/env (note: this is string-substitution; ensure the target field accepts booleans or handle accordingly).
Examples
- Two deployments:
deployments:
- name: my-flow-test
# ...
push: *ecr_push
- name: my-flow-dev
# ...
push: null
- Environment-driven toggle:
deployments:
- name: my-flow
# ...
push: "{{ env.PUSH_IMAGE }}"
Then set PUSH_IMAGE=true
(test) or PUSH_IMAGE=false
(other).
If you’re actually referring to a specific “push” step/packager (e.g., pushing a Docker image to ECR), share a snippet of your prefect.yaml and I can show the best pattern for that use case.
Docs:
- Prefect YAML reference: prefect.yaml
- Settings & profiles (to manage env-specific values): Settings and profiles