View a markdown version of this page

Setting up Kiro to use AWS Quick sign-in - AWS Quick

Setting up Kiro to use AWS Quick sign-in

After you complete this setup, users who sign in to the AWS Quick desktop application can use Kiro without signing in to Kiro separately. Quick passes each user's AWS IAM Identity Center identity to Kiro by using trusted identity propagation. You set this up once for your Quick account, by using the AWS Command Line Interface (AWS CLI).

Prerequisites

  • Quick account: An Enterprise account that uses IAM Identity Center. You have added the desktop connector, so users sign in to the desktop application with your Quick sign-in. For more information, see Setting up AWS Quick on desktop for enterprise deployments.

  • Kiro: A Kiro profile in US East (N. Virginia) or Europe (Frankfurt). The profile must use the same IAM Identity Center instance as your Quick account. The IAM Identity Center instance can be in any AWS Region that Kiro supports.

  • Users: Each user is subscribed to Kiro through exactly one Kiro profile.

  • Clients: Quick desktop application version 1.1.4053 or later, and Kiro CLI version 3.0.0 or later.

  • Not supported: Quick accounts that don't use IAM Identity Center, desktop sign-in through the desktop extension, and Kiro accounts that sign in with AWS Builder ID, Google, or GitHub.

Step 1: Find your Kiro application ARN

Find the IAM Identity Center application Amazon Resource Name (ARN) for your Kiro profile. Kiro creates this application when you create a Kiro profile that uses IAM Identity Center. If your organization has Kiro profiles in more than one AWS Region, find the ARN for each one. You don't need an ARN for each user.

  1. Open the IAM Identity Center console, and choose Applications.

  2. Choose the Kiro managed application, named KiroProfile-<region>, for example KiroProfile-us-east-1.

  3. Copy its application ARN.

To use the AWS CLI instead, run the following command, and find KiroProfile-<region> in the output.

aws sso-admin list-applications --instance-arn <instance-ARN> --region <region>

For more information, see Managing Kiro subscriptions in the Kiro documentation.

The ARN uses the following format:

arn:aws:sso::111122223333:application/ssoins-1111111111111111/apl-1111111111111111

Make sure that your Quick account and each Kiro application use the same IAM Identity Center instance. An application from a different instance doesn't work.

Step 2: Turn on token exchange (accounts created before December 2024)

If your Quick account was created before December 2024, its IAM Identity Center application doesn't allow token exchange, and Kiro can't use Quick sign-in. To turn on token exchange, run the following command:

aws quicksight update-application-with-token-exchange-grant \ --aws-account-id 111122223333 \ --namespace default

If your account was created in December 2024 or later, skip this step.

Step 3: Turn on identity propagation to Kiro

Run the following command. For --authorized-targets, enter the application ARN of your Kiro profile from Step 1: Find your Kiro application ARN. If you have more than one Kiro profile, enter each ARN, up to 10.

aws quicksight update-identity-propagation-config \ --aws-account-id 111122223333 \ --service KIRO \ --authorized-targets "arn:aws:sso::111122223333:application/ssoins-1111111111111111/apl-1111111111111111"
Important

Specify each Kiro application ARN. Don't use * or an IAM Identity Center instance ARN, and don't omit --authorized-targets. These settings grant broader access than this feature needs.

Step 4: Update your AWS KMS key policy (customer managed keys only)

If your IAM Identity Center instance is encrypted with a customer managed AWS Key Management Service (AWS KMS) key, the key policy must allow q.amazonaws.com to call kms:Decrypt and kms:DescribeKey. Add the following statement to the key policy. If the key is a multi-Region key, also add it to each replica in a AWS Region where you have Kiro profiles, because replica key policies don't sync.

{ "Sid": "AllowQuickKiroIdentityPropagation", "Effect": "Allow", "Principal": { "Service": "q.amazonaws.com" }, "Action": ["kms:Decrypt", "kms:DescribeKey"], "Resource": "*" }

Step 5: Verify the setup

Run the following command, and confirm that the output lists KIRO with the Kiro application ARNs that you added.

aws quicksight list-identity-propagation-configs --aws-account-id 111122223333

Then ask a user to sign in to the Quick desktop application and start a chat with Kiro. If the setup is correct, Kiro doesn't ask the user to sign in.

Turning off Kiro sign-in through AWS Quick

To stop Quick from passing user identities to Kiro, run the following command. Users then sign in to Kiro separately.

aws quicksight delete-identity-propagation-config \ --aws-account-id 111122223333 \ --service KIRO

Limitations

  • Each user must have exactly one Kiro profile. Users with no profile or more than one profile must sign in to Kiro separately.

  • Signing out of Kiro doesn't sign the user out of Quick.

  • Sign-in through Quick isn't supported when Kiro runs through Windows Subsystem for Linux (WSL) or SSH, or for coding agents that you create yourself.

Troubleshooting

Users are still asked to sign in to Kiro

This can happen for the following reasons:

  • The account was created before December 2024 and token exchange isn't turned on. See Step 2: Turn on token exchange (accounts created before December 2024).

  • Identity propagation to Kiro isn't set up, or a Kiro application ARN is missing. See Step 3: Turn on identity propagation to Kiro and Step 5: Verify the setup.

  • The account doesn't use IAM Identity Center, or users sign in to the desktop application through the desktop extension instead of the desktop connector.

  • The user's Kiro CLI is older than version 3.0.0, or the desktop application is older than version 1.1.4053.

  • The user has no Kiro profile or more than one Kiro profile.

  • The Kiro profile uses a different IAM Identity Center instance than Quick.

Kiro stops in the middle of a session

Quick couldn't renew the Kiro session. Start a new chat with Kiro.

Kiro can't use AWS Quick sign-in when IAM Identity Center uses a customer managed key

The key policy doesn't allow q.amazonaws.com to call kms:Decrypt and kms:DescribeKey. See Step 4: Update your AWS KMS key policy (customer managed keys only).

For general desktop sign-in issues, see Troubleshooting enterprise sign-in for AWS Quick on desktop.