I need to create a simple terraform infrastructure, and part of this infrastructure is to create AWS Lambda with the java Spring boot application as source code.
I read the documentation related to lambda and it looks like now. terraform can only load sources from a local file or s3 bucket . In my case, I save the application jar file in the Nexus repository (binary repository) and I want to download the source code / jar while creating Lambda from Nexus.
Based on the terraform documentation, it has:
none of these approaches solves my problem. I can create a bash file that will run the command wget
for the jar file, and then run the terraform command. But it does not look beautiful from my point of view. Perhaps you can offer any other solutions that are more accurate and flexible.
source
share