Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Deployment stuck as Lambda ERRORS #40

Open
tbugfinder opened this issue Nov 4, 2019 · 7 comments
Open

Deployment stuck as Lambda ERRORS #40

tbugfinder opened this issue Nov 4, 2019 · 7 comments

Comments

@tbugfinder
Copy link

Hello,
in my case the deployment is stuck as the lambda function has errors:

[ERROR] Runtime.ImportModuleError: Unable to import module 'transit_vpc_solution_helper/transit-vpc-solution-helper': No module named 'transit_vpc_solution_helper/transit-vpc-solution-helper'
@mobri2a
Copy link

mobri2a commented Nov 5, 2019

Hi tbugfinder. What release of the solution were you attempting to load?

@tbugfinder
Copy link
Author

Hi @mobri2a ,
I,ve cloned master thinking it's version v5.3.1.

@mobri2a
Copy link

mobri2a commented Nov 6, 2019

@tbugfinder What OS are you building on? What version of Python?

@tbugfinder
Copy link
Author

I'm running RHEL7.4 and installed a miniconda environment (python 3.7) specifically for that purpose.

@tbugfinder
Copy link
Author

I could upload the built files.

@mobri2a
Copy link

mobri2a commented Nov 8, 2019

I'm working on a solution where the module will be deployed as a packaged zip file. Differences between your build environment and the Lambda Python 3.7 run time are causing the problem, specifically with Paramiko. I have built it successfully on Amazon Linux latest HVM x86_64 AMI with Python 3.6.8 and run on Lambda Python3.6 runtime (it will not work with 3.7 when built on 3.6). You could try building as I did and updating the template for SolutionHelper to 3.6. You could also deploy from the AWS Solutions page. I apologize for the inconvenience and hope to have the fix available soon.

@tbugfinder
Copy link
Author

thank you very much for that information & work.
I'm curious why the build environment and Lambda environment are causing the problems. The built packages had pretty all python deps included?

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

No branches or pull requests

2 participants