Closed kavalerov closed 2 years ago
While I file this as a bug, I am wondering if it actually the way it should be - when describing resource in Terraform there are no "optional" parameters - user needs to describe the infrastructure as it should be explicitly. @graham-russell wdyt?
Example of optional parameter in AWS provider: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#bucket
Yes, I think we should provide default values for params if they are undeclared in HCL. Good catch @kavalerov. I'll look into this one.
Similar thing is happening right now with the namespaces in #44 (related to #9 ) - I suggest we still fix this altogether as part of this ticket.
This was fixed in #86
➤ Automation for Jira commented:
The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3040
Summary
There are certain parameters on each resource (i.e.
tls_only
on theably_app
resource) that are optional (at least in the Control API itself) - if user doesn't provide a value for them, there is a default value. However, right now when trying to apply a configuration without such optional resources Terraform complains about inconsistent results.Expected result User can skip optional parameters in the terraform configuration.
Steps to reproduce
ably_app
resource without defining optional parameters:terraform plan
- should be successfulterraform apply
- terraform will complain about inconsistent state┆Issue is synchronized with this Jira Task by Unito