Run Code with AWS Bedrock Code Interpreter
Execute Python code in a secure AWS Bedrock AgentCore Code Interpreter sandbox
Required inputs
| Key | Label | Type |
|---|---|---|
authentication.accessKey | Access key | secret |
authentication.secretKey | Secret key | secret |
configuration.region | Region | FEEL expression |
input.code | Code | FEEL expression |
Optional inputs
| Key | Label | Type |
|---|---|---|
awsCredential | AWS credential | secret |
authentication.type | Authentication | string |
regionOverride | Region | FEEL expression |
input.language | Language | string |
input.codeInterpreterIdentifier | Code Interpreter ID | FEEL expression |
input.sessionTimeout | Session timeout | FEEL expression |
input.maxFiles | Max files to retrieve | string |
input.maxTotalFileSize | Max total file size | string |
resultVariable | Result variable | string |
resultExpression | Result expression | FEEL expression |
errorExpression | Error expression | FEEL expression |
retryCount | Retries | FEEL expression |
retryBackoff | Retry backoff | string |
jobTimeout | Job timeout | string |
Apply this connector with @bpmnkit/connectors
import { applyConnectorTemplate } from "@bpmnkit/connectors"
const result = applyConnectorTemplate("io.camunda.connectors.aws.bedrock.codeinterpreter.v1", {
"authentication.accessKey": "<your access key>",
"authentication.secretKey": "<your secret key>",
"configuration.region": "= ...",
"input.code": "= ...",
"awsCredential": "<your aws credential>",
"authentication.type": "defaultCredentialsChain",
})