Create an Identity and Access Management (IAM) user in the Amazon Web Services (AWS) Management Console. Define an access key for your new user to allow the Amazon S3 external content connector to access your Amazon S3 source system.
About this task
The Amazon S3 external content connector retrieves content from buckets in your Amazon S3 source system using the Amazon Web Services (AWS) API. To access your Amazon S3 buckets, the connector uses an access key ID and secret access key that you define for a new Identity and Access Management (IAM) user. You specify bucket access permissions for this IAM user
with an IAM policy.
Your
ServiceNow AI Platform needs this IAM user's access key ID and secret access key to configure the
Amazon S3 external content connector for proper connection to your
AWS account.
Important: All content the connector retrieves from your Amazon S3 buckets is treated as public content, searchable by everyone who has access to your configured AI Search experience.
Procedure
-
Create a new IAM policy that defines permissions needed for the Amazon S3 external content connector user.
-
Log in to the Identity and Access Management page of the AWS Management Console at https://console.aws.amazon.com/iam/.
-
Navigate to , then select Create policy.
-
In the Policy editor, select JSON, then paste the following JSON-format policy description into the editor, replacing the default policy description:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ListAllBuckets",
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": [
"*"
]
},
{
"Sid": "BucketCrawlPermissions",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::example-bucket-1",
"arn:aws:s3:::example-bucket-2"
]
},
{
"Sid": "ObjectCrawlPermissions",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::example-bucket-1/*",
"arn:aws:s3:::example-bucket-2/*"
]
}
]
}

-
In the Policy editor, update the
Resource array for the BucketCrawlPermissions object to include Amazon Resource Names (ARNs) for all of the Amazon S3 buckets you want the external content connector to be able to crawl.
-
In the Policy editor, update the
Resource array for the ObjectCrawlPermissions object to include ARNs for all of the Amazon S3 resources you want the external content connector to be able to retrieve.
-
Select Next.
-
On the Review and create page, enter a Policy name and optionally a Description for your new policy, then select Create policy.
As an example, you might enter
Amazon-S3-external-content-connector as the policy name and
IAM policy with permissions for the ServiceNow
Amazon S3 external content connector user. as the definition.

A message confirms that your new IAM policy was created successfully, and the policy appears in the list of IAM policies.

-
Create a new IAM user in your AWS account:
-
In the Identity and Access Management page of the AWS Management Console, navigate to , then select Create user.
-
On the Specify user details page, enter a name for your new IAM user, then select Next.
As an example, you might enter
Amazon-S3-external-content-connector-user.

-
On the Set permissions page, select Attach policies directly in the Permissions options section.
-
In the Permissions policies list, select the option for the new IAM policy that you created in step 1, then select Next.
-
On the Review and create page, select Create user.
A message confirms that your new IAM user was created successfully, and the user appears in the list of IAM users.

-
Create an access key for your new IAM user:
-
Select View user in the message that appeared when you completed step 2.
If the message and
View user link are no longer visible, navigate to in the
AWS Management Console, then select the user that you created in step
2.
-
In the Security credentials tab, navigate to the Access keys section and select Create access key.
-
On the Access key best practices & alternatives page, select the Application running outside AWS use-case, then select Next.
-
Enter a description tag value for your new access key.
As an example, you might enter Access key for the ServiceNow
Amazon S3 external content connector user.
-
Select Create access key.
A message confirms that your new access key was created.
-
On the Retrieve access keys page, copy the new key's Access key and Secret access key values and store them in a secure location.

Important: Your connector administrator needs this access key and secret access key when configuring the Amazon S3 external content connector.
-
Select Done.
What to do next
Provide the IAM user access key and secret access key that you copied in step 3.f to your ServiceNow AI Platform admins. Your admin needs these items to configure an Amazon S3 external content connector to retrieve searchable content and security principals from your Amazon S3 buckets.
For details on creating and configuring an Amazon S3 external content connector, see Create an Amazon S3 external content connector.