aws / aws-tools-for-powershell

The AWS Tools for PowerShell lets developers and administrators manage their AWS services from the PowerShell scripting environment.
Apache License 2.0
238 stars 79 forks source link

Get-ELB2LoadBalancer returning "Pagination is not supported" when specifying Name parameter #13

Closed chris-peterson closed 5 years ago

chris-peterson commented 5 years ago

Latest version of AWSPowerShell.NetCore does not allow getting an ALB by name (Get-ELB2LoadBalancer -Name ...)

Expected Behavior Get load balancer object (or an error if the ALB does not exist)

NOTE: the latest version of aws cli works as expected: aws elbv2 describe-load-balancers --names 'my-alb-name'

Current Behavior This error is always returned: Pagination is not supported when specifying load balancers

I have tried tweaking other parameters like Marker, PageSize, but can't find a workaround.

Steps to Reproduce

PS> Get-ELB2LoadBalancer -Name 'my-alb-name'
Get-ELB2LoadBalancer : Pagination is not supported when specifying load balancers

Context This is a blocker for our deployments as we use ALBs to track state (enumerate currently running infrastructure, do a blue-green deployment, and then remove old resources)

NOTE: this worked in 3.3.485.0 (and earlier).

Your Environment

matteo-prosperi commented 5 years ago

Thank you for reporting this issue. It will be solved in the next release of the module.

matteo-prosperi commented 5 years ago

We release 3.3.509 today, this problem should be fixed. Please reopen the issue in case of any problem.

chris-peterson commented 5 years ago

Confirmed its fixed -- thanks for the quick resolution!