Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiGatewayToSqs: Is it possible to pass an existing API GW? #1153

Open
juaoose opened this issue Jul 18, 2024 · 1 comment
Open

ApiGatewayToSqs: Is it possible to pass an existing API GW? #1153

juaoose opened this issue Jul 18, 2024 · 1 comment
Labels
addressed Issue is addressed either through a release or further explanation Backlog We don't have the bandwidth to support this task right now, but will consider it in the future.

Comments

@juaoose
Copy link

juaoose commented Jul 18, 2024

This is a question:

Is it possible to provide an existing API GW to ApiGatewayToSqs, from looking at the code it looks like not? Would this be a potential feature?

@juaoose juaoose added bug Something isn't working needs-triage The issue or PR still needs to be triaged labels Jul 18, 2024
@biffgaut
Copy link
Contributor

Thanks for the suggestion.

It would be possible, but there would be challenges. Unlike some services like SQS, we use different code to create APIs based upon the context - for service integration we use the RestApi L2 construct, for Lambda integration we use the LambdaRestApi L2 construct, etc. Each construct then has significant code at the Construct level that configures resources and methods through code rather than declaratively through props.

If the apigateway-sqs construct were to receive a API created by the apigateway-lambda construct, there would be basic configuration issues that would likely cause issues. If the API were passed to a new instance of the aws-apigateway-sqs construct, then our resource names would collide.

So it's not impossible, but it would be difficult. We'll add it to our backlog to consider in the future.

In the meantime, integrating a API with 2 (or more) Lambda functions is possible with our recent aws-openapigateway-lambda construct.

@biffgaut biffgaut added Backlog We don't have the bandwidth to support this task right now, but will consider it in the future. addressed Issue is addressed either through a release or further explanation and removed bug Something isn't working needs-triage The issue or PR still needs to be triaged labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed Issue is addressed either through a release or further explanation Backlog We don't have the bandwidth to support this task right now, but will consider it in the future.
Projects
None yet
Development

No branches or pull requests

2 participants