Guide · Amazon Bedrock · Model Customization

Amazon Bedrock Fine-Tuning for MCP Servers — CreateModelCustomizationJob, Training Data, and Hyperparameters

Amazon Bedrock fine-tuning lets you train a custom model on your own labeled data, so domain-specific MCP server tools — entity extraction on proprietary schemas, classification over internal taxonomies, structured output from legacy documents — work reliably without prompt-engineering workarounds. The entry point is CreateModelCustomizationJobCommand from @aws-sdk/client-bedrock. You supply a base model (Titan Text Lite, Titan Text Express, or Cohere Command), a JSONL training file in S3, an IAM role that lets Bedrock read that bucket, and a set of hyperparameters. Bedrock runs the training job asynchronously; you poll GetModelCustomizationJobCommand until status reaches Completed. The resulting custom model is then usable with InvokeModelCommand after you purchase provisioned throughput for it. This guide covers the full lifecycle: IAM setup, training data format, job creation, polling, model listing, and the production gotchas that trip teams up on first deployment. For serving the model at scale, see Provisioned Throughput. For evaluating model quality after fine-tuning, see Model Evaluation.

TL;DR

Use @aws-sdk/client-bedrock (management plane) to create and monitor customization jobs. Put training data in S3 as JSONL ({"prompt": "...", "completion": "..."} per line for FINE_TUNING; {"input": "..."} for CONTINUED_PRE_TRAINING). Minimum 32 labeled examples — use 100+ for meaningful improvement. After the job completes, the custom model is not directly invocable: you must purchase provisioned throughput before serving live traffic.

Why fine-tune for MCP servers

General-purpose foundation models are optimized for breadth. When an MCP server needs to perform a narrow, repeated task — extracting medication names from clinical notes, mapping user utterances to a 50-category support taxonomy, converting legacy EDI records to JSON — a general model requires elaborate few-shot prompting, chain-of-thought scaffolding, and careful output parsing to reach acceptable accuracy. That scaffolding adds tokens, latency, and cost to every tool call.

Fine-tuning collapses that scaffolding into the model weights. After training on 500 labeled examples of your specific task, a smaller fine-tuned Titan Text Lite can outperform a much larger general model on that task while consuming far fewer tokens per request. The economics shift significantly: if an MCP tool is called 10,000 times a day, reducing token usage by 60% and switching from a large on-demand model to a smaller provisioned custom model can reduce inference cost by an order of magnitude.

Latency improves for the same reason: smaller models with no few-shot examples in the prompt generate responses faster. For MCP tools where the calling agent is waiting synchronously, the difference between 800ms and 200ms first-token latency is perceptible.

Fine-tuning also solves the private-data alignment problem. General models have never seen your internal product catalog, proprietary ontology, or company-specific abbreviations. Rather than stuffing this context into every prompt (expensive, fragile, context-window-limited), you train it into the model once. The model learns the vocabulary, structure, and reasoning patterns that are specific to your domain.

Package and client setup

All model customization operations — creating jobs, checking status, listing custom models — are management plane operations. Use @aws-sdk/client-bedrock and BedrockClient, not the runtime package:

import {
  BedrockClient,
  CreateModelCustomizationJobCommand,
  GetModelCustomizationJobCommand,
  ListModelCustomizationJobsCommand,
  ListCustomModelsCommand,
  GetCustomModelCommand,
} from "@aws-sdk/client-bedrock";

// Management plane — customization job CRUD and model listing
const bedrockMgmt = new BedrockClient({ region: "us-east-1" });

// Runtime plane — invoking the custom model after provisioned throughput is set up
import { BedrockRuntimeClient, InvokeModelCommand } from "@aws-sdk/client-bedrock-runtime";
const bedrockRuntime = new BedrockRuntimeClient({ region: "us-east-1" });

Required IAM permissions

The identity running your MCP server or CI pipeline needs the following IAM permissions. Customization jobs are long-running async operations, so the management permissions (create, get, list) need to be on the IAM role used by the process that kicks off and monitors the job:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "BedrockCustomizationManagement",
      "Effect": "Allow",
      "Action": [
        "bedrock:CreateModelCustomizationJob",
        "bedrock:GetModelCustomizationJob",
        "bedrock:ListModelCustomizationJobs",
        "bedrock:ListCustomModels",
        "bedrock:GetCustomModel",
        "bedrock:StopModelCustomizationJob"
      ],
      "Resource": "*"
    },
    {
      "Sid": "TrainingBucketRead",
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:ListBucket"
      ],
      "Resource": [
        "arn:aws:s3:::my-training-bucket",
        "arn:aws:s3:::my-training-bucket/*"
      ]
    },
    {
      "Sid": "OutputBucketWrite",
      "Effect": "Allow",
      "Action": [
        "s3:PutObject",
        "s3:GetObject",
        "s3:ListBucket"
      ],
      "Resource": [
        "arn:aws:s3:::my-output-bucket",
        "arn:aws:s3:::my-output-bucket/*"
      ]
    }
  ]
}

