The Splunk Add-on for Amazon Web Services (AWS TA) enables users to collect log data from their AWS services and monitor them in real-time. The Add-on can only access the data in an AWS account if the account has an IAM AWS Identity Account Management (IAM) role. To let the Add-on access the data in an AWS account, one assign an IAM role to one or more AWS accounts. Then grant those roles the permissions that are required by the AWS account. The AWS lets us use IAM roles to delegate permissions to IAM users to access AWS resources.
Users can save the IAM role via the UI of the Add-on i.e. under Configuration > IAM Role or can use splunk_ta_aws_iam_roles.conf for the same. However, when saving the role via a configurational file, the below errors can be seen in the internal logs:
index=_internal *iam* level=ERROR
2023-10-26 13:28:28,187 ERROR REST ERROR[1021]: Fail to decrypt the encrypted credential information - {"base_app": "Splunk_TA_aws", "endpoint": "configs/conf-splunk_ta_aws_iam_roles", "handler": "BaseRestHandler", "encrypted_args": ["arn"], "name": "ads_s3_Ingest_splunk_dev", "error": "[HTTP 404] https://127.0.0.1:8089//servicesNS/nobody/Splunk_TA_aws/storage/passwords/__REST_CREDENTIAL__%23Splunk_TA_aws%23configs%252Fconf-splunk_ta_aws_iam_roles%23BaseRestHandler%3Aads_s3_Ingest_splunk_dev%3A?output_mode=json"}
In order to save the IAM role successfully such that it gets encrypted properly, one can save the IAM role via UI i.e. Splunk Add-on for AWS > Configuration > IAM Role.
For users with a use case where it is not possible to save the configuration from the UI, they can follow the below steps to save the IAM Role via CLI method:
Steps to configure IAM role using CLI:
SSH into Splunk VM where AWS TA is installed
Delete the same existing role if already configured from backend.
Update below template file with IAM role details (name & arn):
$SPLUNK_HOME/etc/apps/Splunk_TA_aws/bin/tools/configure/config_examples/iam-role-settings.json
Update below file with your Splunk creds as per template
$SPLUNK_HOME/etc/apps/Splunk_TA_aws/bin/tools/configure/splunk-info.json
Run the following command to create IAM role:
$SPLUNK_HOME/bin/splunk cmd python3
$SPLUNK_HOME/etc/apps/Splunk_TA_aws/bin/tools/configure/aws_config_cli.py iam-role create --config-file $SPLUNK_HOME/etc/apps/Splunk_TA_aws/bin/tools/configure/config_examples/iam-role-settings.json --hostname localhost
Reference documentation for using AWS CLI commands : $SPLUNK_HOME/etc/apps/Splunk_TA_aws/bin/tools/configure/README.md
Reference documentation for using AWS CLI commands : $SPLUNK_HOME/etc/apps/Splunk_TA_aws/bin/tools/configure/README.md
Reference documentation to configure IAM role using UI
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |