diff --git a/config/external_name.go b/config/external_name.go index 61616ec..81a7329 100644 --- a/config/external_name.go +++ b/config/external_name.go @@ -59,18 +59,18 @@ func FormattedIdentifierFromProvider(separator string, keys ...string) config.Ex var CLIReconciledExternalNameConfigs = map[string]config.ExternalName{ // Imported by using the id: sgr-02108b27edd666983 - "aws_vpc_security_group_egress_rule": vpcSecurityGroupRule(), + //"aws_vpc_security_group_egress_rule": vpcSecurityGroupRule(), // Imported by using the id: sgr-02108b27edd666983 - "aws_vpc_security_group_ingress_rule": vpcSecurityGroupRule(), + //"aws_vpc_security_group_ingress_rule": vpcSecurityGroupRule(), // AppConfig Environments can be imported by using the environment ID and application ID separated by a colon (:) // terraform-plugin-framework "aws_appconfig_environment": config.IdentifierFromProvider, // us-west-2_abc123/3ho4ek12345678909nh3fmhpko - "aws_cognito_user_pool_client": FormattedIdentifierFromProvider("", "name"), + //"aws_cognito_user_pool_client": FormattedIdentifierFromProvider("", "name"), // simpledb // // SimpleDB Domains can be imported using the name - "aws_simpledb_domain": config.NameAsIdentifier, + //"aws_simpledb_domain": config.NameAsIdentifier, } func vpcSecurityGroupRule() config.ExternalName { diff --git a/config/groups.go b/config/groups.go index 0c250bf..f85746b 100644 --- a/config/groups.go +++ b/config/groups.go @@ -7,7 +7,7 @@ import ( var KindMap = map[string]string{ "aws_security_group_rule": "SecurityGroupRule", "aws_vpc_peering_connection": "VPCPeeringConnection", - "aws_rote": "Route", + "aws_route": "Route", } // KindOverrides overrides the kind of the resources given in KindMap. diff --git a/config/provider.go b/config/provider.go index dbd4342..58c4550 100644 --- a/config/provider.go +++ b/config/provider.go @@ -36,7 +36,7 @@ var ( providerSchema string //go:embed provider-metadata.yaml - providerMetadata []byte + providerMetadata string ) // workaround for the TF AWS v4.67.0-based no-fork release: We would like to @@ -72,7 +72,7 @@ func GetProvider(ctx context.Context, generationProvider bool) (*ujconfig.Provid if err != nil { return nil, errors.Wrapf(err, "cannot get the Terraform provider schema with generation mode set to %t", generationProvider) } - pc := ujconfig.NewProvider([]byte(providerSchema), resourcePrefix, modulePath, (providerMetadata), + pc := ujconfig.NewProvider([]byte(providerSchema), resourcePrefix, modulePath, []byte(providerMetadata), ujconfig.WithIncludeList(CLIReconciledResourceList()), ujconfig.WithNoForkIncludeList(NoForkResourceList()), ujconfig.WithRootGroup("aws.kubedb.com"),