-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in get-apis command #8009
Comments
Hi @acuas, thanks for reaching out. Could you tell me the API type (HTTP, WebSocket, REST) of the resource that's throwing that error? I suspect this is an issue related to opt-in regions like eu-south-2 not supporting all API types. |
Hello @RyanFitzSimmonsAK, I opted in for that region. However, I don't have any resources created there, so I was expecting an empty array, similar to this one from the CLI: {
"Items": []
} I suspect there might be a region-specific error for eu-south-2. When I tried with another opt-in region, eu-south-1, the response was as I expected, similar to the one above. If it helps in any way, I have just observed that in the web console for eu-south-2, only the REST API types are displayed. I have attached a screenshot below: |
I investigated a little further. The error message from the CLI misled me into thinking that it was an error caused by the client: An error occurred (BadRequestException) when calling the GetApis operation: {"message": "1 validation error detected: Value \'arn:aws:lambda:eu-south-2:359345898052:function:\' at \'functionName\' failed to satisfy constraint: Member must satisfy regular expression pattern: (arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?"} The actual issue is that the API Gateway V2 is not available in the "eu-south-2" region. Therefore, it's not a bug, and the issue can be closed. However, it is worth considering adding a more informative error response. |
|
Describe the bug
I encountered an error while using the get-apis command in the AWS CLI. The command was executed with the following arguments:
I encountered the error specifically in the eu-south-2 region. However, when I switched to the eu-west-1 region, everything worked fine.
Expected Behavior
I expected the get-apis command to retrieve the APIs from the specified region without any errors.
Current Behavior
I received a validation error related to the functionName parameter, which seems to be failing the regular expression pattern check. However, I didn't provide any functionName parameter in the command.
Reproduction Steps
Execute the command
aws apigatewayv2 get-apis --region=eu-south-2 --debug
.Possible Solution
No response
Additional Information/Context
The same thing is happening for get-domain-names and for get-vpc-links command:
CLI version used
2.12.3.
Environment details (OS name and version, etc.)
macOS Ventura, Version 13.4.1
The text was updated successfully, but these errors were encountered: