Open Ishiihara opened 1 year ago
@tazarov Could you TAL here?
@Ishiihara, yeah, this is a problem with the lifecycle hook in Terraform. Ideally, we want to allow the user to control via vars whether the volume is removed or not by default, but according to Terraform's own docs the value must be known very early in the deps tree resolution so its value must be known. The issue why it passed tests is probably cached state value on my machine (typical "it works on my machine" kind of thing).
The easiest way to fix this is to configure the value in the aws_esb_volume directly:
resource "aws_ebs_volume" "chroma-volume" {
availability_zone = aws_instance.chroma_instance.availability_zone
size = var.chroma_data_volume_size
tags = {
Name = "chroma"
}
lifecycle {
prevent_destroy = false
}
}
@Ishiihara, fix PR is up - https://github.com/chroma-core/chroma/pull/1139
We moved this to another PR that has better implementation #1173
What happened?
When running terraform init, the following error was thrown:
Versions
Chroma v0.4.10
Relevant log output