From 3cd4bf49513fff1c5d47f0943442400cef8cb97d Mon Sep 17 00:00:00 2001 From: Hasan Turken Date: Mon, 7 Mar 2022 10:52:12 +0300 Subject: [PATCH] Fix sensitive path mapping Fixes #251 Signed-off-by: Hasan Turken (cherry picked from commit dbc7b90ec5835769ac8d8733e35e73abbf8b35e8) --- pkg/types/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/types/builder.go b/pkg/types/builder.go index 56509f7..0368fa0 100644 --- a/pkg/types/builder.go +++ b/pkg/types/builder.go @@ -119,7 +119,7 @@ func (g *Builder) buildResource(res *schema.Resource, cfg *config.Resource, tfPa // Terraform paths, e.g. { "lifecycle_rule", "*", "transition", "*", "days" } for https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#lifecycle_rule tfPaths := append(tfPath, fieldName.Snake) // Crossplane paths, e.g. {"lifecycleRule", "*", "transition", "*", "days"} - xpPaths := append(xpPath, fieldName.LowerCamel) + xpPaths := append(xpPath, fieldName.LowerCamelComputed) // Canonical paths, e.g. {"LifecycleRule", "Transition", "Days"} cnPaths := append(names[1:], fieldName.Camel)