Terraform CLI and Provider Versions
Terraform v1.12.1
registry.terraform.io/hashicorp/archive v2.7.1
Terraform Configuration
resource "archive_file" "init" {
type = "zip"
source_dir = "${path.module}/script"
output_path = "${path.module}/file.zip"
}
Expected Behavior
The file have to be recreated during terraform apply
Actual Behavior
The file is recreated during terraform plan.
Steps to Reproduce
resource "archive_file" "init" {
type = "zip"
source_dir = "${path.module}/script"
output_path = "${path.module}/file.zip"
}
terraform plan
terraform apply
At first execution, all is fine. The file is created when terraform apply is executed.
Remove the file.zip and execute terraform plan: The file is recreated during terraform plan instead of terraform apply.
How much impact is this issue causing?
High
Logs
No response
Additional Information
No response
Code of Conduct
Terraform CLI and Provider Versions
Terraform v1.12.1
registry.terraform.io/hashicorp/archive v2.7.1
Terraform Configuration
Expected Behavior
The file have to be recreated during
terraform applyActual Behavior
The file is recreated during
terraform plan.Steps to Reproduce
At first execution, all is fine. The file is created when
terraform applyis executed.Remove the file.zip and execute
terraform plan: The file is recreated duringterraform planinstead ofterraform apply.How much impact is this issue causing?
High
Logs
No response
Additional Information
No response
Code of Conduct