Skip to content

lambda_helper Lambda Is Not Able to Create - Requires VpcConfig #3826

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

Closed
hxrsmurf opened this issue Apr 28, 2023 · 4 comments · Fixed by #3828
Closed

lambda_helper Lambda Is Not Able to Create - Requires VpcConfig #3826

hxrsmurf opened this issue Apr 28, 2023 · 4 comments · Fixed by #3828
Labels
component: pipelines Relates to the SageMaker Pipeline Platform type: bug

Comments

@hxrsmurf
Copy link

Describe the bug
After #3594 was merged, creating a Lambda Step for SageMaker Pipeline does not work when no values are specified. For example, if I do not want to include any values for VpcConfig.

This error does not occur in 2.150.0

To reproduce

  function_name="My Function",
execution_role_arn=my_arn_here,
script="./myscript.py",
handler="myscript.lambda_handler",
session=sagemaker_sesion,
timeout=15
)

Expected behavior
Allow LambdaStep to be created

Screenshots or logs

Invalid type for parameter VpcConfig, value: None, type: <class 'NoneType'>, valid types: <class 'dict'>
Invalid type for parameter Environment, value: None, type: <class 'NoneType'>, valid types: <class 'dict'>
Invalid type for parameter Architectures, value: None, type: <class 'NoneType'>, valid types: <class 'list'>, <class 'tuple'>
Invalid type for parameter Layers, value: None, type: <class 'NoneType'>, valid types: <class 'list'>, <class 'tuple'>

System information
A description of your system. Please provide:

  • SageMaker Python SDK version: 2.151.0
  • Framework name (eg. PyTorch) or algorithm (eg. KMeans): N/A
  • Framework version: N/A
  • Python version: 3.10.11
  • CPU or GPU: CPU
  • Custom Docker image (Y/N): N

Additional context
N/A

@hxrsmurf
Copy link
Author

@dipanjank - Is there a way to catch NoneType for VpcConfig, Environment, Architectures, and Layers ?

@dipanjank
Copy link
Contributor

@dipanjank - Is there a way to catch NoneType for VpcConfig, Environment, Architectures, and Layers ?

Oops - will have a look.

@dipanjank
Copy link
Contributor

@hxrsmurf - can you please have a look at the referenced PR?

@hxrsmurf
Copy link
Author

@dipanjank - Thanks for the quick response . LGTM.

@qidewenwhen qidewenwhen added the component: pipelines Relates to the SageMaker Pipeline Platform label May 1, 2023
@knikure knikure linked a pull request May 1, 2023 that will close this issue
9 tasks
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: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants