How do I use Cloud Foundry to login to my AWS endpoint? - amazon-web-services

I am new to cloudfoundry. I have seen the examples of how we connect the cloudfoundry with ibm bmluemix but is it possible to do same way to aws. Like what API endpoint do I need to provide or I am missing here the something?
e.g. for blumix you do:
cf api https://api.ng.bluemix.net

Related

Does Cloud Endpoint and API Gateway (GCP) support Websocket?

I would like to ask everyone about the limitation of these services
Cloud Endpoint and API Gateway (Beta) on the Google Cloud Platform.
These services are support WebSocket protocol?
Because I can't find the docs official reference about it.
As I know the ESP is already suport WebSocket
https://github.com/cloudendpoints/esp/blob/master/start_esp/start_esp.py#L535
But I still confused. It's possible to write the rule/config on OpenAPI docs (swagger 2) ?
I try to find the apporach to do it. many people suggest to use another tools for make it such as asyncapi.
So the Cloud Endpoints and API Gateway (Beta) are support websocket protocol?
At the moment, Google Cloud Endpoints and API Gateway, both do not support Websockets.
The flag --enable_websocket seems to be deprecated and doesn't have any effect over Cloud Endpoints.
I have created a Feature Request in Google Public Issue Tracker for the support of Websockets in API Gateway. Please track the feature request for all the future updates regarding the support of Websockets.

Google Cloud (API GATEWAY) Custom Domain

I am currently building a rest api, for this I am using Google Cloud API Gateway and Google Cloud Run. I've been looking at all the google cloud documentation and researching elsewhere and I can't find how to add a custom domain to an API gateway instance. The funny thing is that there is more documentation for Google Cloud endpoints, I could find how to do it with endpoints but it does not apply to my use case.
I have 10 instances of google cloud run each one running a microservice respectively and I want to join everything in a single domain and add support with openapi, but I have failed in the attempt.
In any case, if someone has managed to customize the domain of an api gateway instance, I would appreciate if you could guide me, greetings.
For the beta release, custom domain names are not supported on GCP for API Gateway. Since it is still beta as of today, if you want to use a custom domain, you could use Cloud Endpoints in Cloud Run or you could even look into using Microservices in App Engine.

Is there a way to programmatically list deployed API's on AWS API Gateway?

I have several API's hosted on AWS that sit behind API Gateway. They are deployed with the serverless framework.
Is there away for me to programmatically query for and retrieve a list of all the API's that are deployed?
if your APIs are deployed as different stacks, you cannot use the serverless CLI command to list them.
but instead, You can use the AWS CLI command to list all the APIs powered by API gateway using the command below.
aws apigateway get-rest-apis
hope this helps
You may use AWS SDK getRestApis service (I linked Java SDK, but you may use any language of your choice)

Enable Dialogflow API on Google Cloud Project using Service Accounts

I'm trying to create new Agents in different projects using Service Accounts (I don't know any alternative to Service Accounts) but as I suspect because Service Accounts are specific to a project, I cannot enable the corresponding Dialogflow API using any kind of REST API or something alike. Any help is kindly appreciated.
Beside using the Cloud console, you can enable Cloud APIs using Cloud SDK and Service Usage API
Using Gcloud command:
gcloud services enable dialogflow.googleapis.com
Using RESTful API services.enable method:
POST https://serviceusage.googleapis.com/v1/projects/12345678901/services/dialogflow.googleapis.com:enable
The used service account requires serviceusage.services.enable that you can include in a custom role and assign it to the used service account.
The following is the link for the console method:
https://console.cloud.google.com/flows/enableapi?project=[YOUR_PROJECT]&apiid=dialogflow.googleapis.com

Building an API on Google Cloud Platform

I'm building an app and the idea is to go serverless.
I'm looking mainly at AWS and GCP (Google Cloud Platform), and as AWS costs are a bit obscure (at least for me), and there is no way to ensure not being billed, I'm going with GCP.
For the "server" part of the app, I would like to build an API on GCP as I could do with AWS API Gateway, but I couldn't find any matching product for that.
The closer one was Google Cloud Endpoint, but it seems to have a very different concept from AWS API Gateway. I've watched some videos about it (for example https://www.youtube.com/watch?v=bR9hEyZ9774), but still can't get the idea behind it or if it fits my needs.
Could someone please help clarify which GCP product would be suitable for creating an API and how it compares to AWS API Gateway?
Some link with info/example on how to do it would be really appreciated.
Google Product Manager here.
We don't have an exact analog for AWS API Gateway.
You're right about Cloud Endpoints. It's a bit of a different architecture than AWS uses -- it's a sidecar proxy that gets deployed with the backend. That's different than API Gateway, which is a fully managed proxy deployed in front of your backends.
If you are deploying in App Engine Flexible environments: good news! The Endpoints Proxy can be deployed as part of your deployment. It can do things similar to AWS API Gateway (API key validation, JWT validation, rate limiting).
We are working on some plans to allow for the proxy to be used in other places (Cloud Functions and the newer App Engine Standard runtimes).
And, finally: on our older App Engine Java and Python runtimes, we have API Frameworks that provide the same functionality. Those frameworks do the same thing as the proxy, but get expressed as code annotations and built into your app. We're moving away from the framework model in favor of the proxy model.
An example of springboot project with google cloud app engine can be found here-https://github.com/ashishkeshu/googlecloud-springboot