KQ406 — a constant is alive where it is used
Error · constant-alive-where-used · Plateaus
A constant a use names is alive in every plateau the policy, the element or the relationship holding the use is alive in.
A policy, an element or a relationship uses a constant in a plateau the constant is not alive in: one a later plateau removed with -const, or one it has not added yet. Each plateau gives a use its constant's value there, and a constant that is not alive in a plateau has none. Keep the constant in that plateau, or remove or restate the use there.
Examples
A later plateau removes MAX_SECRET_ROTATION, which the policy secret-rotation still uses there, so it raises KQ406:
-const MAX_SECRET_ROTATION
With the policy removed in that plateau too, it raises nothing:
-const MAX_SECRET_ROTATION
-policy secret-rotation
© 2026 Extenza Works. All rights reserved.