- Newest
- Most votes
- Most comments
Hello,
From your query, I understand that you have made changes to your repository on code commit and when the code pipeline tries to run, you were observing the below message:
error message. raise error_class(parsed_response, operation_name) botocore.errorfactory.NotFoundException: An error occurred (NotFoundException) when calling the GetRestApi operation: Invalid API identifier specified
This kind of message generally occurs when you are using boto3 client for 'apigatewayv2' with REST API. Kindly note that REST API is not V2 API and you need to use boto3 client for 'apigateway' with REST API. API Gateway V2 is used to deploy and create websocket APIs, whereas Version 1 is used to deploy and create REST APIs.
A sample snippet will be something like this:
==========
import boto3
client = boto3.client('apigateway')
response = client.get_rest_api( restApiId='string' )
==========
