Better Local Package Testing
schneider10 opened this issue ยท 6 comments
Is your request related to a new offering from AWS?
Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.
- No
๐ : please wait to file a request until the functionality is avaialble in the AWS provider - Yes
โ : please list the AWS provider version which introduced this functionality
Yes, v1 or earlier
Is your request related to a problem? Please describe.
I would love to be able to generate a build package locally using the method from package.py so I can peer into its contents during debugging. The 'pattern' regexp used is very difficult to debug and I don't find the debug logs to be as useful as having direct access to the actual zip directory.
Describe the solution you'd like.
Allow devs to run a command that accesses the same functionality behind package.py so we can generate zip files locally for debugging without having to run any terraform commands.
Describe alternatives you've considered.
rerunning terraform apply over and over again to debug.
Additional context
This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
I'd be interested in this also. It would be useful to build the package locally without having to run the apply.
terraform apply
should mean "create something".
If you don't want to deploy a Lambda Function, you can always use terraform apply -target=module.lambda_function.null_resource.archive
(or something like that).
That's not a bad idea. I rarely use -target
and forget it is an option. Thanks Anton!
I'm going to lock this issue because it has been closed for 30 days