Skip to content

Commit 5e25dda

Browse files
committed
Increasing the page size for GetClusterResources
1 parent 6f80269 commit 5e25dda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/aws/albrgt/rgt.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func (r *RGT) GetClusterResources() (*Resources, error) {
5959

6060
paramSet := []*resourcegroupstaggingapi.GetResourcesInput{
6161
{
62+
ResourcesPerPage: aws.Int64(50),
6263
ResourceTypeFilters: []*string{
6364
aws.String("ec2"),
6465
},
@@ -74,6 +75,7 @@ func (r *RGT) GetClusterResources() (*Resources, error) {
7475
},
7576
},
7677
{
78+
ResourcesPerPage: aws.Int64(50),
7779
ResourceTypeFilters: []*string{
7880
aws.String("ec2"),
7981
},
@@ -89,6 +91,7 @@ func (r *RGT) GetClusterResources() (*Resources, error) {
8991
},
9092
},
9193
{
94+
ResourcesPerPage: aws.Int64(50),
9295
ResourceTypeFilters: []*string{
9396
aws.String("elasticloadbalancing"),
9497
},
@@ -127,6 +130,7 @@ func (r *RGT) GetClusterResources() (*Resources, error) {
127130
if os.Getenv("ALB_SUPPORT_LEGACY_DEPLOYMENTS") != "" {
128131
// Legacy deployments may not have the proper tags, and RGT doesn't allow you to use wildcards on names
129132
err := r.GetResourcesPages(&resourcegroupstaggingapi.GetResourcesInput{
133+
ResourcesPerPage: aws.Int64(50),
130134
ResourceTypeFilters: []*string{
131135
aws.String("elasticloadbalancing"),
132136
},

0 commit comments

Comments
 (0)