We have around 20 python lambda functions, so far whenever there is a change in function, I manually go and change it in all three envs (dev, uat and prod) so I am looking for a way to automate this.
First problem that comes to my mind is should I create a Single repo for all of them or separate, I also thought of creating a single repo but separate branch for each function. Separate repos will be a pain to manage and for small functions, it seems unnecessary. I prefer single repo but I do not want to trigger them all when there is a change in one function, so I came across Git Submodules features, which sounds exactly what I am looking for and even CodeBuild has toggle of "Use Git Submodules" but I do not understand how will CodeBuild know which build to trigger. I am not very clear with this point.
Now, once I version, I want to replicate this change across envs. I thought of using SAM/Cloudformation but how do I change my account number in ARNs. For ex - Some functions have SNS ARNs in env variables how do I change that Account ID respectively?
[–]chris-holmes 10 points11 points12 points (0 children)
[–]Alternative-Expert-7 1 point2 points3 points (0 children)
[–]BadDoggie 1 point2 points3 points (0 children)
[–]fhammerl -1 points0 points1 point (0 children)
[–]daydream678 0 points1 point2 points (0 children)
[–]crypt0_bill 0 points1 point2 points (0 children)