Skip to content

How to set runtime of node ? #854

@realtebo

Description

@realtebo

Description

I just deployed my first agent.
All is using node 22 on my project, but when deployed on aws, the lambda is setup on node 20.x, triggering a end-of-life alert on health dashboard

Acceptance Criteria

My agent core json is

{
  "name": "MyAgent",
  "version": 1,
  "managedBy": "CDK",
  "runtimes": [
    {
      "name": "MyAgent",
      "build": "Container",
      "entrypoint": "src/main.ts",
      "codeLocation": "app/my-agent-node/",
      "runtimeVersion": "NODE_22",
      "networkMode": "PUBLIC",
      "protocol": "HTTP"
    }
  ],
  "memories": [],
  "credentials": [],
  "evaluators": [],
  "onlineEvalConfigs": [],
  "agentCoreGateways": [],
  "policyEngines": []
}

Additional Context

I add relevant part of generated cloudformation template

"ApplicationAgentMyAgentContainerImageBuilderContainerBuildHandlerxxxxx": {
      "Type": "AWS::Lambda::Function",
      "Properties": {
        "Code": {
          "ZipFile": "....",
        "Handler": "index.handler",
        "MemorySize": 256,
        "Role": {....},
        "Runtime": "nodejs20.x",
        "Timeout": 900
      },
.....
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions