DEV Community

Discussion on: How to conditionally upload Lambda artifact to s3 with Terraform?

 
jesusgollonet profile image
jesús gollonet

Ok i see how keeping it in an infra repo makes sense in that case. I usually deal with much smaller stuff so take anything I say with a grain of salt.

A more workable approach might be adding the lambda code as a dependency of the infra. Either as a git submodule or grabbing with a shell script from terraform.

But again, far from an expert on that kind of situation so I'll stop here :P

Thread Thread
 
piczmar_0 profile image
Marcin Piczkowski

I'll think about your suggestion as well. Thanks :)