Open ikegentz opened 1 year ago
Yes, this kind of thing has been a source of great frustration with Terraform over the years. Unfortunately, the solution is a breaking change, changing the type of this and other optional variables to list
. As such, it will likely be quite some time before we get to it.
Describe the Bug
First-time
apply
,plan
, as well asdestroy
operations fail ifsaml_metadata_document
is set to something that isn't a hard-coded local file. It fails with the following error:Expected Behavior
You should be able to have
saml_metadata_document
refer to some other resource which creates that document.Steps to Reproduce
Create some resource that generates the
saml_metadata_document
(in our case for example, we create anokta_app_saml
resource, and setsaml_metadata_document
tookta_app_saml.example.metadata
.If
okta_app_saml
hasn't beenapply
'd prior to when youapply
the module (or when runningplan
, you'll get that error. You'll also get that error anytime you try to destroy the moduleScreenshots
No response
Environment
Module Version:
0.16.0
Terraform Version:1.5.0
Additional Context
No response