New !random YAML Function: Generate Random Values in Your Configurations
· One min read
Need to generate random port numbers, worker IDs, or other numeric values in your Atmos configurations? The new !random YAML function makes it easy.
What's New
We've added a new !random YAML function that generates cryptographically secure random integers. Use it anywhere in your Atmos stack manifests:
vars:
app_port: !random 49152 65535 # Random ephemeral port
worker_id: !random 1000 9999 # Random worker ID
The function accepts 0, 1, or 2 arguments:
!random- Random number 0-65535!random 100- Random number 0-100!random 1024 65535- Random number 1024-65535
