Open loeakaodas opened 1 month ago
The api_version
is not expected for fivetran_log
.
@fivetran-jovanmanojlovic yes, I am aware of that and would expect the provider throw an error during the plan
step instead of the apply
step. Because it actually creates the connector and throws an error
@loeakaodas Were you able to find a workaround? I am also not sure why this is an enhancement when this makes the connector useless.
@loeakaodas Were you able to find a workaround? I am also not sure why this is an enhancement when this makes the connector useless.
@rohitmsaxena No, I do not have a workaround.
For my use case I could probably validate the inputs before they get to the provider with the OpenAPI spec or just write custom code to call the APIs directly, but this would add an additional maintenance burden for my project. This has delayed a POC I've been working on for over a year (#219) and as a result it's been deprioritized.
Describe the bug When attempting to run a
terraform apply
the below error is produced. No issues flagged when runningterraform plan
.To Reproduce Below is the resource block that is causing the issue. The config in this case intentionally has an extra value
api_version
as I'm testing how this would work if these k/v are provided by users and aren't validated. Runningterraform apply
with the latest version and example config causes the error.Expected behavior I would expect that the connector config would be validated during the
plan
step and throw an errorLogs & Output Provide terraform CLI output on
plan
|apply
. If it is possible, please, refer to this guide to enable debug output.Attached logs of [partial]
plan
and fullapply
steps: tf_plan_log.txt tf_apply_log.txtPlugin version: Using the latest provider version of
1.3.2
Additional context I believe this is happening because the provider is patching the config fields here...possibly