mariiador | 2024-05-03 12:56:35 UTC | #1
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 "genesyscloudflow" "abwurfausfuehren" { filepath = "Migration/testabwurfAusfuehrenv27-0.yaml" filecontenthash = filesha256("Migration/testabwurfAusfuehrenv27-0.yaml") }
But when I make terraform plan I received this error:
Error in function call │ │ on migration.tf line 308, in resource "genesyscloudflow" "abwurfausfuehren": │ 308: filecontenthash = filesha256("Migration/testabwurfAusfuehrenv27-0.yaml") │ ├──────────────── │ │ while calling filesha256(path) │ │ Call to function "filesha256" failed: open │ Migration/testabwurfAusfuehrenv27-0.yaml: │ no such file or directory. ╵ Operation failed: failed running terraform plan
Best regards Mariia
Declan_ginty | 2024-05-03 12:06:06 UTC | #2
Hi,
What versions of the genesyscloud provider and terraform are you using when you get this?
Regards, Declan
mariiador | 2024-05-03 12:53:02 UTC | #3
Hi Declan,
Terraform is v1.6.5 genesyscloud provider is 1.26.0
BR Mariia
Hemanth | 2024-05-03 12:55:38 UTC | #4
Hey @mariiador
Looks it is a problem with your flow location. If you are using an absolute path, try adding "./" infront.
Thanks Hemanth
mariiador | 2024-05-03 13:33:39 UTC | #6
hey @Hemanth,
it worked, thank you so much for advise
BR Mariia
system | 2024-06-02 13:33:42 UTC | #7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 26067