Hello, I'm asking because I didn't see about this ...
# atmos
y
Hello, I'm asking because I didn't see about this in the Atmos documentation. Is it possible to add the Git commit and branch to the variables? This would allow us to tag resources and thus track the code that created or modified them. Do you think this is a good idea? And Then would you consider adding this feature to the Atmos core?
a
can't say if it's a good idea or not w/o more context, but you can probably use Atmos YAML functions to get the values you need and apply them to variables: https://atmos.tools/functions/yaml/ for example, these functions:
e
It works but it creates permadrift unless you're running the plan and apply based on tracked commits.
Tracked commits are the commit for a given component at the last time it was deployed.
If you do it blindly, any commit to the repo will lead to a change in the plan for every component.
y
Yeah, I see what you mean, it's actually the most recent commit that was applied to the component.
Thanks @Andriy Knysh (Cloud Posse) I'll try that.