← Blog

Pin Bedrock Converse to a Versioned Prompt ARN

Parminder Singh
Parminder Singh··5 min read
Summarize with AI

Amazon Bedrock Prompt management creates numbered prompt versions as static snapshots for production. Converse accepts the ARN of a prompt version in modelId. This guide pins the complete versioned ARN in trusted route policy, verifies the resolved prompt through the Bedrock control plane, separates draft promotion from runtime traffic, and tests rollback without caller-controlled prompt selection.

Platform & Architectureai-securityllm-securitycloud-securityarchitecturepolicy-enforcementdevsecops
Pin Bedrock Converse to a Versioned Prompt ARN

Amazon Bedrock Prompt management separates a working draft from numbered versions. AWS describes a version as a snapshot created for production, and Converse accepts a prompt version ARN as modelId. That makes the version suffix part of the runtime destination. If application code keeps only a prompt ID or unversioned alias, a configuration change can alter the prompt contract without changing the route name seen by the caller.

I would make the complete ARN mandatory in production configuration and fail startup when the version evidence is missing.

TL;DR

  • Create a numbered Prompt management version, then pin its full ARN in trusted route policy.
  • Verify the ARN through GetPrompt. Compare the returned ARN and version, then check the default variant and model resource against the approved configuration digest.
  • Keep draft editing and version promotion out of the runtime request path. Callers select a business route, not a prompt ARN.
  • Release and rollback by changing a reviewed route version, then retain the old and new prompt ARNs with test evidence.

Prompt versions are production snapshots

AWS's Prompt management deployment guide says saving a prompt creates a working draft that can keep changing. When the prompt is ready for production, a numbered version captures a snapshot at that point in the iteration. AWS positions versions as the mechanism for switching among prompt configurations used by an application.

The CreatePromptVersion API describes the operation as creating a static snapshot for production. A successful request returns HTTP 201 plus the prompt-version ARN and version. The API says numbered versions increase incrementally from 1.

Treat those returned values as release inputs. A deployment manifest should contain the full ARN, numeric version, prompt ID, Region, account, default variant, selected model resource, approved variable manifest, and a digest over the reviewed configuration. Store the CreatePromptVersion response or a restricted reference to it with the change record.

The version number alone is too weak because it omits the prompt resource. It also omits the AWS account and Region. Pin the entire ARN.

Converse needs the versioned resource

The Amazon Bedrock Converse API reference says that Prompt management use requires the ARN of the prompt version in modelId. The documented ARN pattern includes a prompt identifier and an optional numeric suffix, while the operative prose specifically directs managed-prompt inference to the version ARN.

AWS's prompt testing guide shows the concrete shape: arn:aws:bedrock:REGION:ACCOUNT:prompt/PROMPT_ID:VERSION. It also lists request restrictions for managed prompts. additionalModelRequestFields, inferenceConfig, system, and toolConfig cannot accompany the prompt resource in Converse. Messages, when present, are appended after the prompt's messages.

A runtime route should resolve a stable business name such as claims-summary-prod to one approved versioned ARN. Reject raw prompt ARNs from clients. The route also owns which prompt variables and optional appended messages are allowed.

The PromptLayer alternatives article covers the broader prompt operations category. This guide stays on the narrower Bedrock runtime destination contract.

Control-plane verification catches the wrong snapshot

Use Bedrock's control plane before deployment. The GetPrompt API can retrieve a working draft or a specified version. Its response includes the ARN, version, default variant, and variant configuration. The current API permits at most one variant in the returned list.

At startup or deployment time, retrieve the expected numbered version and compare the response with the release manifest. Require an exact ARN match and numeric version match. Verify the default variant and the model or inference resource represented in the variant. Canonicalize the fields your release process approves, calculate a digest, and compare it with the signed or reviewed manifest value.

Avoid querying the control plane on every inference request. That adds a new dependency to the hot path and creates a fresh failure mode. Verification belongs in deployment and startup. Periodic drift checks should use it too. Runtime policy uses the already approved immutable route artifact.

