Apply the dataset resource access policy to an AWS IAM role
Apply the Splunk-generated resource access policy to the IAM role associated with your connection to authenticate access to your Amazon S3 dataset.
To authenticate access to your Amazon S3 dataset, you must apply a Splunk-generated resource access policy to the IAM role associated with the dataset's connection. This resource access policy is generated by Splunk software. It controls the following:
- The resource access policy grants access to the Amazon S3 bucket that contains the Amazon S3 location you specified for the dataset in the Define dataset step. See Define an Amazon S3 dataset.
- If your Amazon S3 dataset is backed by an AWS Glue catalog table, the resource access policy grants access to the AWS Glue catalog that contains the Glue table. See Create an Amazon S3 dataset for federated search that is backed by an AWS Glue catalog table.
- If your Amazon S3 dataset is backed by a Splunk-native data catalog, and you have set up an SQS queue and event notification for the Amazon S3 bucket that contains your dataset, the resource access policy contains the SQS queue ARN that you supplied earlier in the dataset definition. This ARN enables the Splunk-native catalog to stay in synch with your dataset as its contents change. See Set up automated updates for Splunk-native data catalogs in AWS.
- If you are using server-side encryption (SSE-KMS) to encrypt data in the Amazon S3 bucket that contains your dataset or the AWS Glue catalog table that refers to it, the resource access policy allows Splunk software to access that data.
- A role on your Splunk Cloud Platform deployment with the
edit_datasetsandedit_federated_providerscapabilities. - Review the connection this dataset is associated with. Obtain the name of the IAM role that it uses for IAM role authentication. See Define an Amazon S3 dataset.
- You must have completed the Configure dataset step of the Create dataset workflow.
-
Ensure your users can access the new dataset with their federated searches. See Give your users role-based access control of remote datasets.
-
Run federated searches over the dataset. See Write and run federated searches over remote datasets with SPL2.