Note that s3:ListBucket is required on the bucket root (not just on the prefix) for both the training and output buckets. Bedrock validates that training data exists before starting the job, and this validation uses ListBucket. Omitting it causes a confusing AccessDeniedException that looks like a permissions error on the training file itself.

Bedrock service role

Separately, you must create a Bedrock service role — an IAM role that Bedrock itself assumes during the training job to read from your S3 training bucket and write to the output bucket. This is different from the caller's role above. The trust policy must allow Bedrock to assume it:

// Trust policy for the Bedrock service role
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "Service": "bedrock.amazonaws.com"
      },
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": {
          "aws:SourceAccount": "123456789012"
        },
        "ArnLike": {
          "aws:SourceArn": "arn:aws:bedrock:us-east-1:123456789012:model-customization-job/*"
        }
      }
    }
  ]
}

// Permission policy attached to the Bedrock service role
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:GetObject", "s3:ListBucket"],
      "Resource": [
        "arn:aws:s3:::my-training-bucket",
        "arn:aws:s3:::my-training-bucket/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": ["s3:PutObject"],
      "Resource": "arn:aws:s3:::my-output-bucket/*"
    }
  ]
}

Pass the ARN of this service role as roleArn in CreateModelCustomizationJobCommand. If the role is missing or its trust policy does not list bedrock.amazonaws.com, the job will fail immediately with a permissions error before any training begins.

Training data format

Bedrock expects training data as a JSONL file uploaded to S3 — one JSON object per line, no trailing commas, UTF-8 encoded. The schema differs between FINE_TUNING and CONTINUED_PRE_TRAINING customization types.

FINE_TUNING format

For supervised fine-tuning on labeled input-output pairs, each line must have prompt and completion keys:

{"prompt": "Extract all product SKUs from the following order note: 'Please ship items A-100, B-220, and C-005 by Friday.'", "completion": "A-100, B-220, C-005"}
{"prompt": "Extract all product SKUs from the following order note: 'Reorder X-99 and Y-14 — both are out of stock.'", "completion": "X-99, Y-14"}
{"prompt": "Extract all product SKUs from the following order note: 'Nothing specific, just a general inquiry about pricing.'", "completion": ""}
{"prompt": "Classify the following support ticket as BILLING, TECHNICAL, or GENERAL: 'My invoice shows a charge I did not authorize.'", "completion": "BILLING"}
{"prompt": "Classify the following support ticket as BILLING, TECHNICAL, or GENERAL: 'The API is returning 503 errors intermittently.'", "completion": "TECHNICAL"}

Keep prompt content realistic and representative of what the MCP tool will receive at runtime. The completion should be exactly the output you want the model to produce — no extra explanation, no preamble. If your tool returns JSON, train with JSON completions. If it returns a bare string, train with bare string completions.

CONTINUED_PRE_TRAINING format

For domain adaptation without labeled pairs — teaching the model your internal vocabulary, product names, or document conventions — use CONTINUED_PRE_TRAINING. Each line has only an input key with a chunk of unlabeled domain text:

{"input": "AliveMCP monitors MCP server endpoints by sending periodic health check requests and recording response latency, status codes, and error payloads. Alerts are dispatched via webhook when uptime drops below the configured threshold."}
{"input": "The MCP protocol defines a JSON-RPC 2.0 transport layer. Tools are exposed via the tools/list method and invoked via tools/call. Each tool has a name, description, and inputSchema conforming to JSON Schema draft-07."}
{"input": "Provisioned throughput in Amazon Bedrock is sold in model units (MUs). One MU provides a fixed amount of token throughput per minute. Custom models require at least one MU before they can serve inference requests."}

Text chunks should be 100–2000 tokens long. Very short chunks (under 20 tokens) contribute little signal. Very long chunks may be truncated by the model's context window during training.

Validation split

