Skip to content

Commit

Permalink
Remove some Cli reconcile
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 22, 2023
1 parent 5928a32 commit af46250
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions config/external_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion config/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit af46250

Please sign in to comment.