Amazon Bedrock: IAM credentials
Amazon Bedrock is a fully managed AWS service that gives you access to leading generative models such as Anthropic Claude and Amazon Nova. This page is for organizations with an established AWS environment (IAM roles, AWS SSO, AWS Organizations, and so on) that need secure, compliant access.
Step 1: Prepare your AWS environment
Section titled “Step 1: Prepare your AWS environment”Create or reuse an IAM user or role
Section titled “Create or reuse an IAM user or role”-
Sign in to the AWS Management Console.
-
Search for IAM in the console.
-
Create a new IAM user, or use your enterprise AWS SSO to assume a role dedicated to Bedrock access. See the IAM User Guide.
Attach the required policies
Section titled “Attach the required policies”Dline needs these minimal permissions to invoke models:
bedrock:InvokeModelbedrock:InvokeModelWithResponseStream
Option 1: Minimal permissions (recommended for production)
-
Create a new policy in the AWS IAM console.
-
Paste this policy into the JSON editor:
{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"],"Resource": "*"}]}For better security, scope
Resourceto specific model ARNs. -
Name the policy (for example
DlineBedrockInvokeAccess) and attach it to your IAM user or role.
Option 2: Managed policy (simpler initial setup)
You can instead attach the AWS managed policy AmazonBedrockLimitedAccess. It grants broader permissions, including listing models and managing provisioned throughput, which suits an initial setup or teams that need those capabilities.
Step 2: Confirm region and model access
Section titled “Step 2: Confirm region and model access”-
Choose a region: Bedrock is available in many regions. Pick one that meets your latency and compliance needs; see AWS Global Infrastructure.
-
Confirm model access: In the Bedrock console, check that the models your team needs (for example Anthropic Claude or Amazon Nova) are marked “Access granted”. Some models are only reachable through an inference profile; in that case, check Use cross-region inference in Dline.
-
Subscribe to third-party models (if needed): Accept the third-party provider’s terms (for example Anthropic’s) on the model subscription page of the Bedrock console; see AWS Marketplace. Enterprises often manage subscriptions centrally, so check with your cloud team first.
Step 3: Configure Dline
Section titled “Step 3: Configure Dline”If Dline is not installed yet, see Installing Dline first.
-
Click the Settings button in the Dline panel title bar.
-
Set Provider to Amazon Bedrock.
-
Choose AWS Credentials as the authentication method and fill in AWS Access Key and AWS Secret Key. For temporary credentials, such as those issued by AWS SSO, also fill in AWS Session Token.
-
Select or type a region under AWS Region, for example
us-east-1or your enterprise-approved region. -
Select a model under Model.
-
Send a simple prompt to test the connection, for example “Write a Python function that checks whether a number is prime.”
If you leave the keys empty, Dline uses the default AWS credential provider chain.
Step 4: Security and operations
Section titled “Step 4: Security and operations”- Access: Prefer AWS SSO or federated roles over long-lived IAM credentials; see IAM best practices. With SSO, the AWS CLI profile method is recommended.
- Network: Consider AWS PrivateLink, then check Use custom VPC endpoint in Dline and enter the endpoint address.
- Monitoring: Enable CloudTrail to log Bedrock API calls, use CloudWatch to track invocation count, latency, and token usage, and set alerts for abnormal activity.
- Cost: Use AWS Cost Explorer and set billing alerts; see AWS Cost Management.
- Audits: Review IAM roles and CloudTrail logs regularly and follow your organization’s data privacy and governance policies.