Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Create an IAM role for the Test Workbench

Focus mode
Create an IAM role for the Test Workbench - Amazon Lex
To create an IAM role for the Test Workbench
  1. Follow the steps at Create an IAM user to create an IAM user which can be used to access test-workbench console.

  2. Select the Create role button.

    The roles screen in the IAM console.
  3. Select the option for Custom trust policy.

    Select trusted entity
  4. Enter the trust policy below and click Next.

    { "Version": "2012-10-17", "Statement": [ { "Sid": "sid4", "Effect": "Allow", "Principal": { "Service": "lexv2.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }
  5. Select the Create policy button.

  6. A new tab will open in your browser where you can enter the below policy and click on Next: Tags button.

    { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:*" ], "Resource": "*" }, { "Effect": "Allow", "Action": [ "logs:FilterLogEvents" ], "Resource": "*" }, { "Effect": "Allow", "Action": [ "lex:*" ], "Resource": "*" } ] }
  7. Enter a policy name, for example ‘LexTestWorkbenchPolicy’ and then click on the Create Policy.

  8. Return to the previous tab in your browser and Refresh list of policies by clicking the Refresh button as shown below.

    Refresh the screen to see the new policy.
  9. Search in list of policies by entering policy name that you used in the 6th step and choose the policy.

  10. Select the Next button.

  11. Enter role name and then click the Create Role button.

  12. Choose your new IAM role when prompted in the Amazon Lex V2 console for Test Workbench.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.