Problem with file path after terraform plan

Hello all,

I ask for help, because I do not understand where is the problem, I use an example from the documentation, but something is still wrong.

I have this code:
resource "genesyscloud_flow" "abwurf_ausfuehren" {
filepath = "Migration/test_abwurfAusfuehren_v27-0.yaml"
file_content_hash = filesha256("Migration/test_abwurfAusfuehren_v27-0.yaml")
}

But when I make terraform plan I received this error:

Error in function call

│ on migration.tf line 308, in resource "genesyscloud_flow" "abwurf_ausfuehren":
│ 308: file_content_hash = filesha256("Migration/test_abwurfAusfuehren_v27-0.yaml")
│ ├────────────────
│ │ while calling filesha256(path)

│ Call to function "filesha256" failed: open
│ Migration/test_abwurfAusfuehren_v27-0.yaml:
│ no such file or directory.

Operation failed: failed running terraform plan

Best regards
Mariia

Hi,

What versions of the genesyscloud provider and terraform are you using when you get this?

Regards,
Declan

Hi Declan,

Terraform is v1.6.5
genesyscloud provider is 1.26.0

BR
Mariia

Hey @mariiador

Looks it is a problem with your flow location. If you are using an absolute path, try adding "./" infront.

Thanks
Hemanth

hey @Hemanth,

it worked, thank you so much for advise

BR
Mariia

1 Like