Provide a separate validation file via validationDataConfig to get loss metrics after each epoch. The validation set should be held out — examples the model has not trained on — and representative of the full distribution. A 90/10 or 80/20 train/validation split is typical:

// Training file: s3://my-training-bucket/data/train.jsonl  (450 examples)
// Validation file: s3://my-training-bucket/data/validation.jsonl  (50 examples)

const jobInput = {
  trainingDataConfig: {
    s3Uri: "s3://my-training-bucket/data/train.jsonl",
  },
  validationDataConfig: {
    validators: [
      { s3Uri: "s3://my-training-bucket/data/validation.jsonl" },
    ],
  },
  // ... rest of job config
};

When a validation set is provided, the job's trainingMetrics will include validationLoss in addition to trainingLoss. If validation loss stops decreasing while training loss keeps falling, the model is overfitting — reduce epochCount or add more training variety.

Dataset size requirements

The technical minimum for Bedrock fine-tuning is 32 labeled examples. In practice:

Quality matters more than quantity. 200 clean, well-labeled examples consistently outperforms 1000 noisy ones.

CreateModelCustomizationJobCommand

The following example creates a fine-tuning job with explicit hyperparameters and a validation split:

import {
  BedrockClient,
  CreateModelCustomizationJobCommand,
  type CreateModelCustomizationJobCommandInput,
} from "@aws-sdk/client-bedrock";

const client = new BedrockClient({ region: "us-east-1" });

// Use a timestamp-based suffix to ensure jobName uniqueness per account/region
const jobSuffix = new Date().toISOString().replace(/[:.]/g, "-").slice(0, 19);

const input: CreateModelCustomizationJobCommandInput = {
  jobName: `mcp-sku-extractor-ft-${jobSuffix}`,   // must be unique per account+region
  customModelName: "mcp-sku-extractor-v1",          // name for the resulting model
  baseModelIdentifier: "amazon.titan-text-lite-v1", // must support fine-tuning

  customizationType: "FINE_TUNING",   // or "CONTINUED_PRE_TRAINING"

  trainingDataConfig: {
    s3Uri: "s3://my-training-bucket/data/train.jsonl",
  },

  validationDataConfig: {
    validators: [
      { s3Uri: "s3://my-training-bucket/data/validation.jsonl" },
    ],
  },

  outputDataConfig: {
    // Must be in the same region as the customization job
    s3Uri: "s3://my-output-bucket/fine-tuning-output/",
  },

  roleArn: "arn:aws:iam::123456789012:role/BedrockFineTuningServiceRole",

  hyperParameters: {
    epochCount: "3",             // number of full passes over the training data
    batchSize: "8",              // examples per gradient update
    learningRate: "0.00001",     // step size; lower = more conservative
    learningRateWarmupSteps: "0", // steps before full learning rate is reached
  },

  customModelTags: [
    { key: "project", value: "alivemcp" },
    { key: "task", value: "sku-extraction" },
    { key: "version", value: "1" },
  ],
};

const response = await client.send(new CreateModelCustomizationJobCommand(input));

const jobArn = response.jobArn!;
// e.g. "arn:aws:bedrock:us-east-1:123456789012:model-customization-job/abc123def456"

console.log(`Fine-tuning job started: ${jobArn}`);
// Store jobArn — you need it to poll status and retrieve training metrics

Hyperparameter reference

ParameterTypeTypical rangeNotes
epochCountstring (integer)"1"–"5"How many full passes over training data. More epochs risk overfitting on small datasets. Start with 3.
batchSizestring (integer)"1"–"64"Examples per gradient step. Larger batches train faster but require more memory. Bedrock manages GPU allocation — use 8 or 16 for most tasks.
learningRatestring (float)"0.000001"–"0.0001"Step size for weight updates. Too high causes divergence; too low causes underfitting. Default is model-dependent — 0.00001 is a safe starting point for Titan Text.
learningRateWarmupStepsstring (integer)"0"–"100"Gradually ramps the learning rate from 0 to the target value over this many steps. Useful for small datasets where the first few steps are noisy. Use 0 for most cases.

All hyperparameter values are passed as strings, even though they represent numbers. This is an AWS API convention for customization jobs — passing a number type instead of a string will cause a TypeScript type error or a silent serialization mismatch at runtime.

Supported base models

Not all Bedrock foundation models support fine-tuning. As of late 2026, fine-tuning is supported for:

