Using Amazon Bedrock makes it easier to build and deploy generative AI applications at scale. It allows you to access and integrate powerful foundation models from leading AI providers, customize them for specific use cases, and optimize your AI workloads with minimal effort. Amazon Bedrock ensures your AI applications are scalable, reliable, and secure with robust data privacy controls and AWS's enterprise-grade security features.
Connecting your application to Amazon Bedrock enables integration for cloud storage and various AWS functionalities.
Authentication
Before you begin, make sure you have the following information:
Connection Name
: Choose a meaningful name for your connection. This name helps you identify the connection within your application or integration settings. It could be something descriptive like "MyAppAmazonBedrockIntegration".Authentication Type
: Select the type of authentication for connecting to your Amazon Bedrock account:Access Key
IAM Role
Access Key Based Authentication
Login into Amazon AWS Console and search for “
Users
” in the search bar present at the top of the console’s home page.Click on “
Create user
” at the top right corner.Sign in to the AWS Management Console by going to the AWS Management (https://console.aws.amazon.com/).
Navigate to the IAM (Identity and Access Management) dashboard by searching in the "
IAM
" search bar.Provide the username and select permissions(AmazonBedrockfullaccess) policies by selecting “
Attach policies directly
” and click on create user button.Once the user is created, click on the username of the user created and under the summary section click on create access key.
Select “
Command Line Interface
” as the use case and provide the description tag to the key and click on “create access key
”.Treat the access key and secret access key with high confidentiality, as it allows access to your Amazon Bedrock account.
![Image](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2F72n7x6dw0z60%2F1HJeisABbCbVJBS3uoRNhQ%2Fcbf334734ea73cbbff15443e30aefcc5%2FFrame_47.png&w=8192&q=75)
![Image](https://images.ctfassets.net/72n7x6dw0z60/1HJeisABbCbVJBS3uoRNhQ/cbf334734ea73cbbff15443e30aefcc5/Frame_47.png)
IAM Role Based Authentication
Sign in to AWS Management Console (https://console.aws.amazon.com/) and select security credentials.
Navigate to the IAM dashboard and click "
Roles
" > "Create role
". (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html)Under "
Trusted entity type
", choose the AWS account option.Select "
Another AWS account
" and input the UnifyApps AWS account ID (contact support to obtain this).Check the "
Require external ID
" box and enter the External ID provided by UnifyApps.Assign the necessary permissions for UnifyApps to operate automated workflows within your account.
Give the IAM role a name and description.
Click the "
Select trusted entities
" Edit button to modify trusted entity policies if needed. (Optional)Click the "
Add permissions
" Edit button to adjust permissions. (Optional)If using object tags, select an appropriate tag for the IAM role. (Optional)
Click on Create Role to finalize the process.
Create an IAM permissions policy
Go to the AWS Console and open the IAM console- https://console.aws.amazon.com/iam
Navigate to Access management and select Policies.
Choose Create Policy.
Locate and choose the AWS service that UnifyApps will access.
Select the required permissions under the Actions field.
Define the resources that the role will have access to.
Continue clicking Next until you reach the Review policy page.
Provide a Name for the policy.
Click Create policy once done.
Retrieve IAM role ARN
Open the AWS Console and go to My Security Credentials > Roles.
Search for the IAM role you need for the connection.
Select the role to view its details.
Copy the Role ARN for use in the UnifyApps connection setup.
![Image](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2F72n7x6dw0z60%2F4K8yipdX2JhjNnE7Sd12X6%2Fa950a1b4197600ba8a1a33762ec22432%2FFrame_49.png&w=8192&q=75)
![Image](https://images.ctfassets.net/72n7x6dw0z60/4K8yipdX2JhjNnE7Sd12X6/a950a1b4197600ba8a1a33762ec22432/Frame_49.png)
Actions
Action | Description |
| Analyse text to answer user-provided questions in Amazon Bedrock |
| Classify text based on user-defined categories in Amazon Bedrock |
| Generate an email based on user description in Amazon Bedrock |
| Generate or modify images using prompts or other images in AMazon Bedrock |
| Generates text embedding for the input text using Amazon Bedrock |
| Send a message to models in Amazon Bedrock |
| Get a summary of the input text in configurable length using Amazon Bedrock |
| Translate text between languages using Amazon Bedrock |