- Newest
- Most votes
- Most comments
The situation you're describing is unusual and suggests there might be some discrepancies between what you're seeing and the actual state of your AWS resources. Here are a few potential explanations and steps to troubleshoot:
-
Region Mismatch: Double-check that you're looking in the correct AWS region. The API Gateway might be deployed in a different region than the one you're querying.
-
Account Mismatch: Verify that you're using the correct AWS account. It's possible that the API was created in a different AWS account.
-
API Type: Ensure that you're using the correct API type. If it's an HTTP API instead of a REST API, you would need to use different CLI commands (apigatewayv2 instead of apigateway).
-
Permissions: Even though you're using an admin-level IAM user, double-check the exact permissions. The user might be missing specific permissions for API Gateway operations.
-
API Deletion: If the API was recently deleted, it might still be accessible for a short period but not show up in listings.
-
CloudFormation Stack: If the API was created as part of a CloudFormation stack, try checking the stack status and resources.
-
API Gateway Console: Try accessing the API through the AWS Management Console to see if it's visible there.
-
CloudWatch Logs: Check if there are any CloudWatch logs for the API Gateway, which might provide more insights.
-
Support Case: If none of the above helps, consider opening a support case with AWS. There might be an account-specific issue that requires their intervention.
As for the Lambda error, the explanation about an older version of the code running seems plausible. Check the Lambda function's version and alias settings to ensure you're invoking the correct version. Also, review the Lambda execution role to make sure it has the necessary permissions to interact with the API Gateway.
If the API truly exists and is being used, but you can't see or manage it, this could indicate a more serious issue with your account configuration or permissions. In this case, contacting AWS support would be the best course of action to resolve the discrepancy.
Sources
Cannot Remove APIs - Please remove all base path mappings related to the RestApi in your domains | AWS re:Post
AWS Gateway: API does not respond in Postman | AWS re:Post
API Gateway - Missing Authentication Token | AWS re:Post
Error Invoking Private REST API from Lambda Function | AWS re:Post
It is strange how you so often figure it out the moment after you post!
aws apigatewayv2 !
