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

Can I create lambda step from ecr image by using Lambda class in lambda_help.py? #4819

Open
yuhao-postnl opened this issue Aug 5, 2024 · 0 comments
Labels
component: pipelines Relates to the SageMaker Pipeline Platform type: feature request

Comments

@yuhao-postnl
Copy link

yuhao-postnl commented Aug 5, 2024

Describe the feature you'd like
Hey! As I read from the code in lambda_helper.py, I only see Lambda class wrapped creating lambda function from a script. Is there any reason it does not support creating function from ecr images?

How would this feature be used? Please describe.
should be a parameter that I can refer to the image uri:

Lambda(
        function_name="function_name",
        execution_role_arn=params["pipeline_steps_arn"],
        image="image_uri"
        handler=step_config["handler"],
        session=session,
        timeout=step_config["timeout"],
        memory_size=step_config["memory_size"],
        runtime=step_config["runtime"],
    )

Currently, I did in this way (from boto3 lambda client call):

response = lambda_client.create_function(
            FunctionName=function_name,
            Role=params["pipeline_steps_arn"],
            Code={"ImageUri": step_config["image_uri"]},
            PackageType="Image",
            Timeout=step_config["timeout"],
            MemorySize=step_config["memory_size"],
            Architectures=["x86_64"],
        )
        return Lambda(function_arn=response["FunctionArn"], session=session)
@aoguo64 aoguo64 added component: pipelines Relates to the SageMaker Pipeline Platform type: feature request labels Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pipelines Relates to the SageMaker Pipeline Platform type: feature request
Projects
None yet
Development

No branches or pull requests

2 participants