Skip to content
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

data.archive_file does not generate archive file during apply #364

Closed
1 task done
nprime496 opened this issue Aug 30, 2024 · 1 comment
Closed
1 task done

data.archive_file does not generate archive file during apply #364

nprime496 opened this issue Aug 30, 2024 · 1 comment
Labels

Comments

@nprime496
Copy link

Terraform CLI and Provider Versions

Terraform v1.7.5
on darwin_arm64

  • provider registry.terraform.io/hashicorp/google v5.42.0
  • provider registry.terraform.io/hashicorp/google-beta v5.42.0
  • provider registry.terraform.io/hashicorp/null v3.2.2
  • provider registry.terraform.io/hashicorp/random v3.6.2

Terraform Configuration

data "archive_file" "deployment_package" {
  type = "zip"
  source_dir = "../../example/"
  output_path = ".${replace(path.module, path.root, "")}/tmp/example.zip"
}

Expected Behavior

Archive file is generated during terraform apply.

Actual Behavior

Archive file is not generated. However if I run terraform plan before apply, the output is generated.

Steps to Reproduce

  1. terraform apply

How much impact is this issue causing?

High

Logs

No response

Additional Information

This is the same as #39 which is locked and I don't understand why. It is a very common and daunting problem. Most CI plan then requires an apply manually, if you have no intention in changing your behavior, please at least give a best practice in those cases as proposed by #39 (comment).

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nprime496 nprime496 added the bug label Aug 30, 2024
@nprime496
Copy link
Author

Closed as #218 already restate the problem.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant