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

The runtime parameter of python3.7 is no longer supported #64

Open
clementrey-dev opened this issue Jun 20, 2024 · 5 comments
Open

The runtime parameter of python3.7 is no longer supported #64

clementrey-dev opened this issue Jun 20, 2024 · 5 comments
Assignees

Comments

@clementrey-dev
Copy link

Hello,

I am trying to use the project for Forwarding TCP ports over SSH tunnel.

I am trying to deploy the section IAM SSM Setup

While running the command:

cdk -a "$APP" deploy SSH-IAM-SSM-Stack \
  -c sagemaker_role="$SAGEMAKER_ROLE_ARN" \
  -c user_role="$USER_ROLE_ARN"

I am getting the following error L:

6:02:16 PM | CREATE_FAILED        | AWS::Lambda::Function   | TrustRelationshipLambdaTrigger562CEAC4
Resource handler returned message: "The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use
the new runtime (python3.12) while creating or updating functions. 

Is there a workaround to avoid this issue ?

Regards
Clement

@ivan-khvostishkov ivan-khvostishkov self-assigned this Jul 17, 2024
@ivan-khvostishkov
Copy link
Contributor

Hi, @clementrey-dev , thank you for pointing this out. It will be fixed in the new release, I'm working on it now.

@mfatihaktas
Copy link

Hi @ivan-khvostishkov, I also got blocked by this issue. Is there any update on the fix?
Is the only alternative the manual steps given here?

@mfatihaktas
Copy link

@ivan-khvostishkov I followed the manual steps given in the doc, but unfortunately it did not work for me as far as I could tell. I am not able to see the sagemaker instances on SSM console under Systems Manager/Fleet Manager/Managed nodes. I am also not able to see the instances with

➜ sm-ssh list
SageMaker SSH Helper v2.2.0
Listing SageMaker instances for sagemaker
  Region: us-west-2
  Type: all
  FQDN: sagemaker

Neither with

➜ aws sagemaker list-notebook-instances
{
    "NotebookInstances": []
}

Can you please confirm that the manual steps given in the doc are up-to-date and valid?

108krohan added a commit to 108krohan/sagemaker-ssh-helper that referenced this issue Aug 13, 2024
Note
---
Currently, the automated cdk cloud 9 setup breaks.
Reason being the python 3.7 runtime is no longer supported.
In addition, when updating the runtime,
the nodejs version complaint comes up.

Therefore, this commit updates the CDK to fix nodejs 12.x problem.
And the python runtimes to 3.9 to resolve the issue 64.

Also update the documentation to mention python3.
Reason being python not found error happens otherwise.

Related
---
- aws-samples#64

Testing
---
Tested on Cloud9 IDE. Both stack got deployed successfully.
Please see PR for full logs of the script run.
@108krohan
Copy link

Hi team, I produced a fix for the automated CDK + Cloud9 way. Request to please review once you have a chance to do so.

Thanks team,
Rohan

@108krohan
Copy link

Hi @ivan-khvostishkov can you please look into the PR please? it's been open for two weeks so gentle reminder.

ivan-khvostishkov added a commit that referenced this issue Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants