is there any way to create a lambda without any as...
# aws
c
is there any way to create a lambda without any associated code (or maybe with some placeholder code) and use a separate process to actually update the code? will the code be replaced by the placeholder code every time i do a 'pulumi up'?
its a .net6 lambda btw
o
It might not change on
up
but
pulumi refresh
or
pulumi up --refresh
would likely detect the drift and replace it.
Are you finding the Lambda resource inadequate for your release process?
c
its just a bit disjointed because all of our pulumi code is in typescript and in one repository and the lambda code is in .net6 and in another repository...
we have scripts to update the lambda code already but i wanted to move the infrastructure into pulumi (lambda, sqs queue, role etc)
o
Makes sense. If that other repository publishes the lambda as a zip/tar file you could use it as a remote asset, or as part of the Pulumi program you manage download it from the remote.
c
yeah thanks.. that's exactly what i'm gonna do.. look in the s3 bucket for the most recent code asset and refer to that in the pulumi code
o
Sometimes you just have to lean in to another team or repository's release process. :)
v
why dont you just have the .net src in the same repo and then deploy it using the FileArchive functionality?