-
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
Need example how to deploy a custom image #2457
Comments
Hey @cookiejest, from the CDK documentation the if you are looking to use a private repository, you could use methods such as fromECRImage to use the image as the Lambda code. |
Code.fromEcrImage seems to work. Now I am struggling to figure out how to assign environment variables to it, specifically the graphql API url as I see environment variables are not supported. Is there another way to do this? I also need to assign a specific handler within the image but it says I must assign Handler.FROM_IMAGE, |
Hi I have got this function, it seems environment variables might actually be passed? If so I think the docs are not correct. Can you confirm?
|
Hey @cookiejest, the provided code should be correct. As this is a custom function the AWS Lambda CDK construct provides the environment property to add your environment variables. And as the custom function is create on defineFunction the backend object on the
|
Environment information
Describe the bug
When bundling an image for a custom python error I get this:
Reproduction steps
Create a ecr image using python3.12. Then try and use it a lambda function inside amplify gen2.
The text was updated successfully, but these errors were encountered: