Skip to content

Commit

Permalink
Fix iam/role sync issue
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman committed Nov 27, 2023
1 parent 7e59a4e commit 34542fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/crossplane/upjet/pkg/types/name"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/pkg/errors"
"kubedb.dev/provider-aws/config/common"
"strings"
)

Expand Down Expand Up @@ -213,7 +214,11 @@ func KnownReferencers() config.ResourceOption { //nolint:gocyclo
continue
}
switch {

case strings.HasSuffix(k, "role_arn"):
r.References[k] = config.Reference{
Type: "kubedb.dev/provider-aws/apis/iam/v1beta1.Role",
Extractor: common.PathARNExtractor,
}
case strings.HasSuffix(k, "security_group_ids"):
r.References[k] = config.Reference{
Type: "kubedb.dev/provider-aws/apis/ec2/v1alpha1.SecurityGroup",
Expand Down

0 comments on commit 34542fe

Please sign in to comment.