Claude models (Anthropic) do not support fine-tuning through the Bedrock customization API. If you need a Claude model fine-tuned for a specific task, the typical approach is to use Bedrock Agents with a custom orchestration prompt, or to use Bedrock Prompt Management to centralize and version task-specific prompts. Available fine-tuning models also vary by region — a model available for fine-tuning in us-east-1 may not be available in ap-southeast-2. Check the Bedrock console in your target region before building automation around a specific base model identifier.

Monitoring job status

GetModelCustomizationJobCommand returns the current state of a customization job. The status field cycles through: InProgress → Completed (or Failed). Jobs can also reach Stopping → Stopped if cancelled manually.

Single status check

import {
  BedrockClient,
  GetModelCustomizationJobCommand,
} from "@aws-sdk/client-bedrock";

const client = new BedrockClient({ region: "us-east-1" });

const job = await client.send(new GetModelCustomizationJobCommand({
  jobIdentifier: "arn:aws:bedrock:us-east-1:123456789012:model-customization-job/abc123def456",
  // jobIdentifier accepts either the job ARN or the jobName
}));

console.log("Status:", job.status);
// "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped"

console.log("Base model:", job.baseModelArn);
console.log("Custom model ARN:", job.outputModelArn); // set once Completed
console.log("Failure message:", job.failureMessage);  // set if Failed

if (job.trainingMetrics) {
  console.log("Training loss:", job.trainingMetrics.trainingLoss);
}
if (job.validationMetrics) {
  for (const m of job.validationMetrics) {
    console.log("Validation loss:", m.validationLoss);
  }
}

Polling loop with exponential backoff

Fine-tuning jobs run for minutes to hours depending on dataset size and epoch count. Poll with exponential backoff rather than a fixed interval to avoid hammering the management plane API unnecessarily:

import {
  BedrockClient,
  GetModelCustomizationJobCommand,
} from "@aws-sdk/client-bedrock";

type JobStatus = "InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped";

async function waitForCustomizationJob(
  client: BedrockClient,
  jobArn: string,
  options: { maxWaitMs?: number; initialDelayMs?: number } = {},
): Promise<{ status: JobStatus; outputModelArn?: string; failureMessage?: string }> {
  const { maxWaitMs = 4 * 60 * 60 * 1000, initialDelayMs = 30_000 } = options;
  const terminal: JobStatus[] = ["Completed", "Failed", "Stopped"];
  const deadline = Date.now() + maxWaitMs;

  let delayMs = initialDelayMs;

  while (Date.now() < deadline) {
    const job = await client.send(new GetModelCustomizationJobCommand({
      jobIdentifier: jobArn,
    }));

    const status = job.status as JobStatus;
    console.log(`[${new Date().toISOString()}] Job status: ${status}`);

    if (terminal.includes(status)) {
      return {
        status,
        outputModelArn: job.outputModelArn,
        failureMessage: job.failureMessage,
      };
    }

    // Exponential backoff: 30s, 60s, 120s, 240s, cap at 300s
    await new Promise(resolve => setTimeout(resolve, delayMs));
    delayMs = Math.min(delayMs * 2, 300_000);
  }

  throw new Error(`Customization job timed out after ${maxWaitMs / 1000}s: ${jobArn}`);
}

// Usage
const result = await waitForCustomizationJob(client, jobArn);

if (result.status === "Completed") {
  console.log("Custom model ARN:", result.outputModelArn);
  // Store outputModelArn — needed for provisioned throughput setup
} else {
  console.error("Job failed:", result.failureMessage);
  process.exit(1);
}

The initial delay of 30 seconds is intentional — small jobs may complete in a few minutes, but starting to poll immediately wastes API calls and returns InProgress for many iterations. For jobs with more than 1000 training examples, the first meaningful check can safely be delayed 5–10 minutes.

Listing and using custom models

Once a job reaches Completed, the custom model is registered in your account and appears in ListCustomModelsCommand. The model ARN from outputModelArn is the identifier you use for provisioned throughput setup and later for InvokeModelCommand:

import {
  BedrockClient,
  ListCustomModelsCommand,
  GetCustomModelCommand,
} from "@aws-sdk/client-bedrock";

const client = new BedrockClient({ region: "us-east-1" });

// List all custom models in account+region
const models = await client.send(new ListCustomModelsCommand({}));

for (const m of models.modelSummaries ?? []) {
  console.log("Model ARN:", m.modelArn);
  console.log("  Name:", m.modelName);
  console.log("  Base model:", m.baseModelArn);
  console.log("  Created:", m.creationTime);
}

