aequitas / terraform-provider-transip

Terraform provider to manage Transip resources
https://registry.terraform.io/providers/aequitas/transip/latest/docs
MIT License
35 stars 16 forks source link

Bug: Timezone not found in Terraform run #55

Open baskraai opened 2 years ago

baskraai commented 2 years ago

Describe what is wrong

When trying to use the transip_domain data resource since yesterday evening I get the error: Error: failed to lookup domain "familiekraai.net": unknown time zone Europe/Amsterdam

Environment

Workaround

Manually specify the domain_id for the record resources

JoooostB commented 2 years ago

This seems to be related to https://github.com/transip/gotransip/issues/31, which implies that Terraform Cloud does not have proper tzdata. Could you try running it locally?

An easy workaround for the provider may be including the tzdata on build with -tags timetzdata until TransIP patches gotransip or Terraform Cloud starts using proper tzdata.

Or build it yourself by modifying line 52 in the Makefile and running make build:

...
    mkdir -p ${@D}; GOOS=$* go build -tags timetzdata -o $@
...
aequitas commented 2 years ago

I've added the flag to the release script and building now, binaries should be up in a few minutes: https://github.com/aequitas/terraform-provider-transip/commit/1a72a5c3bfaa4aab2f5c9b6b8bc16ee5897659a0

aequitas commented 2 years ago

https://github.com/aequitas/terraform-provider-transip/releases/tag/v0.1.16