Hi, we are running metaflow deployment in terrafor...
# ask-metaflow
f
Hi, we are running metaflow deployment in terraform but there is error, does anyone have context on it?
Copy code
Upgrading modules...
Downloading registry.terraform.io/outerbounds/metaflow/aws 0.10.1 for metaflow...
╷
│ Error: Failed to download module
│ 
│ Could not download module "metaflow" (main.tf:21) source code from
│ "git::<https://github.com/outerbounds/terraform-aws-metaflow?ref=98bbc45a90e159abfdd53b7510c002545d45d02d>":
│ error downloading
│ '<https://github.com/outerbounds/terraform-aws-metaflow?ref=98bbc45a90e159abfdd53b7510c002545d45d02d>':
│ /usr/bin/git exited with 128: Cloning into '.terraform/modules/metaflow'...
│ fatal: Remote branch 98bbc45a90e159abfdd53b7510c002545d45d02d not found in
│ upstream origin
│ .
╵

╷
│ Error: Failed to download module
│ 
│ Could not download module "metaflow" (main.tf:21) source code from
│ "git::<https://github.com/outerbounds/terraform-aws-metaflow?ref=98bbc45a90e159abfdd53b7510c002545d45d02d>":
│ error downloading
│ '<https://github.com/outerbounds/terraform-aws-metaflow?ref=98bbc45a90e159abfdd53b7510c002545d45d02d>':
│ /usr/bin/git exited with 128: Cloning into '.terraform/modules/metaflow'...
│ fatal: Remote branch 98bbc45a90e159abfdd53b7510c002545d45d02d not found in
│ upstream origin
│ .
╵
n
is it persistent? its pretty weird, that revision definitely exists in the repo, its the second to last commit 🤔
f
yes, I am using
version = "0.10.1"
, still cannot generate plan in terraform
b
trying to reproduce this, some quick questions: • which version of Terraform are you running this with? • assuming from the "upgrading modules" in the log, were you bumping the metaflow stack version? what was the older version? • can you confirm if the current upstream for the module is pointing to the correct remote for Terraform?
Copy code
cd .terraform/modules/metaflow
git remote get-url origin
• are you able to manually checkout the commit that is failing, or is there some more descriptive error?
Copy code
git checkout 98bbc45a90e159abfdd53b7510c002545d45d02d