AWS Bedrock AI Agent
Deploy and manage high-performance AI agents using AWS Bedrock
Deploy and manage high-performance AI agents using AWS Bedrock
The AWS Bedrock deploy provider allows you to push versioned prompts and tools from Elacity directly into AWS Bedrock Agents. This integration automates the creation of agents, synchronization of Action Groups (tools), and handles the technical “Preparation” step required by Bedrock.
Follow these steps to prepare your AWS account for integration with Elacity.
Elacity needs programmatic access to your AWS account to manage agents.
elacity-deployer.AmazonBedrockFullAccessAWSLambda_FullAccess (required for tool execution)iam:PassRole permission.
Without this, you will get an AccessDeniedException during deployment. Create an Inline Policy for the user with the following JSON:
* with the specific ARN of your Bedrock Service Role for better security).Bedrock Agents require a dedicated service role to interact with foundation models.
arn:aws:iam::123456789012:role/BedrockAgentServiceRole). You will need this in Elacity.Navigate to the Bedrock Console in your target region and ensure you have “Granted” access to your chosen models (e.g., Amazon Nova/Titan, Meta Llama) under Model Access.
In Elacity, navigate to Environments / Secrets and add your AWS credentials.
[!WARNING] Authentication Types:
- IAM User (Permanent Keys): Use
AWS_ACCESS_KEY_ID(starts withAKIA) andAWS_SECRET_ACCESS_KEY. LeaveAWS_SESSION_TOKENempty.- SSO / Temporary Credentials: Use
AWS_ACCESS_KEY_ID(starts withASIA),AWS_SECRET_ACCESS_KEY, and you MUST provide theAWS_SESSION_TOKEN.
When creating or updating an agent in Elacity, use the following provider-specific fields:
amazon.nova-pro-v1:0).[!IMPORTANT] Length Requirement: Bedrock agents require a substantial instruction. Elacity enforces a minimum of 40 characters for the cleaned instruction.
AWS Bedrock uses Action Groups to represent tools. Elacity supports two main tool workflows:
If you select a tool type like User Input, Elacity automatically configures it as a built-in Bedrock tool.
AMAZON.UserInputFor specialized logic, use the Lambda Action tool type.
actionGroupExecutor field in the Elacity tool editor.[!IMPORTANT] Conflict Rule: Do not provide both
apiSchemaandfunctionSchemain the same tool. Elacity will prioritizeapiSchemaif both are present.
Error: User ... is not authorized to perform: iam:PassRole
iam:PassRole inline policy to your IAM User as described in Step 1. Ensure the Resource includes the ARN of the Role you are trying to use.Error: Bad control character in string literal in JSON
AWS_SESSION_TOKEN if using permanent AKIA keys.Error: The security token included in the request is invalid
AWS_SESSION_TOKEN secret. It is almost always the cause when using permanent IAM keys.Error: Member must satisfy regular expression pattern: ([0-9a-zA-Z][_-]?){1,100}
.) and spaces from your Tool/Action Group names. AWS only allows alphanumeric characters, underscores, and hyphens.