...
Navigate to the Services
Select Networking & Content Delivery from the left-hand pane
Now click on the API Gateway service option
...
Now select an API type, from the given options.
...
Now configure the detail and API endpoint type.
...
Now we create the method and deploy it.
...
We can use the Invoke URL to verify the deployment.
...
We have shifted 80% of the traffic on Blue deployment that is version 20, if we access the URL we will get the response generated from both Blue and Green deployment.
Response generated by Blue deployment:
...
Response generated by Green deployment:
...
Using the same API URL we are getting the response generated from two different, Lambda function version using the Alias.