My blunt opinion is that a console screenshot with "Version 7" circled in red is weak release evidence. A machine-readable GetPrompt response tied to the exact ARN can be compared and retained.

The AI audit log schema guide provides the event foundation for recording the resolved resource and policy version.

Promotion and rollback are route changes

Draft editing belongs to a build-time role. Production inference belongs to a runtime role with bedrock:InvokeModel access for the approved inference target. AWS's Converse reference states that the operation requires bedrock:InvokeModel; IAM policy design should follow the exact resources and actions documented for the deployment.

A promotion creates a new numbered prompt version, verifies it, runs acceptance tests, and updates the trusted route manifest through review. The release record links old ARN, new ARN, manifest digest, test run, approver, deployment identifier, and activation time.

Rollback selects a previously approved versioned ARN through the same route-change process. Avoid editing the working draft in an attempt to recreate old behavior. The numbered snapshot already identifies the prior configuration, and the route history shows which version served traffic.

Keep the caller interface stable. Clients request claims-summary; the gateway resolves that operation to the currently approved ARN. A rollback changes server-owned configuration while caller permissions and the public operation remain constant.

The per-route AI policies guide explains how one route record can bind identity, data class, destination, and active policy without exposing provider identifiers to callers.

Release tests prove pinning survives mutation

Begin with an authenticated request using the approved route alias. Capture the final Bedrock path, resolved versioned ARN, manifest digest, prompt-variable names, and response correlation evidence. Confirm the route uses the expected account and Region.

Then mutate one field at a time:

  • Remove the numeric version suffix
  • Change the version to another existing snapshot
  • Change the prompt ID while keeping the version, or supply a caller-controlled prompt ARN
  • Substitute another AWS account or Region
  • Pair the approved ARN with a variable manifest from another version
  • Add a prohibited managed-prompt request field
  • Change the default variant or underlying model in the verification fixture
  • Return a GetPrompt ARN that differs from the requested resource
  • Roll back to the previously approved ARN

Each destination mutation should fail before prompt data leaves the gateway unless it arrives through an authorized route deployment. The rollback fixture should pass only after its manifest becomes active.

On the deployment screen, print the entire ARN in monospace text. Put the numeric version in a separate badge for scanning, but never let the badge replace the full resource. Show the prior ARN directly below it so an operator can see a one-character version change before approving the release.

DeepInspect

DeepInspect can pin the full Prompt management version ARN on authenticated user or agent HTTP traffic deliberately routed to Amazon Bedrock. It can reject caller destination overrides, bind the approved variable manifest, enforce managed-prompt field restrictions, and record the resolved ARN with the route policy decision.

AWS owns Prompt management versions and Bedrock runtime behavior. The application release process owns snapshot approval and control-plane verification. It also owns rollback authorization. Console access, draft editing, direct Bedrock calls, local execution, STDIO traffic, and any HTTP path that bypasses the proxy remain outside DeepInspect's enforcement boundary.

Book a technical deep dive at deepinspect.ai.

Frequently asked questions

Can Converse use a Bedrock prompt without a version suffix?

AWS's Converse documentation instructs callers using Prompt management to specify the ARN of the prompt version. Production policy should require the complete versioned ARN and reject a route artifact that omits the numeric suffix.

What does CreatePromptVersion preserve?

AWS describes the created version as a static snapshot of the prompt for production. The API response returns the version ARN, version number, default variant, and variant details. Retain those values with your own reviewed manifest and acceptance evidence.

Should applications accept prompt ARNs from end users?

A production application should expose approved business operations and resolve them to server-controlled prompt ARNs. Accepting arbitrary ARNs moves destination selection outside route policy. It makes authorization and variables ambiguous, while obscuring audit interpretation.

How should a prompt rollback work?

Activate a previously verified versioned ARN through the normal route deployment process. Re-run the acceptance fixture and record the new route configuration version. Preserve both the replaced and restored ARNs in the release ledger.