terraform-provider-archive icon indicating copy to clipboard operation
terraform-provider-archive copied to clipboard

Run archive_file on each apply

Open AzySir opened this issue 3 years ago • 2 comments

Hi there,

Is there a way to ensure that the archive_file runs on each apply? I.e every time I change the code in my lambda python I want the archive_file to re-zip again so the lambda can update to the new code.

AzySir avatar Oct 01 '21 06:10 AzySir

I have it paired with a null resource and this explicit depends on the null resource. The null resources specifies the paths that should trigger a new archive.

brantgurga avatar Oct 09 '21 22:10 brantgurga

Thanks @brantgurga yeah I had something similar also - i think it'd be nice to have this flag as this currently kills a full 360 degree creation of Lambda Deployments + Packages.

I'm not big on go however this is definitely tempting to me invest in it. I'm a little tired of SAM...

AzySir avatar Feb 16 '22 19:02 AzySir