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

[Gen 2] Support cross-region functions #3055

Open
2 tasks
ykethan opened this issue Nov 27, 2024 · 1 comment
Open
2 tasks

[Gen 2] Support cross-region functions #3055

ykethan opened this issue Nov 27, 2024 · 1 comment

Comments

@ykethan
Copy link
Member

ykethan commented Nov 27, 2024

Describe the feature you'd like to request

similar to gen 1: https://docs.amplify.aws/gen1/react/build-a-backend/graphqlapi/custom-business-logic/#calling-functions-in-different-regions
reference a existing function in gen 2 can be done using a.handler.function('<function-name>')
but cross region isnt supported

Describe the solution you'd like

a.handler.function('<function-name>', '<region>')

Describe alternatives you've considered

override backend.ts to addLambdaDataSource

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • ⚠️ This feature might incur a breaking change
@palpatim palpatim changed the title pass region as a 2nd property on a.handler.function [Gen 2] Support cross-region functions Nov 29, 2024
@JGamboa
Copy link

JGamboa commented Dec 12, 2024

Basically the idea is to have some of the functions on another regions because of latency.

On my case we have to connect to apis on different countries, this countries have low bandwitch to US, so creating the function on for example SA give us better performance, even when the appsync is on the US.

APP SYNC US -> LAMBDA US ->>> SA COUNTRY -->> LOW RESPONSE
APP SYNC US -> LAMBDA SA ->>> SA COUTRY ---> FAST RESPONSE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants