aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
730 stars 198 forks source link

Bug: Error: The runtime 'provided.al2023' is unsupported. (golang) #4567

Closed aallbrig closed 3 weeks ago

aallbrig commented 3 weeks ago

Description:

I'm seeing "Error: The runtime 'provided.al2023' is unsupported." when trying to run my golang lambda function in Intellij IDEA.

Screenshot 2024-06-06 at 9 34 57 AM

I made sure I have the latest AWS toolkit plugin and am on the latest version of SAM.

Screenshot 2024-06-06 at 9 33 21 AM Screenshot 2024-06-06 at 9 31 39 AM

Just trying to get debug breakpoints hitting from my lambda function on my M2 macbook pro. I realize being on ARM may be why I was having previous issues: https://github.com/aws/aws-sam-cli/issues/5412

Steps to reproduce:

Screenshot 2024-06-06 at 9 30 51 AM

Followed from https://aws.amazon.com/blogs/compute/migrating-aws-lambda-functions-from-the-go1-x-runtime-to-the-custom-runtime-on-amazon-linux-2/

Observed result:

Screenshot 2024-06-06 at 9 34 57 AM

Expected result:

Able to debug my golang based lambda function via jetbrains IDEA on my M2 macbook pro

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

{
  "version": "1.118.0",
  "system": {
    "python": "3.8.13",
    "os": "macOS-13.6-arm64-arm-64bit"
  },
  "additional_dependencies": {
    "docker_engine": "26.1.1",
    "aws_cdk": "Not available",
    "terraform": "1.5.7"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

Originally opened here: https://github.com/aws/aws-sam-cli/issues/7139

aallbrig commented 3 weeks ago

This isn't important. Closing this issue.