question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow specifying --deploy-proxy-api-type when creating a proxy api

See original GitHub issue

Please use GitHub issues only to report bugs. To ask a general question or request assistance/support, please use the Claudia.js Gitter Chat instead.

To report a bug or a problem, please fill in the sections below. The more you provide, the better we’ll be able to help.


  • Expected behaviour: --deploy-proxy-api should have an associated option such as --deploy-proxy-api-type to specify whether the API Gateway should be regional or edge optimized.

  • What actually happens: Currently, any generated proxy api defaults to being edge optimized. In the case of users who are putting their own CloudFront distribution in front of their API Endpoint, edge optimized endpoints result in duplicate Cloudfront network hops (and charges) as edge optimized uses a Cloudfront distribution under the hood.

  • Link to a minimal, executable project that demonstrates the problem: Any claudia create call that specifies --deploy-proxy-api will reproduce this issue.

  • Steps to install the project: n/a

  • Steps to reproduce the problem: n/a

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gojkocommented, Sep 12, 2018

great. the change is most likely going to be here:

https://github.com/claudiajs/claudia/blob/387e4dd3eb0bb70ee80bad1d00a79ce98749cd5b/src/commands/create.js#L201

You can use the local options variable to check command line options, I guess something like --api-type would work. Please also add a test to prove the new feature to create-spec.js, and information about the new parameter here, as the documentation is automatically built from it https://github.com/claudiajs/claudia/blob/387e4dd3eb0bb70ee80bad1d00a79ce98749cd5b/src/commands/create.js#L411

0reactions
ryan-mahoneycommented, Sep 19, 2018

@gojko I’ll definitely pick this up eventually if no one else beats me to it. I need this functionality, but it’s not super urgent at the moment. Sorry for delay!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create and deploy a new API proxy | Apigee X - Google Cloud
1. Create a new API proxy using the hybrid UI · Proxy Name: Enter "myproxy". The remaining steps in this section assume that...
Read more >
Understanding APIs and API proxies | Apigee Edge
You expose APIs on Edge by building API proxies that act as managed 'facades' for backend services. This topic discusses the relationship ...
Read more >
Set up a proxy integration with a proxy resource - Amazon API ...
To set up a proxy integration in an API Gateway API with a proxy resource, you perform the following tasks: Create a proxy...
Read more >
Building an API proxy with Apigee - YouTube
Learn more about Apigee → https://goo.gle/3iomfiSSteps on how to create an API proxy → https://goo.gle/2UkN6CrAccessing your API proxies ...
Read more >
To Set Up and Deploy an API Proxy - MuleSoft Documentation
If you do not want to deploy the proxy to CloudHub, download the proxy for deployment to another server. In Anypoint Platform, click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found