No-Fork provider no longer applies terraform $$ escapes #1013
Labels
bug
Something isn't working
documentation
is:triaged
Indicates that an issue has been reviewed.
stale
What happened?
For resources where we fork a terraform CLI process to reconcile them, if there is a
${something}
in a string parameter, in order to prevent terraform from interpreting the value as a terraform variable, users needed to set the crossplanespec.forProvider
field to$${something}
. The correspondingstatus.atProvider
field would be${something}
. This always felt like a bug.This syntax is only used in a handful of use cases, to execute some sort of AWS-specific logic. The two I'm familiar with are an ssoadmin
InstanceAccessControlAttribute
(which I'm adding in #928) and an iotTopicRule
with a destination type of kafka, where it's used to extract credentials from secretsmanager. I bet there are more, too, but I didn't find any in the existing/examples
directory.Now for resources that aren't forking a terraform CLI, this behavior no longer applies, and resources with
$${something}
in thespec.forProvider
fields get an error from AWS because the doubled $ is now being passed through to AWS and that is not valid syntax.This is definitely an improvement, but it's a breaking behavior change that came as a surprise, and should be documented.
How can we reproduce it?
aab2f0d
I had to make this change to what was (in the fork version) a passing test in order to make it pass in the no-fork version.
The text was updated successfully, but these errors were encountered: