Using envsubst to Merge Environment Variables into Config Files

Опубликовано: 16 Июль 2026
на канале: Nick Janetakis
6,363
155

This built in command lets you template out files to help create dynamic config files.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------
► https://github.com/a8m/envsubst (optional replacement with default variable support)

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

► https://nickjanetakis.com/courses/

THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...

FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter:   / nickjanetakis  
► GitHub: https://github.com/nickjj

TIMESTAMPS
---------------------------------------------------
0:00 -- What we're going to cover in this video
0:12 -- envsubst lets you generate templated files with ENV variables
0:44 -- Trying out envsubst on the command line with a simple echo
1:19 -- Going over the use case of templating out an eksctl config file
2:29 -- Taking a look at a templated eksctl config file with ENV vars
3:34 -- Running the templated config through envsubst
4:53 -- Exporting the processed config to eksctl as input
6:29 -- Writing out a new processed config file based on using envsubst
7:00 -- Being able to define default values using a fork of envsubst