LOCATION
securely stores AWS credentials that you can reuse when invoking Bedrock models with AWS_BEDROCK_AI_QUERY
or AI_QUERY
.
Topics:
Syntax
Parameters
Common parameters
Parameter | Description |
---|---|
<location_name> | A unique identifier for the location within your account. |
SOURCE | The external source type. For Bedrock, set to AMAZON_BEDROCK . |
DESCRIPTION | Optional comment describing the location’s purpose. |
Amazon Bedrock parameters
Parameter | Description |
---|---|
CREDENTIALS | AWS authentication credentials used when invoking Bedrock models. |
AWS authentication parameters
Parameter | Description |
---|---|
AWS_ACCESS_KEY_ID | Your AWS access key ID for key-based authentication. |
AWS_SECRET_ACCESS_KEY | Your AWS secret access key for key-based authentication. |
AWS_SESSION_TOKEN | Optional temporary session token for temporary credentials. |
AWS_ROLE_ARN | The ARN of the IAM role to assume for role-based authentication. |
AWS_ROLE_EXTERNAL_ID | Optional external ID for role assumption. |
Examples
Authenticate using an access key
Authenticate using a role
Create a Bedrock location with a description
To use this location, pass its name as the
<location>
argument to AWS_BEDROCK_AI_QUERY
or AI_QUERY
.