All Apps and Add-ons

Getting Access Denied for Splunk Add-on for AWS

himaniarora20
Explorer

I am in a bit of a fix right now and getting the below error when I am trying to add a new input to Splunk using this document 

https://docs.splunk.com/Documentation/AddOns/released/AWS/Setuptheadd-on

 

Note:  The Splunk instance is in a different account than the S3 bucket.



Error response received from the server: Unexpected error "<class 'splunktaucclib.rest_handler.error.RestError'>" from python handler: "REST Error [400]: Bad Request -- An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied". See splunkd.log/python.log for more details.

 

I have created an AWS role to allow the user residing in  account where my S3 bucket is and the permissions are like below

himaniarora20_4-1715923864525.png

 

Trust relationship:

himaniarora20_0-1715928426650.png

 

 

The user contains s3full access and AssumeRole policy attached to it. 

 

Splunk config:
The IAM role still shows undiscovered:

himaniarora20_2-1715923650520.png

 

himaniarora20_3-1715923720371.png

 

Are there any changes required at the Splunk instance level in the other account so that it could access the policy?


TIA for your help!

Labels (1)

Gasp
Engager

BUMP! I am having the same issue with similar config. @himaniarora20 you didnt end up finding a resolution?

0 Karma

himaniarora20
Explorer

I did actually..  Just found out that you need to try with the indexer instead of Search Head. And also, attach an IAM role to your Splunk server, and  use the ARN of that same role to attach to your Splunk config.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...