// Paginate if needed
let nextToken = models.nextToken;
while (nextToken) {
  const page = await client.send(new ListCustomModelsCommand({ nextToken }));
  for (const m of page.modelSummaries ?? []) {
    console.log(m.modelArn, m.modelName);
  }
  nextToken = page.nextToken;
}

// Get details for a specific custom model
const model = await client.send(new GetCustomModelCommand({
  modelIdentifier: "arn:aws:bedrock:us-east-1:123456789012:custom-model/mcp-sku-extractor-v1",
}));

console.log("Job ARN:", model.jobArn);
console.log("Training metrics:", model.trainingMetrics);
console.log("Hyperparameters used:", model.hyperParameters);

// The custom model ARN is the input to CreateProvisionedModelThroughput
// (see /seo/mcp-server-bedrock-provisioned-throughput for the full setup)
const customModelArn = model.modelArn;

Invoking the custom model

After provisioned throughput is set up, invoke the custom model using the provisioned throughput ARN — not the custom model ARN directly. The provisioned ARN is what allows live traffic. The custom model ARN alone will return a ValidationException from InvokeModelCommand:

import { BedrockRuntimeClient, InvokeModelCommand } from "@aws-sdk/client-bedrock-runtime";

const runtime = new BedrockRuntimeClient({ region: "us-east-1" });

// provisionedModelArn comes from CreateProvisionedModelThroughput output
// format: arn:aws:bedrock:us-east-1:123456789012:provisioned-model/XXXXX
const provisionedModelArn = process.env.PROVISIONED_MODEL_ARN!;

const response = await runtime.send(new InvokeModelCommand({
  modelId: provisionedModelArn,  // use provisioned ARN, not custom model ARN
  contentType: "application/json",
  accept: "application/json",
  body: JSON.stringify({
    inputText: "Extract all product SKUs from: 'Please ship A-100 and B-220 by Friday.'",
    textGenerationConfig: {
      maxTokenCount: 128,
      temperature: 0.0,
      topP: 1.0,
    },
  }),
}));

const body = JSON.parse(new TextDecoder().decode(response.body));
console.log("Output:", body.results[0].outputText);
// "A-100, B-220"

MCP server integration pattern

For MCP servers that need to trigger fine-tuning from an agentic workflow — for example, an MCP tool that accepts a training dataset path and kicks off a job — the following pattern wraps job creation and status checking behind clean tool interfaces:

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
import {
  BedrockClient,
  CreateModelCustomizationJobCommand,
  GetModelCustomizationJobCommand,
} from "@aws-sdk/client-bedrock";

const client = new BedrockClient({ region: process.env.AWS_REGION ?? "us-east-1" });
const server = new McpServer({ name: "bedrock-fine-tuning", version: "1.0.0" });

// Tool: kick off a fine-tuning job
server.tool(
  "start_fine_tuning_job",
  {
    jobName: z.string().describe("Unique job name (timestamp suffix recommended)"),
    trainingS3Uri: z.string().describe("s3://bucket/path/train.jsonl"),
    outputS3Uri: z.string().describe("s3://bucket/output-prefix/"),
    customModelName: z.string().describe("Name for the resulting custom model"),
    epochCount: z.number().int().min(1).max(5).default(3),
  },
  async ({ jobName, trainingS3Uri, outputS3Uri, customModelName, epochCount }) => {
    const suffix = new Date().toISOString().replace(/[:.]/g, "-").slice(0, 19);
    const uniqueName = `${jobName}-${suffix}`;

    const response = await client.send(new CreateModelCustomizationJobCommand({
      jobName: uniqueName,
      customModelName,
      baseModelIdentifier: "amazon.titan-text-lite-v1",
      customizationType: "FINE_TUNING",
      trainingDataConfig: { s3Uri: trainingS3Uri },
      outputDataConfig: { s3Uri: outputS3Uri },
      roleArn: process.env.BEDROCK_SERVICE_ROLE_ARN!,
      hyperParameters: {
        epochCount: String(epochCount),
        batchSize: "8",
        learningRate: "0.00001",
        learningRateWarmupSteps: "0",
      },
    }));

    return {
      content: [{
        type: "text",
        text: JSON.stringify({ jobArn: response.jobArn, jobName: uniqueName }, null, 2),
      }],
    };
  },
);

