Step 1: Create a sample application
This section guides you through the process of creating a sample Amazon Q Business application. To do this, you can use the Amazon Q Business console, the AWS Command Line Interface (AWS CLI), and the Amazon Q Business API operations.
Before you create an Amazon Q Business application, make sure you go through the Before you begin section.
- Console
-
To create an application
-
Sign in to the AWS Management Console and open the Amazon Q Business console.
-
From the How it works menu, from Experiment with a sample – optional, choose Try quick application.
-
On the Create application page, for Application settings, enter the following information for your Amazon Q Business application:
-
Application name – A name for your Amazon Q Business application environment for easy identification. This name is only visible in the AWS Management Console. The name can include hyphens (-), but not spaces, and can have a maximum of 1,000 alphanumeric characters.
-
-
In Service access, for Choose a method to authorize Amazon Q Business, choose from the following options:
-
Create and use a new service-linked role (SLR) – Create and use a new Amazon Q Business-managed IAM role to allow it to access the AWS resources it needs to create your application.
-
Create and use a new service role (SR) – Create and use a new IAM role for Amazon Q Business to allow it to access the AWS resources it needs to create your application.
-
Use an existing service role (SR)/service-linked role (SLR) – Use an existing service role or service-linked IAM role to allow Amazon Q Business to access the AWS resources it needs to create your application.
Note
For more information about example service roles, see IAM role for an Amazon Q Business application. For information on service-linked roles, including to manage them, see Using service-linked roles.
-
Service role name – A name for the service (IAM) role you created for easy identification on the console.
-
-
For Encryption – Amazon Q Business encrypts your data by default using AWS managed AWS KMS keys. To customize your encryption settings, select Customize encryption settings (advanced). Then, you can choose to use an existing AWS KMS key or create a new one.
-
In Advanced IAM Identity Center settings, activate Enable cross-region calls to access resources to allow Amazon Q Business to connect to an IAM Identity Center instance that exists in a region not already supported by Amazon Q Business. For more information, see Creating a cross-region IAM Identity Center integration.
-
In Connect Amazon Q Business to IAM Identity Center, you will see the following options based on whether you have an IAM Identity Center instance already configured, or need to create one.
-
If you don't have an IAM Identity Center instance configured, you see the following:
-
The region your Amazon Q Business application environment is in.
-
Specify tags for IAM Identity Center – Add tags to keep track of your IAM Identity Center instance.
-
Create IAM Identity Center – Select to create an IAM Identity Center instance. Depending on your setup, you may be prompted to create either an account instance, or an organization instance, or be given the option to choose between creating an account instance and an organization instance. The console will display an ARN for your newly created resource after it's created.
-
-
If you have both an IAM Identity Center organization instance and an account instance configured, your instances will be auto-detected, and you see the following options:
-
Organization instance of IAM Identity Center – Select this option to manage access to Amazon Q Business by assigning users and groups from the Identity Center directory for your organization.
-
Account instance of IAM Identity Center – Select this option to manage access to Amazon Q Business by assigning existing users and groups from your Identity Center directory.
-
The region your Amazon Q Business application environment is in.
-
IAM Identity Center – The ARN for your IAM Identity Center instance.
-
-
If you have an IAM Identity Center account instance configured, your account instance will be auto-detected.
-
If you have an IAM Identity Center organization instance configured, your organization instance will be auto-detected.
-
If your IAM Identity Center instance is configured in an AWS region Amazon Q Business isn’t available in, and you haven’t completed Step 6 of this procedure, you will see a message saying that a connection is unavailable with an option to Switch region. Once you complete Step 6, a cross-region connection between Amazon Q Business and IAM Identity Center will be automatically established and your cross-region instance will be auto-detected.
Note
Selecting Switch region will only give you the option to change your AWS Management Console region. To create a cross-region IAM Identity Center and Amazon Q Business integration follow Step 6 of this procedure.
-
-
Tags – optional – To add tags to your Amazon Q Business application environment and web experience, select Add new tag. Then, enter the following information for each tag:
-
Key – Add a key for your tag.
-
Value - optional – An optional value for your tag.
For more information about using tags with Amazon Q Business, see Tags.
-
-
To start creating your application, choose Create.
-
- AWS CLI
-
To configure an Amazon Q Business application
aws qbusiness create-application \ --display-name
application-name
\ --identity-center-instance-arnidentity-center-instance-arn
\ --role-arnroleArn
\ --descriptionapplication-description
\ --enryption-configurationkmsKeyId=<kms-key-id>
\ --attachments-configurationattachmentsControlMode=ENABLED