Is it bad form to read env vars from pulumi programs? I’m calling a pulumi program from my CI system, and I’d like to be able to pass the build #. I debated setting it as Configuration, but I don’t want to update the stack’s yaml file as part of CI.
07/12/2021, 9:31 PM
no that's a totally legit way of doing it!
that's the joy of being able to use regular programming languages, but you do need to be careful - the build # will change every time which means your pulumi program will update every time
07/12/2021, 9:40 PM
Thanks. In this case the CI job is updating an ECS task revision that includes the build #, so update is expected.