// Tool: check job status
server.tool(
  "get_fine_tuning_job_status",
  {
    jobIdentifier: z.string().describe("Job ARN or job name"),
  },
  async ({ jobIdentifier }) => {
    const job = await client.send(new GetModelCustomizationJobCommand({ jobIdentifier }));

    return {
      content: [{
        type: "text",
        text: JSON.stringify({
          status: job.status,
          outputModelArn: job.outputModelArn ?? null,
          failureMessage: job.failureMessage ?? null,
          trainingLoss: job.trainingMetrics?.trainingLoss ?? null,
          creationTime: job.creationTime,
          endTime: job.endTime ?? null,
        }, null, 2),
      }],
    };
  },
);

When an orchestrating agent calls start_fine_tuning_job, the job starts asynchronously. The agent can then call get_fine_tuning_job_status in a loop with delays between attempts — the agentic loop naturally handles the polling pattern without blocking a thread. The MCP tool model works well here because the agent controls the cadence of polling, applying its own backoff strategy based on elapsed time.

Production gotchas

Not all base models support fine-tuning — Claude doesn't

Claude models (all versions of anthropic.claude-*) do not support the Bedrock customization API. Attempting to pass a Claude model ARN as baseModelIdentifier returns a ValidationException: Base model does not support customization type FINE_TUNING. Only Titan Text and Cohere Command variants support fine-tuning. Additionally, model fine-tuning availability varies by AWS region — the same model ID available for customization in us-east-1 may not be available in eu-west-1. Always verify supported customization types in your deployment region using the Bedrock console or GetFoundationModelCommand before writing automation.

Minimum dataset size: 32 labeled examples, but use 100+

Bedrock enforces a hard minimum of 32 labeled training examples for fine-tuning jobs. Submitting fewer than 32 examples returns ValidationException: Training data contains too few samples. The technical minimum is not a recommendation — 32 examples produce a model that has memorized the training set without generalizing. For meaningful improvement over the base model, 100 high-quality examples is a practical lower bound for simple extraction or classification tasks. For tasks with more complex output structure (multi-field JSON, ranked lists, conditional logic), budget for 500+ examples before expecting reliable production behavior.

Bedrock service role needs s3:ListBucket, not just s3:GetObject

The Bedrock service role must have s3:ListBucket on the bucket root in addition to s3:GetObject on the training data prefix. Bedrock validates training data existence before starting the job using a bucket listing operation. If ListBucket is absent from the role's permission policy, the job fails at validation with AccessDeniedException. The error message does not always clearly indicate that listing is the missing permission — it may surface as a generic S3 access error. Add s3:ListBucket to both the training bucket and the output bucket in the service role's policy.

Fine-tuned models require provisioned throughput before serving traffic

A successfully completed fine-tuning job produces a custom model ARN, but that model is not invocable via on-demand throughput. Attempting to call InvokeModelCommand with the custom model ARN returns ValidationException: Custom models do not support on-demand throughput. You must call CreateProvisionedModelThroughputCommand to purchase at least one model unit (MU) for the custom model. Only after provisioned throughput is active can the model serve live traffic. Provisioned throughput has an upfront commitment cost — plan for this in your fine-tuning budget. See Provisioned Throughput for the full setup.

outputDataConfig.s3Uri must be in the same region as the customization job

Bedrock customization jobs write training artifacts (checkpoints, loss curves, final model weights) to the S3 bucket specified in outputDataConfig.s3Uri. That bucket must be in the same AWS region as the customization job. Cross-region S3 writes are not supported for this operation. If your S3 bucket is in us-west-2 and the Bedrock client is configured for us-east-1, the job will fail with ValidationException: Output S3 bucket is in a different region. Always create training and output buckets in the same region you plan to run customization jobs.

jobName must be unique per account per region

jobName must be unique within your AWS account and region. Reusing a name from a previous job — even a completed or failed one — returns ValidationException: Job name already exists. The standard mitigation is to append an ISO timestamp or UUID to the base job name: mcp-sku-extractor-ft-2026-11-22T14-30-00. Because fine-tuning jobs are long-running and often retried during experimentation, include this suffix generation in any automation that creates jobs. Never use a static jobName constant in a script that may be run more than once.

Monitor your Bedrock-powered MCP server with AliveMCP

AliveMCP provides uptime, latency, and error-rate monitoring for MCP servers built on Amazon Bedrock. When a fine-tuned model endpoint goes down or starts returning high error rates, AliveMCP alerts you before your users notice.

Start free monitoring