Skip to content

Commit

Permalink
simplify reference types
Browse files Browse the repository at this point in the history
Signed-off-by: Tung Huynh <[email protected]>
  • Loading branch information
huynhsontung committed Oct 10, 2023
1 parent 4e732de commit 22f28a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config/ec2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,26 +220,26 @@ func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_vpc_security_group_ingress_rule", func(r *config.Resource) {
r.Kind = "SecurityGroupIngressRule"
r.References["security_group_id"] = config.Reference{
Type: "github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup",
Type: "SecurityGroup",
}
r.References["referenced_security_group_id"] = config.Reference{
Type: "github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup",
Type: "SecurityGroup",
}
r.References["prefix_list_id"] = config.Reference{
Type: "github.com/upbound/provider-aws/apis/ec2/v1beta1.ManagedPrefixList",
Type: "ManagedPrefixList",
}
})

p.AddResourceConfigurator("aws_vpc_security_group_egress_rule", func(r *config.Resource) {
r.Kind = "SecurityGroupEgressRule"
r.References["security_group_id"] = config.Reference{
Type: "github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup",
Type: "SecurityGroup",
}
r.References["referenced_security_group_id"] = config.Reference{
Type: "github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup",
Type: "SecurityGroup",
}
r.References["prefix_list_id"] = config.Reference{
Type: "github.com/upbound/provider-aws/apis/ec2/v1beta1.ManagedPrefixList",
Type: "ManagedPrefixList",
}
})

Expand Down

0 comments on commit 22f28a9

Please sign in to comment.