diff --git a/config/efs/config.go b/config/efs/config.go index ad9507e152..d866c8d066 100644 --- a/config/efs/config.go +++ b/config/efs/config.go @@ -1,6 +1,10 @@ package efs -import "github.com/upbound/upjet/pkg/config" +import ( + "github.com/upbound/upjet/pkg/config" + + "github.com/upbound/provider-aws/config/common" +) // Configure adds configurations for efs group. func Configure(p *config.Provider) { @@ -36,4 +40,11 @@ func Configure(p *config.Provider) { Type: "FileSystem", } }) + + p.AddResourceConfigurator("aws_efs_file_system", func(r *config.Resource) { + r.References["kms_key_id"] = config.Reference{ + Type: "github.com/upbound/provider-aws/apis/kms/v1beta1.Key", + Extractor: common.PathARNExtractor, + } + }) } diff --git a/config/kms/config.go b/config/kms/config.go index 77a8953fd4..60ce0e88af 100644 --- a/config/kms/config.go +++ b/config/kms/config.go @@ -33,13 +33,6 @@ func Configure(p *config.Provider) { } }) - p.AddResourceConfigurator("aws_efs_file_system", func(r *config.Resource) { - r.References["kms_key_id"] = config.Reference{ - Type: "github.com/upbound/provider-aws/apis/kms/v1beta1.Key", - Extractor: common.PathARNExtractor, - } - }) - p.AddResourceConfigurator("aws_kms_replica_key", func(r *config.Resource) { r.References["primary_key_arn"] = config.Reference{ Type: "Key",