-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request - Delete "archive_file" and "local_file" files after they did their job. #18422
Comments
Hi @fahrenq! Thanks for this feature request. The We continue to support For In your case, if I take your example literally, it looks like you may be doing something a little unusual here by uploading a "placeholder" archive which I assume later gets replaced by a deployment step that interacts directly with the Lambda API. Having both Terraform and some other tool manage the same object is not generally recommended, but since it looks like your placeholder code is hard-coded anyway I assume you could pre-build that zip file and just always use the same archive for every run, rather than generating it repeatedly for each deployment. So with that said, it is not technically possible to clean up after |
@apparentlymart Thank you very much for that detailed answer. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
It would be cool if we could delete files that are left after "archive_file" data source (and probably local_file as well, but it's not in the use case I'll show below).
Use case with a workaround:
I want to deploy an "empty" lambda function because I have separate CI/CD pipeline for building and deploying lambda code. Here's a workaround I came up with:
HCL
It works fine except that:
terraform plan
-empty.zip
is created and not destroyed.Thanks.
The text was updated successfully, but these errors were encountered: