thankful-stone-5860
07/02/2024, 12:23 AMpython_aws_lambda_function()
in my Terraform deployment. but I'm unable to get pants to keep the deployment sandboxes even with --keep-sandboxes=always
enabled. Is there some regression that's preventing the keeping of sandboxes with experimental-deploy
?thankful-stone-5860
07/02/2024, 12:24 AMterraform init
, but after that there's no sandbox.careful-address-89803
07/02/2024, 1:56 AMterraform apply
?thankful-stone-5860
07/02/2024, 12:33 PM2.21.01
, and the step would be the terraform plan
via the --dry-run
thankful-stone-5860
07/02/2024, 1:11 PMterraform_module()
or terraform_deployment()
isn't actually executed or included.thankful-stone-5860
07/02/2024, 1:12 PMfile()
, resource()
, shell_command()
, among others.thankful-stone-5860
07/02/2024, 1:19 PMdependencies
of Terraform targets only process backend or vars files and all others are ignored.careful-address-89803
07/02/2024, 2:57 PMthankful-stone-5860
07/02/2024, 2:59 PMrun_shell_command()
to get the behavior I need. It's not ideal, but I get that Terraform is still in early development.careful-address-89803
07/02/2024, 3:04 PMfile
targets when they're marked as dependencies on terraform_deployment
or terraform_module
, at least on latest, will retry on 2.21.1
terraform_deployment(name="deploy0", root_module=":r")
terraform_var_files(name="vars", sources=["a.tfvars"])
terraform_module(name="r", dependencies=[":f"])
file(name="f", source="f.txt")
thankful-stone-5860
07/02/2024, 3:07 PM2.22.X
?careful-address-89803
07/02/2024, 3:18 PMmain
lol, which is slightly ahead of release_2.23.0.dev2
. But it also looks like it works on 2.21.0
thankful-stone-5860
07/02/2024, 3:35 PMdist/
dir and pants will ignore it no matter what I do.careful-address-89803
07/02/2024, 4:08 PMpants package my_aws_lambda
. Seems we haven't added package_dependencies
for deps that need to be packaged first. I thought that maybe experimental_wrap_as_resources
would work, but alas, seems we don't get resources either. I've added both of those to the stability tracker. For now, you can escape the deployment sandbox and grab the packaged object by absolute path. But run_shell_command
probably makes more sense.thankful-stone-5860
07/02/2024, 4:09 PMrun_shell_command
. It'll be sweet when package_dependencies
are supported with Terraform!