-
Notifications
You must be signed in to change notification settings - Fork 74
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
Ability to add a custom domain to a lambda function in amplify gen2 #2420
Comments
Hey @cookiejest, wanted to better understand your case. Are you looking to create a new API such as AppSync/API gateway with Lambda function as data source and add a custom domain to the API? |
I want to do the equivilent of creating a lambda function and assigning a custom url to the lambda function that is separate from the amplify gen2 domain of the UI application. Ideally I also want to secure the lambda function using a unique api key per user that is seperate from the authorization of the amplify gen 2 app |
Hey @cookiejest, thank you for the information. AWS Lambda does provide a function URL that can be used to invoke a function but do note that this only provides AWS IAM as auth. For your use case I would suggest using an API such as REST API(API gateway) or GraphQL(AppSync) that provides these capabilities in using a API key auth and Lambda function as datasource. |
Ok, I can add the generated lambda function from amplify into a manually configured api gateway for production. Is the url ever likely to change in production during an amplify deploy? If so is there an example to configure it within amplify. Thanks, |
Hey @cookiejest, on a branch deploy Amplify will deploy a new Lambda function. |
Environment information
Describe the feature
Add a custom domain to an amplify gen2 custom function
Use case
Have a public API that has a separate domain and auth check
The text was updated successfully, but these errors were encountered: